/* CrewDesk - Custom Styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.login-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    padding: 30px;
    text-align: center;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
}

/* Dashboard Stats */
.stat-card {
    border-left: 4px solid;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.primary {
    border-left-color: #007bff;
}

.stat-card.success {
    border-left-color: #28a745;
}

.stat-card.warning {
    border-left-color: #ffc107;
}

.stat-card.info {
    border-left-color: #17a2b8;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* Tables */
.table th {
    border-top: none;
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Buttons */
.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Event Cards */
.event-card {
    transition: all 0.3s ease;
}

.event-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.event-date {
    background: #007bff;
    color: white;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    min-width: 70px;
}

.event-date .day {
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* Multi-day event indicator */
.event-date .multi-day-indicator {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.3);
    font-size: 0.7rem;
    opacity: 0.9;
}

.event-date .multi-day-indicator i {
    font-size: 0.6rem;
}

/* Registration Timeline */
.registration-item {
    position: relative;
    padding-left: 30px;
    padding-bottom: 15px;
    border-left: 2px solid #e9ecef;
}

.registration-item:last-child {
    border-left: none;
}

.registration-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid white;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    color: #495057;
}

.form-control:focus,
.form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

/* Navbar active state */
.navbar-nav .nav-link.active {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-icon {
        display: none;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

/* Time range display */
.time-range {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.875rem;
}

.time-range i {
    color: #6c757d;
}

/* Progress bar for event capacity */
.capacity-bar {
    height: 8px;
    border-radius: 4px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}
