/* RentSmart Premium Branding - Custom CSS */

/* ========================================
   Brand Colors
   ======================================== */
:root {
    /* Primary Brand Colors */
    --brand-primary: #2980B9;        /* Primary Blue */
    --brand-secondary: #ff5e00;      /* Vibrant Orange */
    --brand-dark: #212728;           /* Professional Dark */
    --brand-light: #eaf2f2;          /* Soft Light */

    /* Accent Colors */
    --accent-success: #27ae60;
    --accent-warning: #f39c12;
    --accent-danger: #e74c3c;
    --accent-info: #3498db;

    /* Neutral Colors */
    --neutral-50: #fafbfc;
    --neutral-100: #f4f6f8;
    --neutral-200: #e8ecf0;
    --neutral-300: #d1d9e0;
    --neutral-400: #a0aec0;
    --neutral-500: #718096;
    --neutral-600: #4a5568;
    --neutral-700: #2d3748;
    --neutral-800: #1a202c;
    --neutral-900: #171923;

    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Bootstrap Color Overrides */
    --bs-primary: #2980B9;
    --bs-primary-rgb: 41, 128, 185;
    --bs-secondary: #ff5e00;
    --bs-secondary-rgb: 255, 94, 0;
    --bs-success: #27ae60;
    --bs-success-rgb: 39, 174, 96;
    --bs-info: #3498db;
    --bs-info-rgb: 52, 152, 219;
    --bs-warning: #f39c12;
    --bs-warning-rgb: 243, 156, 18;
    --bs-danger: #e74c3c;
    --bs-danger-rgb: 231, 76, 60;
}

/* ========================================
   Base Styles
   ======================================== */
body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--brand-dark);
    background-color: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand-dark);
}

/* ========================================
   Navigation - Premium Navbar - FIXED v2
   ======================================== */
nav.navbar,
.navbar,
body .navbar,
html body .navbar {
    background: var(--brand-primary) !important;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.15) !important;
    padding: 1rem 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    z-index: 1000 !important;
}

/* Force navbar container to use Bootstrap default responsive widths */
nav.navbar .container,
.navbar .container,
body .navbar .container {
    width: 100% !important;
    padding-right: 0.75rem !important;
    padding-left: 0.75rem !important;
    margin-right: auto !important;
    margin-left: auto !important;
}

@media (min-width: 576px) {
    .navbar .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .navbar .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .navbar .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .navbar .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .navbar .container {
        max-width: 1320px;
    }
}

/* Ensure navbar items don't shift */
.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav.me-auto {
    margin-right: auto !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: white !important;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand i {
    color: white;
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

/* Top Navbar Links - Consistent across all pages */
.navbar .nav-link,
nav.navbar .nav-link,
body .navbar .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    position: relative;
}

.navbar .nav-link:hover,
nav.navbar .nav-link:hover,
body .navbar .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar .nav-link i,
nav.navbar .nav-link i,
body .navbar .nav-link i {
    color: rgba(255, 255, 255, 0.95) !important;
    margin-right: 0.375rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover i,
nav.navbar .nav-link:hover i,
body .navbar .nav-link:hover i {
    color: white !important;
    transform: scale(1.1);
}

/* Notification bell alignment and color fix */
.navbar .nav-item.dropdown .nav-link.position-relative {
    padding: 0.5rem 1rem !important;
    line-height: normal;
}

.navbar .nav-item .nav-link.position-relative i.fa-bell {
    color: rgba(255, 255, 255, 0.95) !important;
    margin: 0;
    vertical-align: middle;
}

.navbar .nav-item .nav-link.position-relative:hover i.fa-bell {
    color: white !important;
}

.navbar .btn-light {
    background: white;
    color: var(--brand-primary);
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--brand-light);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--brand-light);
    color: var(--brand-primary);
}

.dropdown-item i {
    color: var(--brand-primary);
    width: 20px;
    text-align: center;
}

/* ========================================
   Buttons - Premium Design
   ======================================== */
.btn {
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

.btn-primary:hover {
    background: #1e6fa3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 128, 185, 0.4);
}

.btn-primary i {
    color: white !important;
}

.btn-success {
    background: var(--accent-success);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(39, 174, 96, 0.4);
}

.btn-warning {
    background: var(--accent-warning);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.btn-warning:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(243, 156, 18, 0.4);
}

.btn-danger {
    background: var(--accent-danger);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-outline-primary i {
    color: var(--brand-primary) !important;
}

.btn-outline-primary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary:hover i {
    color: white !important;
}

.btn-outline-success i {
    color: var(--accent-success) !important;
}

.btn-outline-success:hover i {
    color: white !important;
}

/* ========================================
   Cards - Premium Design
   ======================================== */
.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: var(--brand-primary);
    color: white;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

.card-header i {
    color: white !important;
}

.card-body {
    padding: 1.5rem;
}

/* ========================================
   Stats Cards - Premium Dashboard
   ======================================== */
.card.bg-primary {
    background: var(--brand-primary) !important;
    border: none;
    position: relative;
    overflow: hidden;
}

.card.bg-success {
    background: var(--accent-success) !important;
}

.card.bg-warning {
    background: var(--accent-warning) !important;
}

.card.bg-info {
    background: var(--accent-info) !important;
}

.card.bg-danger {
    background: var(--accent-danger) !important;
}

.card.bg-primary::before,
.card.bg-success::before,
.card.bg-warning::before,
.card.bg-info::before,
.card.bg-danger::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.5;
    }
    50% {
        transform: translate(-10%, -10%);
        opacity: 0.8;
    }
}

.card.bg-primary i.fa-2x,
.card.bg-success i.fa-2x,
.card.bg-warning i.fa-2x,
.card.bg-info i.fa-2x,
.card.bg-danger i.fa-2x {
    color: white !important;
    opacity: 0.9;
}

/* ========================================
   Dashboard Sidebar Navigation
   ======================================== */
.dashboard-page .nav-link {
    color: var(--neutral-700) !important;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    margin-bottom: 0.375rem;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.dashboard-page .nav-link:hover {
    background: var(--brand-light);
    color: var(--brand-primary) !important;
    border-color: var(--brand-primary);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.dashboard-page .nav-link.active {
    background: var(--brand-primary);
    color: white !important;
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
}

.dashboard-page .nav-link i {
    color: var(--brand-primary) !important;
    width: 24px;
    text-align: center;
}

.dashboard-page .nav-link:hover i {
    color: var(--brand-primary) !important;
}

.dashboard-page .nav-link.active i {
    color: white !important;
}

.dashboard-page .badge {
    background: var(--brand-secondary) !important;
    color: white;
    font-weight: 700;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
}

.dashboard-page .nav-link.active .badge {
    background: white !important;
    color: var(--brand-primary);
}

/* ========================================
   Property Cards
   ======================================== */
.property-card {
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(41, 128, 185, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.property-card:hover::before {
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .card-img-top {
    transform: scale(1.1);
}

.property-card .badge {
    background: var(--brand-secondary) !important;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Forms - Premium Design
   ======================================== */
.form-control,
.form-select {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(41, 128, 185, 0.1);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

/* ========================================
   Badges - Premium Design
   ======================================== */
.badge {
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.025em;
}

.badge.bg-primary {
    background: var(--brand-primary) !important;
}

.badge.bg-success {
    background: var(--accent-success) !important;
}

.badge.bg-warning {
    background: var(--accent-warning) !important;
}

.badge.bg-danger {
    background: var(--accent-danger) !important;
}

.badge.bg-secondary {
    background: var(--brand-secondary) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e6fa3 50%, var(--brand-dark) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-10%, -10%) rotate(180deg);
    }
}

/* Mobile App Section & Dark Sections */
.bg-dark h3,
.bg-dark h2,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
    color: white !important;
}

section.bg-dark h3 {
    color: white !important;
    font-weight: 700;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--neutral-900) 100%) !important;
    color: var(--neutral-200);
    padding: 3rem 0;
}

footer h5,
footer h6 {
    color: white !important;
    font-weight: 700;
}

footer a {
    color: var(--neutral-300);
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--brand-secondary) !important;
    transform: translateX(4px);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Utilities
   ======================================== */
.text-brand-primary {
    color: var(--brand-primary) !important;
}

.text-brand-secondary {
    color: var(--brand-secondary) !important;
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.bg-brand-secondary {
    background-color: var(--brand-secondary) !important;
}

.bg-brand-light {
    background-color: var(--brand-light) !important;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .property-card:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

/* ========================================
   Accessibility
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--brand-secondary);
    outline-offset: 2px;
}

/* ========================================
   Dashboard Enhancements
   ======================================== */
.dashboard-page .card.shadow-sm {
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid var(--neutral-200);
}

.dashboard-page .avatar-wrapper img {
    border: 4px solid var(--brand-primary) !important;
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

.stat-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-2xl) !important;
}

.stat-card .card-body {
    position: relative;
    z-index: 2;
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card p {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Dashboard Tables */
.dashboard-page .table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dashboard-page .table thead {
    background: var(--brand-primary);
    color: white;
}

.dashboard-page .table thead th {
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.875rem;
    padding: 1rem;
    border: none;
}

.dashboard-page .table tbody tr {
    transition: all 0.2s ease;
}

.dashboard-page .table tbody tr:hover {
    background-color: var(--brand-light);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(41, 128, 185, 0.1);
}

.dashboard-page .table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Dashboard Action Buttons */
.dashboard-page .btn-sm {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

/* Profile Picture Enhancement */
#dashboard-profile-picture,
#navbar-profile-picture {
    transition: all 0.3s ease;
}

#dashboard-profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(41, 128, 185, 0.4) !important;
}

/* Recent Activity Items */
.activity-item {
    padding: 1rem;
    border-left: 4px solid var(--brand-secondary);
    background: var(--brand-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--brand-primary);
}

.activity-item .activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-item .activity-icon i {
    color: white !important;
}

/* Quick Actions */
.quick-actions .btn,
.dashboard-page .card-body .d-grid .btn {
    justify-content: flex-start;
    text-align: left;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover,
.dashboard-page .card-body .d-grid .btn:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.quick-actions .btn i {
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease;
}

.quick-actions .btn:hover i {
    transform: scale(1.2);
}

/* Quick Actions Grid Buttons - Solid Colors */
.dashboard-page .card-body .d-grid .btn-primary i,
.dashboard-page .card-body .d-grid .btn-success i,
.dashboard-page .card-body .d-grid .btn-warning i,
.dashboard-page .card-body .d-grid .btn-danger i,
.dashboard-page .card-body .d-grid .btn-info i {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease;
}

.dashboard-page .card-body .d-grid .btn:hover i {
    transform: scale(1.2);
}

/* Dashboard Modals */
.modal-header {
    background: var(--brand-primary);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 700;
}

.modal-title i {
    color: white !important;
}

/* Dashboard Empty States */
.empty-state {
    padding: 3rem 2rem;
    text-align: center;
}

.empty-state i {
    font-size: 4rem;
    color: var(--brand-primary);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: var(--neutral-600);
    font-weight: 600;
}

.empty-state p {
    color: var(--neutral-500);
}

/* ========================================
   FullCalendar Premium Styling
   ======================================== */
.fc {
    font-family: var(--font-family-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--neutral-200);
}

/* Calendar Header */
.fc .fc-toolbar {
    padding: 1.5rem;
    background: var(--brand-primary);
    color: white;
    border: none;
    margin-bottom: 0 !important;
}

.fc .fc-toolbar-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: white;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Calendar Buttons */
.fc .fc-button-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.fc .fc-button-primary:hover {
    background: white;
    color: var(--brand-primary);
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.fc .fc-button-primary:active,
.fc .fc-button-primary.fc-button-active {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 94, 0, 0.4);
}

.fc .fc-button-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
}

.fc .fc-button-group {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.fc .fc-icon {
    color: white;
    font-size: 1.25rem;
}

/* Calendar View */
.fc .fc-view-harness {
    background: white;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: var(--neutral-200);
}

/* Day Headers */
.fc .fc-col-header-cell {
    background: var(--brand-light);
    border-color: var(--neutral-200);
    padding: 1rem 0.5rem;
}

.fc .fc-col-header-cell-cushion {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem;
}

/* Day Cells */
.fc .fc-daygrid-day {
    transition: all 0.2s ease;
}

.fc .fc-daygrid-day:hover {
    background: var(--brand-light);
}

.fc .fc-daygrid-day-number {
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem;
}

.fc .fc-day-today {
    background: rgba(41, 128, 185, 0.08) !important;
    border: 2px solid var(--brand-primary) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--brand-primary);
    font-weight: 900;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem;
}

.fc .fc-day-other .fc-daygrid-day-number {
    color: var(--neutral-400);
    opacity: 0.5;
}

/* Calendar Events */
.fc-event {
    background: var(--brand-secondary) !important;
    border: none !important;
    border-radius: var(--radius-md) !important;
    padding: 0.375rem 0.625rem !important;
    margin: 0.125rem 0.25rem !important;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 94, 0, 0.3);
    font-weight: 600;
}

.fc-event:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.5);
    z-index: 10;
}

.fc-event .fc-event-main {
    color: white;
}

.fc-event .fc-event-title {
    font-weight: 700;
    font-size: 0.875rem;
}

.fc-event .fc-event-time {
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Event Dots for Day Grid */
.fc .fc-daygrid-event-dot {
    border-color: var(--brand-secondary);
    background: var(--brand-secondary);
    width: 8px;
    height: 8px;
}

/* More Link */
.fc .fc-daygrid-more-link {
    color: var(--brand-primary);
    font-weight: 700;
    background: var(--brand-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.fc .fc-daygrid-more-link:hover {
    background: var(--brand-primary);
    color: white;
}

/* Popover for Events */
.fc .fc-popover {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.fc .fc-popover-header {
    background: var(--brand-primary);
    color: white;
    padding: 1rem;
    font-weight: 700;
}

.fc .fc-popover-close {
    color: white;
    opacity: 1;
    font-size: 1.25rem;
}

.fc .fc-popover-body {
    padding: 0.5rem;
    background: white;
}

/* Time Grid (Week/Day Views) */
.fc .fc-timegrid-slot {
    height: 3rem;
    border-color: var(--neutral-200);
}

.fc .fc-timegrid-slot-label {
    color: var(--neutral-600);
    font-weight: 600;
    font-size: 0.875rem;
}

.fc .fc-timegrid-axis-cushion {
    color: var(--brand-primary);
    font-weight: 700;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: var(--brand-secondary);
    border-width: 2px;
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--brand-secondary);
}

/* List View */
.fc-list {
    border-color: var(--neutral-200);
}

.fc .fc-list-day-cushion {
    background: var(--brand-light);
    color: var(--brand-primary);
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.fc .fc-list-event:hover td {
    background: var(--brand-light);
}

.fc .fc-list-event-dot {
    border-color: var(--brand-secondary);
    background: var(--brand-secondary);
}

.fc .fc-list-event-title {
    color: var(--brand-dark);
    font-weight: 600;
}

.fc .fc-list-event-time {
    color: var(--brand-primary);
    font-weight: 700;
}

/* Calendar Loading */
.fc .fc-scroller {
    overflow-y: auto !important;
}

.fc .fc-scroller::-webkit-scrollbar {
    width: 8px;
}

.fc .fc-scroller::-webkit-scrollbar-track {
    background: var(--brand-light);
    border-radius: var(--radius-sm);
}

.fc .fc-scroller::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: var(--radius-sm);
}

.fc .fc-scroller::-webkit-scrollbar-thumb:hover {
    background: #1e6fa3;
}

/* Calendar Container Enhancements */
#calendar-container,
#viewings-calendar {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    padding: 0;
}

/* Mobile Responsive Calendar */
@media (max-width: 768px) {
    .fc .fc-toolbar {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.25rem !important;
    }

    .fc .fc-button-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 0.75rem;
        padding: 0.25rem;
    }

    .fc .fc-daygrid-day-number {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .fc-event .fc-event-title {
        font-size: 0.75rem;
    }
}

/* Input Groups */
.input-group-text {
    background: var(--brand-light);
    border: 2px solid var(--neutral-200);
    color: var(--brand-primary);
    font-weight: 600;
}

.input-group-text i {
    color: var(--brand-primary);
}

/* Progress Bars */
.progress {
    height: 0.75rem;
    border-radius: var(--radius-md);
    background-color: var(--brand-light);
}

.progress-bar {
    background: var(--brand-primary);
}

/* Notification Badge */
.notification-badge {
    background: var(--brand-secondary) !important;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Dashboard Filters */
.filter-chip {
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-chip:hover {
    border-color: var(--brand-primary);
    background: var(--brand-light);
}

.filter-chip.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.filter-chip i {
    color: var(--brand-primary);
}

/* Loading States */
.spinner-border-primary {
    color: var(--brand-primary);
}

.loading-overlay {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Dashboard Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #1e6fa3 50%, var(--brand-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.1) 0%, transparent 70%);
    animation: heroGlow 10s ease-in-out infinite;
}

.welcome-banner h2 {
    position: relative;
    z-index: 2;
}

.welcome-banner .btn {
    position: relative;
    z-index: 2;
}

/* ========================================
   Tenant Dashboard Specific Styles
   ======================================== */
.tenant-dashboard .card-header h5,
.landlord-dashboard .card-header h5 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.tenant-dashboard .card-header i,
.landlord-dashboard .card-header i {
    color: white !important;
    margin-right: 0.5rem;
}

/* Dashboard Overview Section */
.dashboard-tab h2 {
    color: var(--brand-dark);
    margin-bottom: 1rem;
}

.dashboard-tab .text-muted {
    color: var(--neutral-500) !important;
}

/* Dropdown Menus in Dashboard */
.dashboard-page .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.dashboard-page .dropdown-item {
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dashboard-page .dropdown-item:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    transform: translateX(4px);
}

.dashboard-page .dropdown-item i {
    color: var(--brand-primary);
    width: 20px;
}

/* Sorting and Filter Buttons */
.dashboard-page .btn-outline-secondary {
    border: 2px solid var(--neutral-300);
    color: var(--neutral-700);
    font-weight: 600;
}

.dashboard-page .btn-outline-secondary:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.dashboard-page .btn-outline-secondary i {
    color: var(--brand-primary) !important;
}

/* Dashboard Page - All Button Icons */
.dashboard-page .btn i {
    opacity: 1 !important;
}

.dashboard-page .btn-primary i {
    color: white !important;
}

.dashboard-page .btn-success i {
    color: white !important;
}

.dashboard-page .btn-warning i {
    color: white !important;
}

.dashboard-page .btn-danger i {
    color: white !important;
}

.dashboard-page .btn-info i {
    color: white !important;
}

/* Quick Actions - Outline Button Icons */
.dashboard-page .btn-outline-primary i,
.dashboard-page .card-body .d-grid .btn-outline-primary i,
.dashboard-page .card-body .btn-outline-primary i {
    color: var(--brand-primary) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dashboard-page .btn-outline-success i,
.dashboard-page .card-body .d-grid .btn-outline-success i,
.dashboard-page .card-body .btn-outline-success i {
    color: var(--accent-success) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dashboard-page .btn-outline-warning i,
.dashboard-page .card-body .d-grid .btn-outline-warning i,
.dashboard-page .card-body .btn-outline-warning i {
    color: var(--accent-warning) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dashboard-page .btn-outline-danger i,
.dashboard-page .card-body .d-grid .btn-outline-danger i,
.dashboard-page .card-body .btn-outline-danger i {
    color: var(--accent-danger) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.dashboard-page .btn-outline-info i,
.dashboard-page .card-body .d-grid .btn-outline-info i,
.dashboard-page .card-body .btn-outline-info i {
    color: var(--accent-info) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Quick Actions - Outline Buttons on Hover */
.dashboard-page .btn-outline-primary:hover i,
.dashboard-page .card-body .d-grid .btn-outline-primary:hover i {
    color: white !important;
}

.dashboard-page .btn-outline-success:hover i,
.dashboard-page .card-body .d-grid .btn-outline-success:hover i {
    color: white !important;
}

.dashboard-page .btn-outline-warning:hover i,
.dashboard-page .card-body .d-grid .btn-outline-warning:hover i {
    color: white !important;
}

.dashboard-page .btn-outline-danger:hover i,
.dashboard-page .card-body .d-grid .btn-outline-danger:hover i {
    color: white !important;
}

.dashboard-page .btn-outline-info:hover i,
.dashboard-page .card-body .d-grid .btn-outline-info:hover i {
    color: white !important;
}

/* Override: Keep navbar icons consistent on dashboard pages */
.dashboard-page .navbar .nav-link,
.dashboard-page nav.navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

.dashboard-page .navbar .nav-link i,
.dashboard-page nav.navbar .nav-link i {
    color: rgba(255, 255, 255, 0.95) !important;
}

.dashboard-page .navbar .nav-link:hover,
.dashboard-page nav.navbar .nav-link:hover {
    color: white !important;
}

.dashboard-page .navbar .nav-link:hover i,
.dashboard-page nav.navbar .nav-link:hover i {
    color: white !important;
}

/* Recent Views / Activity Section */
#recent-views,
#recent-activities {
    min-height: 200px;
}

.property-view-item,
.application-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    border: 2px solid var(--neutral-200);
    transition: all 0.3s ease;
    background: white;
}

.property-view-item:hover,
.application-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Property Cards in Wishlist */
.wishlist-property-card {
    transition: all 0.3s ease;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--neutral-200);
}

.wishlist-property-card:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.wishlist-property-card .property-image {
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wishlist-property-card:hover .property-image {
    transform: scale(1.1);
}

.wishlist-property-card .property-price {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 1.5rem;
}

.wishlist-property-card .property-title {
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.wishlist-property-card .property-location {
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.wishlist-property-card .property-location i {
    color: var(--brand-primary);
}

/* Application Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.status-badge.pending {
    background: var(--accent-warning);
    color: white;
}

.status-badge.approved {
    background: var(--accent-success);
    color: white;
}

.status-badge.rejected {
    background: var(--accent-danger);
    color: white;
}

.status-badge.cancelled {
    background: var(--neutral-400);
    color: white;
}

/* Viewing Schedule Cards */
.viewing-card {
    border-left: 4px solid var(--brand-secondary);
    background: white;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.viewing-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(4px);
    border-left-color: var(--brand-primary);
}

.viewing-card .viewing-date {
    background: var(--brand-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.viewing-card .viewing-date i {
    color: white !important;
}

.viewing-card .property-name {
    font-weight: 700;
    color: var(--brand-dark);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* No Data / Empty States */
.no-data-message {
    text-align: center;
    padding: 3rem 1.5rem;
}

.no-data-message i {
    font-size: 5rem;
    color: var(--brand-primary);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.no-data-message h4 {
    color: var(--neutral-600);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.no-data-message p {
    color: var(--neutral-500);
    margin-bottom: 1.5rem;
}

/* Wishlist Heart Icons - Keep Red */
.fa-heart.text-danger,
i.fa-heart.text-danger,
.wishlist-icon,
.wishlist-icon i,
button[class*="wishlist"] i.fa-heart,
.btn i.fa-heart.text-danger {
    color: #e74c3c !important;
}

/* ========================================
   Settings Page Styles
   ======================================== */
.settings-page .settings-nav .nav-link {
    color: var(--neutral-700) !important;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.settings-page .settings-nav .nav-link:hover {
    background: var(--brand-light);
    color: var(--brand-primary) !important;
}

.settings-page .settings-nav .nav-link.active {
    background: var(--brand-primary);
    color: white !important;
}

.settings-page .settings-nav .nav-link i {
    color: var(--brand-primary) !important;
    width: 20px;
    text-align: center;
}

.settings-page .settings-nav .nav-link:hover i {
    color: var(--brand-primary) !important;
}

.settings-page .settings-nav .nav-link.active i {
    color: white !important;
}

.settings-page .card-title i {
    color: var(--brand-primary) !important;
}

.settings-page .card-header i {
    color: white !important;
}

.settings-page .btn-outline-primary i {
    color: var(--brand-primary) !important;
}

.settings-page .btn-primary i {
    color: white !important;
}

/* Mobile Responsiveness for Dashboards */
@media (max-width: 768px) {
    .stat-card h3 {
        font-size: 2rem;
    }

    .dashboard-page .nav-link {
        padding: 0.75rem 1rem;
    }

    .wishlist-property-card .property-image {
        height: 150px;
    }
}

/* ========================================
   Social Login - Google Button
   ======================================== */
.social-login-section {
    margin-top: 1.5rem;
}

.google-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.google-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neutral-300);
}

.google-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: var(--neutral-500);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    background: white;
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-700);
    transition: all 0.3s ease;
    cursor: pointer;
    letter-spacing: 0.025em;
}

.btn-google:hover:not(:disabled) {
    background: var(--neutral-50);
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-google .google-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-google .google-text {
    font-weight: 600;
}

.btn-google-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile responsive for social login */
@media (max-width: 576px) {
    .btn-google {
        font-size: 0.9375rem;
        padding: 0.625rem 1rem;
    }

    .btn-google .google-icon {
        width: 16px;
        height: 16px;
    }
}
