/**
 * Custom Styles for Real Estate Management System
 * RTL Arabic Support
 */

/* Root Variables */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3f73;
    --secondary-color: #f8f9fa;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --whatsapp-color: #25d366;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;

    /* Enhanced Transition Variables */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition: var(--transition-normal);

    /* Animation Easing Functions */
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles with Smooth Transitions */
* {
    box-sizing: border-box;
    /*transition: var(--transition-fast);*/
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    transition: var(--transition-normal);
    overflow-x: hidden;
}

/* Enhanced smooth transitions for all interactive elements */
a, button, input, select, textarea, .btn, .card, .badge, .alert,
.modal, .dropdown, .nav-link, .page-link, .form-control, .form-select,
.table tr, .list-group-item, .accordion-button, .tab-pane {
    transition: var(--transition-smooth);
}

/* Hover and focus states for better interactivity */
a:hover, button:hover, .btn:hover, .card:hover, .nav-link:hover,
.page-link:hover, .list-group-item:hover {
    transform: translateY(-1px);
}

/* Focus states for accessibility */
a:focus, button:focus, .btn:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    transform: translateY(-1px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Enhanced Buttons with Smooth Animations */
.btn {
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Enable hardware acceleration */
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    transition: var(--transition-fast);
}

 
 
/* Primary button enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3659 100%);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
    transform: translateY(-3px);
}

/* Outline button enhancements */
.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* Success button */
.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    transform: translateY(-3px);
}

/* Warning button */
.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800 0%, #d39e00 100%);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    transform: translateY(-3px);
    color: #212529;
}

/* Danger button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #bd2130 100%);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #bd2130 0%, #a71e2a 100%);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-3px);
}

/* WhatsApp button enhancements */
.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-color) 0%, #128c7e 100%);
    border-color: var(--whatsapp-color);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background: linear-gradient(135deg, #128c7e 0%, #0d7377 100%);
    border-color: #128c7e;
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-3px);
}

/* Button size enhancements */
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Button group enhancements */
.btn-group .btn:hover {
    z-index: 2;
}

/* Enhanced Cards with Smooth Animations */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    overflow: hidden;
    position: relative;
    background: white;
    transform: translateZ(0); /* Enable hardware acceleration */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.02) 0%, rgba(30, 63, 115, 0.02) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px) scale(1.01);
    /*border: 1px solid rgba(44, 90, 160, 0.1);*/
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.card-body {
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.card-footer {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

/* Enhanced Listing Cards */
.listing-card {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.listing-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.listing-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Favorite Button */
.favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Quick View Button */
.quick-view-btn {
    border-radius: 8px;
    padding: 8px 12px;
    border: none;
    transition: all 0.3s ease;
}

.quick-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Property Features Grid */
.listing-card .bg-light {
    transition: all 0.3s ease;
}

.listing-card:hover .bg-light {
    background-color: #f8f9fa !important;
    transform: translateY(-1px);
}

/* Price Tag */
.listing-card .price-tag {
    border-radius: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

/* Trust Section Enhancements */
.trust-stat {
    transition: all 0.3s ease;
}

.trust-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Badge Enhancements */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Button Hover Effects */
.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.4);
}

/* Enhanced Forms with Smooth Animations */
.form-control,
.form-select {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    transition: var(--transition-smooth);
    padding: 0.75rem 1rem;
    background: white;
    position: relative;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(44, 90, 160, 0.3);
    /*transform: translateY(-1px);*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    background: #fafbfc;
}

/* Floating label effect */
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary-color);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
    transition: var(--transition-smooth);
}

.form-label:hover {
    color: var(--primary-color);
}

.input-group-text {
    background: linear-gradient(135deg, var(--light-color) 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    transition: var(--transition-smooth);
    font-weight: 500;
}

.input-group:hover .input-group-text {
    border-color: rgba(44, 90, 160, 0.3);
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1) 0%, rgba(44, 90, 160, 0.05) 100%);
    color: var(--primary-color);
}

/* Checkbox and radio enhancements */
.form-check-input {
    transition: var(--transition-smooth);
    border: 2px solid #dee2e6;
}

.form-check-input:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.form-check-label {
    transition: var(--transition-smooth);
    cursor: pointer;
}

.form-check:hover .form-check-label {
    color: var(--primary-color);
    transform: translateX(-2px);
}

/* Navigation */
.navbar {
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Search Form */
.search-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: var(--dark-color);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.search-form .form-control,
.search-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.15);
    transform: translateY(-1px);
}

.search-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

/* Price Filter Buttons */
.price-filter {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.price-filter:hover,
.price-filter.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Property Type Filters */
[data-filter] {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

[data-filter]:hover,
[data-filter].active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Enhanced Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(44, 90, 160, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 90, 160, 0.15);
    border-color: rgba(44, 90, 160, 0.2);
}

/* Feature Icon Wrapper */
.feature-icon-wrapper {
    position: relative;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s ease;
}

.feature-card:hover .feature-icon::before {
    left: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Feature Background Icon */
.feature-bg-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 4rem;
    color: rgba(44, 90, 160, 0.05);
    z-index: 0;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-bg-icon {
    transform: scale(1.2) rotate(10deg);
    color: rgba(44, 90, 160, 0.1);
}

/* Feature Number */
.feature-number {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.8;
    z-index: 1;
}

/* Feature Mini Cards */
.feature-mini-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(44, 90, 160, 0.1);
    min-height: 110px;
}

.feature-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.1);
    border-color: rgba(44, 90, 160, 0.2);
}

.feature-mini-icon {
    width: 50px;
    height: 50px;
    background: rgba(44, 90, 160, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-mini-card:hover .feature-mini-icon {
    background: rgba(44, 90, 160, 0.15);
    transform: scale(1.1);
}

/* Feature Section Animations */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

.feature-mini-card {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInRight 0.6s ease-out forwards;
}

.feature-mini-card:nth-child(1) { animation-delay: 0.5s; }
.feature-mini-card:nth-child(2) { animation-delay: 0.6s; }
.feature-mini-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Feature Icon Color Variants */
.feature-icon.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.feature-icon.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.feature-icon.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.feature-icon.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

/* Responsive Enhancements for Features */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 15px;
    }

    .feature-bg-icon {
        font-size: 3rem;
        top: 5px;
        right: 5px;
    }

    .feature-number {
        font-size: 1rem;
        bottom: 10px;
        right: 10px;
    }

    .feature-mini-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        border-radius: 8px;
    }
}

@media (max-width: 576px) {
    .feature-card {
        padding: 1.5rem !important;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        border-radius: 12px;
    }

    .feature-bg-icon {
        display: none;
    }

    .feature-number {
        position: static;
        margin-top: 1rem;
        font-size: 0.9rem;
    }
}

/* Badges */
.badge {
    font-weight: 500;
    border-radius: var(--border-radius);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
}

/* Enhanced Tables with Smooth Animations */
.table {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.table:hover {
   /* box-shadow: var(--shadow);*/
}

.table th {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
   color: #495057;
    font-weight: 600;
    border: none;
    padding: 1rem;
    position: relative;
    transition: var(--transition-smooth);
}
.table th:not(:last-child) {
  border-left: 1px solid #e4e4e4;
}
.table th::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.table th:hover::before {
    transform: translateX(100%);
}

.table tbody tr {
    transition: var(--transition-smooth);
    border: none;
}

.table tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table tbody td {
    padding: 1rem;
    border-color: rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    vertical-align: middle;
}

.table tbody tr:hover td {
    color: var(--primary-color);
    font-weight: 500;
}

/* Table responsive wrapper */
 

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 3rem 0 1rem;
}

.footer h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Back to Top Button */
#backToTop {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Toast Notifications */
.toast {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .search-form {
        padding: 1.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .listing-card .card-img-top {
        height: 150px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-section {
        padding: 2rem 0;
    }

    .search-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }

    /* Mobile-specific enhancements */
    .listing-card .card-img-top {
        height: 180px;
    }

    .price-filter {
        font-size: 0.75rem;
        padding: 4px 8px;
        margin-bottom: 0.5rem;
    }

    [data-filter] {
        font-size: 0.85rem;
        padding: 6px 12px;
        margin-bottom: 0.5rem;
    }

    .search-form .form-control,
    .search-form .form-select {
        padding: 10px 14px;
    }

    .favorite-btn,
    .quick-view-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .hero-section .row.text-center div {
        margin-bottom: 1rem;
    }

    .hero-section .h5 {
        font-size: 1.1rem;
    }

    .display-4 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .lead {
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    #backToTop,
    .btn,
    .toast-container {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
    
    body {
        background-color: #121212;
        color: var(--dark-color);
    }
    
    .card {
        background-color: #1e1e1e;
        color: var(--dark-color);
    }
    
    .form-control,
    .form-select {
        background-color: #2d2d2d;
        border-color: #495057;
        color: var(--dark-color);
    }
    
    .table {
        color: var(--dark-color);
    }
    
    .table th {
        background-color: #2d2d2d;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for better accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000000;
        border-color: #000000;
        color: #ffffff;
    }
    
    .btn-primary:hover {
        background-color: #333333;
        border-color: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
       
    }
}
.fs-7  { font-size: 0.875rem; } /* smaller than fs-6 */
.fs-8  { font-size: 0.75rem; }

/* ========================================
   COMPREHENSIVE SMOOTH ANIMATIONS
   ======================================== */

/* Page Load Animations */
.page-content {
    animation: fadeInUp 0.6s var(--ease-smooth) both;
}

.container, .container-fluid {
    animation: slideInUp 0.8s var(--ease-smooth) both;
}

/* Staggered animations for multiple elements */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Modal Enhancements */
.modal {
    transition: var(--transition-smooth);
}

.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: var(--transition-bounce);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border: none;
    padding: 1.5rem;
    background: rgba(248, 249, 250, 0.5);
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    transform: translateY(-10px);
    opacity: 0;
}

.dropdown-menu.show {
    transform: translateY(0);
    opacity: 1;
}

.dropdown-item {
    transition: var(--transition-fast);
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    /*! background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); */
    color: #2362b3;
    transform: translateX(0px);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.7;
}

.alert:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Badge Enhancements */
.badge {
    transition: var(--transition-smooth);
    border-radius: 6px;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Pagination Enhancements */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 2px;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

/* Utility Animation Classes */
.animate-fadeIn { animation: fadeInUp 0.6s var(--ease-smooth) both; }
.animate-slideInRight { animation: slideInRight 0.6s var(--ease-smooth) both; }
.animate-slideInLeft { animation: slideInLeft 0.6s var(--ease-smooth) both; }
.animate-zoomIn { animation: zoomIn 0.6s var(--ease-smooth) both; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-bounce { animation: bounce 1s infinite; }

/* Delay utility classes */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Hover Effects for Interactive Elements */
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.4);
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3659 100%);
}

/* ========================================
   RIPPLE EFFECTS & TOAST NOTIFICATIONS
   ======================================== */

/* Button Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: var(--transition-smooth);
    opacity: 0;
}

.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #1e7e34 100%);
}

.toast-error {
    background: linear-gradient(135deg, var(--danger-color) 0%, #bd2130 100%);
}

.toast-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #e0a800 100%);
    color: #212529;
}

.toast-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%);
}

.toast-content {
    display: flex;
    align-items: center;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: inherit;
}

/* Enhanced Spinner */
.spinner-border {
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Toast Notifications */
@media (max-width: 768px) {
    .toast-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-100px);
    }

    .toast-notification.show {
        transform: translateY(0);
    }
}

/* ========================================
   ENHANCED RESPONSIVE ANIMATIONS
   ======================================== */

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    * {
        transition-duration: 0.2s !important;
        animation-duration: 0.4s !important;
    }

    .card:hover,
    .btn:hover,
    .table tbody tr:hover {
        transform: none !important;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
      
        scroll-behavior: auto !important;
    }

    .animate-fadeIn,
    .animate-slideInRight,
    .animate-slideInLeft,
    .animate-zoomIn {
        animation: none !important;
    }
}
.table-hover > tbody > tr:hover > * {
  --bs-table-bg-state: rgba(0, 0, 0, 0.03)!important;
}

/* ========================================
   ENHANCED MODAL STYLES
   ======================================== */

/* Enhanced Modal Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    position: relative;
    overflow: hidden;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modal-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* User Profile Header */
.user-profile-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.user-profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,123,255,0.1) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

.user-avatar-large {
    width: 80px;
    height: 80px;
    position: relative;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.user-avatar-large img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border: 3px solid #6c757d;
    transition: all 0.3s ease;
}

.avatar-placeholder:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

/* Section Titles */
.section-title {
    color: #495057;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 1px;
}

/* Enhanced Input Groups */
.input-group {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.input-group.focused {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

.input-group.has-value .input-group-text {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-group:hover .input-group-text {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Password Requirements */
.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.requirement {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.requirement.text-success {
    animation: checkmark 0.5s ease;
}

.requirement.text-danger {
    opacity: 0.7;
}

@keyframes checkmark {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Password Strength Meter */
.progress {
    border-radius: 10px;
    overflow: hidden;
    background: #e9ecef;
    height: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    transition: all 0.5s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.2) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.2) 75%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* Account Statistics */
.stat-item {
    padding: 15px;
    border-radius: 12px;
    background: white;
    margin: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

/* Enhanced Modal Animations */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px) rotateX(10deg);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0) rotateX(0deg);
}

/* Loading States */
#editUserLoading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

#editUserLoading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Enhanced Form Controls */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 12px 15px;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

.form-control:hover, .form-select:hover {
    border-color: #adb5bd;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    position: relative;
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.form-control:focus + .form-label::after,
.form-select:focus + .form-label::after {
    width: 30px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
    }

    .modal-header, .modal-body, .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .user-avatar-large {
        width: 60px;
        height: 60px;
    }

    .stat-item {
        margin: 2px;
        padding: 12px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .password-requirements {
        padding: 10px;
    }

    .requirement {
        font-size: 0.8rem;
    }

    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* User Profile View Styles */
.user-view-header {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.profile-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    color: white;
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.1) 100%);
}

.profile-content {
    position: relative;
    z-index: 1;
}

.profile-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
}

.profile-status-indicator.active {
    background-color: #28a745;
}

.profile-status-indicator.inactive {
    background-color: #dc3545;
}

.profile-info {
    text-align: center;
    margin-top: 1rem;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.profile-email {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.profile-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.profile-badge.role-admin {
    background: rgba(220, 53, 69, 0.3);
}

.profile-badge.status-active {
    background: rgba(40, 167, 69, 0.3);
}

.profile-badge.status-inactive {
    background: rgba(108, 117, 125, 0.3);
}

.profile-actions {
    margin-top: 1rem;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-primary .stat-icon {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.stat-success .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.stat-warning .stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.stat-info .stat-icon {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Information Cards */
.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-card-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.info-card-body {
    padding: 1.25rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item:first-child {
    padding-top: 0;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content {
    flex-grow: 1;
}

.info-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
}

.info-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value a:hover {
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .profile-banner {
        padding: 1.5rem;
    }

    .profile-avatar-container {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .info-card-header,
    .info-card-body {
        padding: 1rem;
    }

    .info-item {
        padding: 0.75rem 0;
    }
}

@media (max-width: 576px) {
    .profile-banner {
        padding: 1rem;
    }

    .profile-avatar-container {
        width: 80px;
        height: 80px;
    }

    .profile-badges {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}