/* C:\xampp\htdocs\emlakbol\style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Color Palette - Premium Slate, Royal Deep Navy & Luxury Sapphire Blue Accent */
    --primary: #0a0f1d;
    --primary-light: #161e35;
    --accent: #0ea5e9;         /* Premium Ocean Blue */
    --accent-hover: #0284c7;   /* Darker Ocean Blue on hover */
    --accent-light: #e0f2fe;   /* Light Ice Blue background */
    --secondary: #4f46e5;      /* Royal Indigo */
    --bg-main: #f4f6fa;        /* Soft desaturated background - very easy on the eyes */
    --surface: #ffffff;        /* Pure white cards */
    --border: #e2e8f0;         /* Soft thin borders */
    --border-focus: #38bdf8;   /* Soft Ocean Blue outline for inputs */
    --text: #1e293b;           /* Slate gray text, less harsh than pure black */
    --text-muted: #64748b;     /* Muted slate */
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Radius & Shadow */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 4px rgba(10, 15, 29, 0.02);
    --shadow-md: 0 10px 20px rgba(10, 15, 29, 0.03), 0 2px 6px rgba(10, 15, 29, 0.02);
    --shadow-lg: 0 20px 35px rgba(10, 15, 29, 0.05), 0 4px 12px rgba(10, 15, 29, 0.02);
    --shadow-premium: 0 25px 50px -12px rgba(10, 15, 29, 0.08), 0 8px 24px rgba(10, 15, 29, 0.03);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text);
    line-height: 1.62;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Common Layout Containers */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* Header & Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--accent);
    filter: drop-shadow(0 2px 8px rgba(14, 165, 233, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover i {
    transform: rotate(-10deg) scale(1.1);
}

.logo span {
    color: var(--accent);
    position: relative;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    flex-shrink: 0;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding: 6px 0;
}

.nav-link i {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover i {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar Search Component */
.nav-search {
    flex-grow: 1;
    max-width: 380px;
    position: relative;
}

.nav-search form {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-search input {
    width: 100%;
    padding: 11px 18px 11px 44px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background-color: #f1f5f9;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search input:focus {
    outline: none;
    border-color: var(--border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.nav-search i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.3s ease;
}

.nav-search input:focus + i, .nav-search form:focus-within i {
    color: var(--accent);
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: var(--accent);
    color: var(--accent-hover);
}

.btn-dark {
    background-color: var(--primary);
    color: white;
}

.btn-dark:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(10, 15, 29, 0.15);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* Hero Banner Premium */
.hero-premium {
    background: linear-gradient(135deg, rgba(10, 15, 29, 0.94) 0%, rgba(22, 30, 53, 0.9) 100%), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 80px 0 90px 0;
    margin-bottom: 40px;
    color: white;
    position: relative;
    border-bottom: 4px solid var(--accent);
}

.hero-premium-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hero-premium-content h1 {
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.25;
    text-align: center;
}

.hero-premium-content h1 span {
    color: var(--accent);
}

.hero-premium-content p {
    color: #cbd5e1;
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 300;
    text-align: center;
}

/* Glassmorphic Search Widget */
.search-widget {
    background: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: left;
    margin-top: 15px;
}

.search-widget-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr auto;
    gap: 15px;
    align-items: flex-end;
}

.search-widget-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-widget-field label {
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.search-widget-field input,
.search-widget-field select {
    background-color: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--primary);
    outline: none;
    transition: all 0.25s ease;
    width: 100%;
}

.search-widget-field input:focus,
.search-widget-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25);
    background-color: #ffffff;
}

.search-widget-btn {
    height: 48px;
    padding: 0 26px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

/* Home Two Column Grid layout */
.home-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Categories Menu */
.category-sidebar {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.cat-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-item-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
    background-color: var(--bg-main);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.cat-header:hover, .cat-header.active {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--accent);
}

.cat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-header i.chevron {
    font-size: 12px;
    transition: transform 0.2s;
}

.cat-header.active i.chevron {
    transform: rotate(180deg);
}

.subcat-menu-list {
    list-style: none;
    padding: 5px 0 5px 24px;
    display: none; /* JS will toggle */
    flex-direction: column;
    gap: 6px;
}

.subcat-menu-list.open {
    display: flex;
}

.subcat-link {
    display: block;
    padding: 6px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-radius: 4px;
}

.subcat-link:hover, .subcat-link.active {
    color: var(--accent);
    background-color: #f1f5f9;
    font-weight: 500;
}

/* Listings Grid & Cards */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.listing-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(14, 165, 233, 0.25);
}

.listing-img-wrapper {
    position: relative;
    height: 190px;
    background-color: #e2e8f0;
    overflow: hidden;
}

.listing-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.listing-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.listing-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(14, 165, 233, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 15px;
    backdrop-filter: blur(4px);
}

.listing-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.listing-cat {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.listing-title {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
    line-height: 1.4;
}

.listing-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-details {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

.listing-detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.package-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 35px 25px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.package-card.popular {
    border-color: var(--secondary);
    box-shadow: var(--shadow-premium);
    transform: scale(1.02);
}

.package-card.popular::before {
    content: 'En Popüler';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.package-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.package-price {
    font-size: 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.package-price span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

.package-credits {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.package-features {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    flex-grow: 1;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* Auth Pages */
.auth-wrapper {
    min-height: calc(100vh - 150px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.auth-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
    width: 100%;
    max-width: 450px;
    padding: 35px;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    font-size: 26px;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 13px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent);
    font-weight: 600;
}

/* User & Admin Dashboards Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 75px);
}

.sidebar {
    background-color: var(--primary);
    color: white;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.sidebar-link i {
    font-size: 16px;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.sidebar-link.active {
    color: var(--primary);
    background-color: var(--accent);
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.sidebar-link.active i {
    color: var(--primary);
}

.sidebar-user {
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-user-name {
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
    font-size: 15px;
}

.sidebar-user-role {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-content {
    padding: 40px 50px;
    background-color: var(--bg-main);
    overflow-y: auto;
}

/* Dashboard Widgets / Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(14, 165, 233, 0.15);
}

.stat-info h3 {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
    font-weight: 700;
}

.stat-info p {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
}

.stat-icon {
    font-size: 26px;
    color: var(--accent);
    background-color: rgba(14, 165, 233, 0.08);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background-color: var(--accent);
    color: var(--primary);
}

/* UI Tables */
.table-wrapper {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow-x: auto;
    margin-top: 20px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.table th {
    background-color: var(--bg-main);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.table tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-approved {
    background-color: #d1fae5;
    color: #059669;
}

.badge-rejected {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Listing Details Page */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.detail-main {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 25px;
}

.detail-gallery {
    margin-bottom: 25px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.gallery-large {
    height: 420px;
    background-color: #e2e8f0;
}

.gallery-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb.active {
    border-color: var(--accent);
}

.detail-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.detail-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 18px 0;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.detail-feature-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: var(--bg-main);
    border-radius: 6px;
    font-size: 13px;
}

.detail-feature-item span:first-child {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-feature-item span:last-child {
    font-weight: 600;
}

.sidebar-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.seller-info {
    text-align: center;
}

.seller-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}

.seller-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 5px;
}

.seller-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* Footer styling */
.footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 50px 0 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    color: white;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #d4af37; /* Gold logo text */
}

.footer-logo i {
    color: #d4af37; /* Gold logo icon */
}

.footer h3 {
    color: #d4af37; /* Luxury Metallic Gold for headings */
    font-size: 16px;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #cbd5e1; /* Easy on the eyes silver/gray links */
    transition: all 0.25s ease;
}

.footer-links a i {
    color: #d4af37; /* Gold bullet icons */
    margin-right: 6px;
    transition: transform 0.25s ease;
}

.footer-links a:hover {
    color: #d4af37; /* Luxury Gold on hover */
    padding-left: 4px;
}

.footer-links a:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

.footer i.fa-envelope, .footer i.fa-phone {
    color: #d4af37; /* Gold for contact icons */
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom p {
    color: #94a3b8;
}

/* Alert Notification Box */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Responsive fixes */
@media(max-width: 992px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none !important;
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        display: none !important;
    }
    .nav-buttons {
        display: none !important;
    }
    .mobile-toggle {
        display: block !important;
    }
}

@media(max-width: 768px) {
    .hero h1 {
        font-size: 30px;
    }
    .nav-search {
        display: none !important; /* Hide nav search on mobile to prevent clutter */
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* Custom Premium Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background-color: #f8fafc;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease-in-out;
}

.form-control:focus {
    border-color: var(--border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Mobile Toggle Hamburger button styling */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.mobile-toggle:hover {
    color: var(--accent);
}

/* Slide-out Mobile Navigation Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--surface);
    box-shadow: 25px 0 50px -12px rgba(10, 15, 29, 0.25);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(10, 15, 29, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Drawer Internal Components */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.drawer-close:hover {
    color: var(--danger);
}

.drawer-search {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.drawer-search form {
    position: relative;
}

.drawer-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.drawer-search input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background-color: #f8fafc;
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.drawer-search input:focus {
    border-color: var(--border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.drawer-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s ease;
}

.drawer-menu li a i {
    width: 20px;
    font-size: 16px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.drawer-menu li a:hover {
    background-color: var(--bg-main);
    color: var(--accent);
}

.drawer-menu li a:hover i {
    color: var(--accent);
}

.drawer-divider {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin: 20px 0 10px 16px;
}

.drawer-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background-color: #f8fafc;
}
