/* Altijd Een Monteur Theme - Based on screenshots */
:root {
    /* Primary Colors from screenshots */
    --primary-teal: #2A9D8F;
    --primary-teal-dark: #238276;
    --secondary-dark: #264653;
    --accent-orange: #F4A261;
    --danger-red: #E63946;
    --success-green: #52B788;
    --warning-yellow: #F77F00;
    --info-blue: #3B82F6;
    
    /* Text Colors */
    --text-black: #1A1A1A;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    
    /* Background Colors */
    --bg-light-gray: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    
    /* Border Colors */
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    
    /* Font Family */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Global Font and Color Updates */
body {
    font-family: var(--font-primary) !important;
    color: var(--text-black) !important;
    background-color: var(--bg-light-gray) !important;
    font-weight: 400;
    line-height: 1.6;
}

/* Typography - Bold uppercase headings like in screenshots */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary) !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-black) !important;
    line-height: 1.2;
}

h1 { font-size: 48px !important; }
h2 { font-size: 36px !important; }
h3 { font-size: 24px !important; }
h4 { font-size: 20px !important; }

/* Update header styling */
.site-header {
    background-color: var(--bg-white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid var(--border-light);
}

.logo span {
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--text-black) !important;
}

/* Sidebar styling with new colors */
.sidebar {
    background-color: var(--bg-white) !important;
    border-right: 1px solid var(--border-light) !important;
}

.nav-menu a {
    color: var(--text-black) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 12px 16px !important;
}

.nav-menu a:hover {
    background-color: var(--bg-light-gray) !important;
    color: var(--primary-teal) !important;
}

.nav-menu a.active {
    background-color: var(--primary-teal) !important;
    color: white !important;
}

/* Update emergency button */
.emergency-btn {
    background-color: var(--danger-red) !important;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Status cards with screenshot styling */
.status-card {
    background-color: var(--bg-white) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--border-light) !important;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

/* Update status icons */
.status-icon.green { background-color: var(--success-green) !important; }
.status-icon.blue { background-color: var(--info-blue) !important; }
.status-icon.orange { background-color: var(--accent-orange) !important; }

/* Feature card styling like in screenshots */
.action-card {
    background-color: var(--bg-white) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 20px !important;
    color: var(--text-black) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.action-card.primary {
    background-color: var(--primary-teal) !important;
    color: white !important;
    border-color: var(--primary-teal) !important;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Buttons with new styling */
.btn {
    font-family: var(--font-primary) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-teal) !important;
    border-color: var(--primary-teal) !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark) !important;
    border-color: var(--primary-teal-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.3);
}

.btn-secondary {
    background-color: transparent !important;
    color: var(--primary-teal) !important;
    border: 2px solid var(--primary-teal) !important;
}

.btn-secondary:hover {
    background-color: var(--primary-teal) !important;
    color: white !important;
}

/* Appointment card styling */
.appointment-card {
    background-color: var(--bg-white) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--border-light) !important;
}

.appointment-date {
    background-color: var(--primary-teal) !important;
    color: white !important;
    border-radius: 15px;
}

.appointment-date .day {
    font-weight: 800 !important;
    font-size: 32px !important;
}

.appointment-date .month {
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Help cards */
.help-card {
    background-color: var(--bg-white) !important;
    border: 2px solid var(--border-light) !important;
    border-radius: 20px !important;
    transition: all 0.3s ease;
}

.help-card:hover {
    border-color: var(--primary-teal) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Activity items */
.activity-item {
    background-color: var(--bg-white) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin-bottom: 15px;
    border: 1px solid var(--border-light) !important;
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.activity-link {
    color: var(--primary-teal) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Main content background */
.main-content {
    background-color: var(--bg-light-gray) !important;
}

/* Page header */
.page-header h1 {
    color: var(--text-black) !important;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-gray) !important;
    font-size: 18px;
}

/* Update user info */
.user-info {
    background-color: var(--bg-light-gray) !important;
    border-radius: 15px;
    padding: 20px !important;
}

.user-avatar {
    background-color: var(--primary-teal) !important;
    color: white !important;
    font-weight: 700;
}

/* Logout button */
.logout-btn {
    color: var(--text-gray) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    color: var(--danger-red) !important;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    font-family: var(--font-primary) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    transition: all 0.3s ease;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-teal) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1) !important;
}

/* Autofill styling - prevent browser from changing colors */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus,
select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
}

/* Labels */
label {
    font-weight: 600 !important;
    color: var(--text-black) !important;
    margin-bottom: 8px !important;
}

/* Responsive cards grid */
.status-grid,
.help-cards {
    gap: 20px !important;
}

/* Add rounded corners to all cards */
.status-card,
.appointment-card,
.help-card,
.activity-item {
    overflow: hidden;
}

/* Smooth all transitions */
* {
    transition-property: background-color, color, border-color, transform, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Fixed header on mobile */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        height: 60px;
    }
    
    /* Adjust layout for fixed header */
    .layout {
        padding-top: 60px;
    }
    
    /* Hamburger menu styling */
    .menu-toggle {
        width: 40px;
        height: 40px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: none;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 1001;
    }
    
    .menu-toggle span {
        display: block;
        width: 24px;
        height: 3px;
        background-color: var(--text-black);
        margin: 2px 0;
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    /* Animated hamburger */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    /* Sidebar mobile styles */
    .sidebar {
        position: fixed !important;
        top: 0;
        right: -280px;
        left: auto !important;
        width: 280px;
        height: 100vh;
        background-color: var(--bg-white) !important;
        z-index: 999;
        transition: transform 0.3s ease;
        box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        padding-top: 80px;
    }
    
    .sidebar.active {
        transform: translateX(-280px);
    }
    
    /* Sidebar overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Prevent body scroll when menu is open */
    body.sidebar-open {
        overflow: hidden;
    }
    
    /* Main content adjustments */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 20px 15px !important;
    }
    
    /* Mobile specific sidebar styles */
    .sidebar .user-info {
        padding: 15px 20px !important;
        margin: 0 15px 20px;
    }
    
    .sidebar .nav-menu {
        padding: 0 15px;
    }
    
    .sidebar .nav-menu a {
        padding: 15px 20px !important;
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .sidebar .sidebar-footer {
        padding: 20px 15px;
        margin-top: auto;
        border-top: 1px solid var(--border-light);
    }
    
    /* Emergency button on mobile */
    .emergency-btn {
        bottom: 20px;
        right: 20px;
        z-index: 990;
    }
    
    /* Mobile header adjustments */
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .logo span {
        font-size: 16px !important;
    }
    
    /* Mobile content adjustments */
    .page-header h1 {
        font-size: 28px !important;
    }
    
    .status-grid {
        grid-template-columns: 1fr !important;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .action-card {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .help-cards {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile form adjustments */
    form > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile appointment card */
    .appointment-card {
        flex-direction: column;
    }
    
    .appointment-date {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .appointment-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .appointment-actions button {
        width: 100%;
    }
}