/*
Theme Name: salatify-apps-astra
Theme URI: https://apps.salatify.com/
Description: Clean, fast child theme for Salatify Web Portal with Google OAuth 2.0 authentication, modular menu navigation, and independent page templates.
Author: Salatify Team
Author URI: https://apps.salatify.com/
Template: astra
Version: 1.0.0
Text Domain: salatify-apps-astra
*/

/* Reset & Core Font (Vuexy Public Sans) */
body {
    font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #2f2b3d;
    margin: 0;
    padding: 0;
}

/* Navbar Custom Styling (Vuexy Glassmorphism & Header) */
.salatify-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(47, 43, 61, 0.1);
    box-shadow: 0 0.125rem 0.375rem rgba(47, 43, 61, 0.05);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.salatify-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #2f2b3d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salatify-navbar .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: #6d6b77;
    padding: 0.55rem 0.9rem !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.salatify-navbar .nav-link:hover {
    color: #7367f0;
    background-color: rgba(115, 103, 240, 0.06);
}

.salatify-navbar .nav-link.active {
    color: #059669 !important;
    background-color: #ecfdf5 !important;
    font-weight: 600;
}

/* Navbar Dropdown Enhancements (Vuexy Theme Style) */
.salatify-navbar .dropdown-menu {
    border-radius: 0.5rem;
    box-shadow: 0 0.375rem 1rem 0 rgba(47, 43, 61, 0.12);
    border: 1px solid rgba(47, 43, 61, 0.08);
    padding: 0.5rem;
}

.salatify-navbar .dropdown-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: #5d596c;
    border-radius: 0.375rem;
    padding: 0.5rem 0.85rem;
    transition: all 0.15s ease-in-out;
}

.salatify-navbar .dropdown-item:hover,
.salatify-navbar .dropdown-item:focus {
    background-color: rgba(115, 103, 240, 0.08);
    color: #7367f0;
}

.salatify-navbar .dropdown-item.active,
.salatify-navbar .dropdown-item:active {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    font-weight: 600;
}

/* Main Content Container */
.salatify-main-wrapper {
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

/* Card Enhancements (Vuexy Style) */
.salatify-card {
    background: #ffffff;
    border: 1px solid rgba(47, 43, 61, 0.08);
    border-radius: 0.625rem;
    box-shadow: 0 0.1875rem 0.75rem 0 rgba(47, 43, 61, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.salatify-card:hover {
    box-shadow: 0 0.375rem 1rem 0 rgba(47, 43, 61, 0.12);
}

.salatify-card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

/* Google Sign In Container */
.salatify-login-box {
    max-width: 440px;
    margin: 3rem auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    padding: 2.5rem;
}

/* Badges */
.badge-role {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 600;
    border-radius: 9999px;
}
.badge-role-admin {
    background-color: #fee2e2;
    color: #b91c1c;
}
.badge-role-user {
    background-color: #e0e7ff;
    color: #4338ca;
}

/* =========================================================================
   Vuexy-Style Split Cover Authentication Layout
   ========================================================================= */
.auth-wrapper.auth-cover {
    min-height: 100vh;
    width: 100%;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Left Cover Background */
.auth-cover-bg {
    background: linear-gradient(145deg, #f8fafc 0%, #edf2f7 50%, #e2e8f0 100%);
    position: relative;
    border-right: 1px solid #e2e8f0;
}

.auth-hero-img {
    max-width: 90%;
    max-height: 480px;
    object-fit: contain;
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.3s ease;
}

.auth-hero-img:hover {
    transform: translateY(-4px);
}

.auth-hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 80%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* Ambient Decorative Shapes */
.auth-bg-shape-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.auth-bg-shape-2 {
    position: absolute;
    bottom: -15%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    filter: blur(70px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Right Authentication Panel */
.auth-form-panel {
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: -15px 0 35px -15px rgba(0, 0, 0, 0.05);
    z-index: 5;
}

/* Vuexy Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.divider-text {
    padding: 0 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: #94a3b8;
}

/* Transition & Utility */
.transition-transform {
    transition: transform 0.25s ease-in-out;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Enhanced Form Inputs */
.auth-form-panel .form-control {
    border-color: #cbd5e1;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.auth-form-panel .form-control:focus {
    border-color: #059669;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}

.auth-form-panel .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: none;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.auth-form-panel .btn-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Alert Box HTML link styling */
#loginAlertBox a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* Hide WordPress Admin Bar on Frontend & Reset Margins */
#wpadminbar {
    display: none !important;
}
html, html body {
    margin-top: 0 !important;
}


