:root {
    --primary-color: #1f2937; /* Darker for sidebar */
    --secondary-color: #3b82f6; /* Blue */
    --accent-color: #f59e0b; /* Orange/Yellow for active states */
    --text-color: #1f2937;
    --bg-color: #f3f4f6;
    --white: #ffffff;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    
    /* Card Colors */
    --card-green: #22c55e;
    --card-blue: #3b82f6;
    --card-orange: #f59e0b;
    --card-red: #ef4444;

    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Landing Page Styles */
.landing-page {
    background-color: #f8f9fa;
    color: #333;
}

.landing-navbar {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.brand-text small {
    font-size: 0.6rem;
    color: var(--warning);
    letter-spacing: 1px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links .btn-login {
    background-color: var(--warning);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-links .btn-login:hover {
    transform: translateY(-2px);
    background-color: #e0a800;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-image {
    flex: 1.2;
    position: relative;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
    border-radius: 5px;
    background-color: var(--warning);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Dashboard Mockup Placeholder Styling */
.mockup-placeholder {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
    border: 1px solid #eee;
    min-height: 300px;
}

.mockup-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.m-stat {
    flex: 1;
    height: 60px;
    border-radius: 6px;
}

.m-stat.green { background: #dcfce7; }
.m-stat.blue { background: #dbeafe; }
.m-stat.orange { background: #ffedd5; }
.m-stat.red { background: #fee2e2; }

.mockup-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 200px;
}

.m-map {
    background: #f3f4f6;
    border-radius: 6px;
}

.m-list {
    background: #f9fafb;
    border-radius: 6px;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.section-title p {
    font-size: 1.5rem;
    color: var(--gray);
    font-weight: 300;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    font-size: 1.5rem;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: #f8f9fa;
    text-align: center;
}

.landing-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Large Mockup for CTA */
.mockup-placeholder.large {
    display: flex;
    height: 400px;
    padding: 0;
    overflow: hidden;
    background: #1f2937; /* Sidebar color match */
}

.mockup-sidebar {
    width: 200px;
    background: #111827;
    border-right: 1px solid #374151;
}

.mockup-main {
    flex: 1;
    background: #f3f4f6;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.mockup-header-bar {
    height: 40px;
    background: #fff;
    margin-bottom: 20px;
    border-radius: 4px;
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.login-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header .logo {
    max-width: 100px; /* Placeholder size */
    margin-bottom: 20px;
}

.login-header h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input, .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-control:focus {
    border-color: var(--secondary-color);
    outline: none;
}

textarea.form-control {
    font-family: inherit;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    filter: brightness(0.9);
}

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

.btn-danger {
    background-color: var(--danger);
}

.btn-secondary {
    background-color: var(--gray);
}

.btn-warning {
    background-color: var(--warning);
    color: #fff;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-danger {
    background-color: #fce4e4;
    color: var(--danger);
    border: 1px solid #fcc2c3;
}

.login-footer {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Dashboard Layout */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    padding: 25px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
}

.sidebar-header img {
    max-width: 40px;
    margin-right: 10px;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar-header small {
    display: block;
    font-size: 0.65rem;
    opacity: 0.6;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 2px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    flex: 1;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.sidebar-menu li a i {
    width: 25px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-menu li a:hover {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
}

.sidebar-menu li a.active {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 500;
    border-left: none; /* Removed border, full bg color as per image */
}

.sidebar-menu li a .badge {
    margin-left: auto;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 260px; /* Offset for fixed sidebar */
    background-color: var(--bg-color);
}

.top-navbar {
    background-color: var(--bg-color); /* Matches body bg */
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-left i {
    font-size: 1.2rem;
    color: var(--gray);
    margin-right: 20px;
    cursor: pointer;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.navbar-right .notification-icon {
    position: relative;
    margin-right: 25px;
    color: var(--gray);
    cursor: pointer;
}

.navbar-right .notification-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 50%;
}

.user-profile {
    display: flex;
    align-items: center;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    margin-right: 10px;
    background-color: var(--bg-color); /* Fix for potential transparency issues */
}

.user-info .name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-info .role {
    font-size: 0.75rem;
    color: var(--gray);
}

.content-wrapper {
    padding: 0 30px 30px 30px;
    flex: 1;
    overflow-y: auto;
}

/* Dashboard Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 25px;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.stat-card.green { background-color: var(--card-green); }
.stat-card.blue { background-color: var(--card-blue); }
.stat-card.orange { background-color: var(--card-orange); }
.stat-card.red { background-color: var(--card-red); }

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
}

.stat-icon-left {
    font-size: 2rem;
    margin-right: 15px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

.stat-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Dashboard Layout Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

/* Common Card Style */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 25px;
}

/* Parking Map Grid */
.parking-map-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
}

.parking-spot-mini {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    position: relative;
}

.parking-spot-mini.free {
    background-color: var(--success);
    opacity: 0.8;
}

.parking-spot-mini.occupied {
    background-color: var(--danger); /* Changed to red as per image */
    opacity: 0.8;
}

/* Tooltip for parking */
.parking-spot-mini:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: pre-wrap;
    z-index: 10;
    min-width: 120px;
    text-align: center;
    pointer-events: none;
}

/* Lists */
.list-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.list-item:last-child {
    border-bottom: none;
}

.list-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.list-icon.bg-green { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.list-icon.bg-blue { background: rgba(59, 130, 246, 0.1); color: var(--card-blue); }
.list-icon.bg-orange { background: rgba(245, 158, 11, 0.1); color: var(--warning); }

.list-content h4 {
    font-size: 0.95rem;
    margin-bottom: 3px;
    font-weight: 500;
}

.list-content p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
}

.list-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--gray);
}

/* Table overrides */
.table th {
    background-color: transparent;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.table td {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light-gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-image {
        width: 100%;
    }
    .mockup-grid {
        display: none; /* Hide complexity on mobile */
    }
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -260px;
        z-index: 1000;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* Simplify mobile nav for now */
    }
}
