:root {
    --primary: #00cec9;
    --primary-hover: #00b894;
    --primary-rgb: 0, 206, 201;
    --bg: #f5f6fa;
    --panel-bg: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --border: #e2e8f0;
    --success: #2ecc71;
    --error: #e74c3c;
    --warning: #f1c40f;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px rgba(0, 206, 201, 0.08), 0 1px 10px rgba(0, 0, 0, 0.05);
    --radius: 12px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-top: 0;
    color: var(--text-primary);
}

a {
    color: var(--primary-hover);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary);
}

/* Header & Navigation */
.main-header {
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-container i {
    color: var(--primary);
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-item {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-item:hover, .nav-item.active {
    color: var(--primary-hover);
    background: rgba(var(--primary-rgb), 0.05);
}

.logout-btn {
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius);
    color: var(--error);
    font-size: 13px;
    font-weight: 600;
}
.logout-btn:hover {
    background: rgba(231, 76, 60, 0.05);
    border-color: rgba(231, 76, 60, 0.2);
}

/* Layout */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 40px auto;
    flex: 1;
}

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

.grid-cols-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
}

@media (max-width: 900px) {
    .grid-cols-2, .grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Panels / Cards */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.panel:hover {
    box-shadow: var(--shadow-hover);
}

.panel-header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
    background: #fafafa;
}

.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #fafafa;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: #f1f2f6;
    color: var(--text-primary);
}

/* Alerts / Banners */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: rgba(231, 76, 60, 0.08);
    border-left: 4px solid var(--error);
    color: #c0392b;
}

.alert-success {
    background: rgba(46, 204, 113, 0.08);
    border-left: 4px solid var(--success);
    color: #27ae60;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Device Photo Upload Box */
.photo-upload-placeholder {
    border: 2px dashed var(--border);
    padding: 40px;
    text-align: center;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}
.photo-upload-placeholder:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}
.photo-upload-placeholder i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 12px;
}

/* Calendar grid styling */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.calendar-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 8px 0;
}

.calendar-cell {
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 8px;
    aspect-ratio: 1;
    padding: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-cell:hover {
    background: white;
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.calendar-cell.today {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}

.calendar-cell.has-slot {
    background: rgba(var(--primary-rgb), 0.05);
}

.calendar-cell.booked {
    background: rgba(46, 204, 113, 0.05);
}

.calendar-cell .day-num {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.calendar-cell .slot-badge {
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    text-align: center;
}

/* Accessory catalog styling */
.accessory-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.accessory-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
    border: 1px solid var(--border);
}

.accessory-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-hover);
    margin: 10px 0 15px 0;
}

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

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-val {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 600;
}
