/* SIMMS Custom Styles */

:root {
    --sidebar-width: 240px;
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.login-logo {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* Sidebar */
.simms-sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: inset -1px 0 0 rgba(0,0,0,.1);
}

.simms-sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    margin: 0.15rem 0.5rem;
}

.simms-sidebar .nav-link:hover {
    background-color: #e9ecef;
    color: #0d6efd;
}

.simms-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.simms-sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stat-card {
    border-left: 4px solid var(--primary-color);
}

.stat-card.success { border-left-color: var(--success-color); }
.stat-card.warning { border-left-color: var(--warning-color); }
.stat-card.danger { border-left-color: var(--danger-color); }
.stat-card.info { border-left-color: var(--info-color); }

/* Booking Status Badges */
.badge-submitted { background-color: #6c757d; }
.badge-pending { background-color: #ffc107; color: #000; }
.badge-approved { background-color: #198754; }
.badge-assigned { background-color: #0dcaf0; color: #000; }
.badge-rejected { background-color: #dc3545; }
.badge-executed { background-color: #0d6efd; }
.badge-delivered { background-color: #198754; }
.badge-feedback_complete { background-color: #0dcaf0; }
.badge-archived { background-color: #212529; }
.badge-cancelled { background-color: #dc3545; }

/* Booking Form Steps */
.booking-step {
    display: none;
}
.booking-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step-item:last-child::after {
    display: none;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.step-item.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: white;
}

/* Quick Booking Buttons */
.quick-book-btn {
    padding: 1.5rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.quick-book-btn:hover {
    border-color: var(--primary-color);
    background: #f8f9ff;
    transform: scale(1.02);
}

.quick-book-btn.selected {
    border-color: var(--primary-color);
    background: #e7f1ff;
}

/* Equipment Cards */
.equip-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.equip-card:hover {
    border-color: var(--primary-color);
}

.equip-card.selected {
    border-color: var(--primary-color);
    background: #e7f1ff;
}

.equip-card.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    font-size: 1.5rem;
}

.star-rating .star {
    cursor: pointer;
    color: #dee2e6;
    transition: color 0.2s;
}

.star-rating .star.active,
.star-rating .star:hover,
.star-rating .star:hover ~ .star {
    color: #ffc107;
}

/* Calendar View */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
}

.calendar-day:hover {
    background: #e9ecef;
}

.calendar-day.has-event {
    background: #e7f1ff;
    color: var(--primary-color);
    font-weight: bold;
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
}

/* Archive Items */
.archive-item {
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.archive-item .thumb {
    aspect-ratio: 16/9;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .simms-sidebar {
        display: none;
    }
    
    .login-card {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .step-indicator {
        font-size: 0.75rem;
    }
    
    .step-circle {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Print Styles */
@media print {
    .simms-navbar, .simms-sidebar, .btn {
        display: none !important;
    }
    
    main {
        margin: 0 !important;
        width: 100% !important;
    }
}
