/**
 * CORTLANDT ROOFING TIME CLOCK - STYLES
 * ======================================
 * Clean, modern dark theme optimized for mobile
 */

/* ============================================
   BASE STYLES
   ============================================ */

body {
    background-color: #0f172a; /* Deep slate blue */
    color: #f8fafc; /* Off-white text */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */

.dark-card {
    background: #1e293b;
    border-radius: 30px;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-success {
    background-color: #10b981 !important; /* Emerald green */
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background-color: #ef4444 !important; /* Soft red */
    border: none;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background-color: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

/* ============================================
   TEXT & LABELS
   ============================================ */

.text-info {
    color: #fbbf24 !important; /* Golden yellow */
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   HISTORY ITEMS
   ============================================ */

.history-item {
    background: #334155;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid #fbbf24; /* Gold accent */
    transition: all 0.2s ease;
}

.history-item:hover {
    background: #3f4f63;
    transform: translateX(4px);
}

/* ============================================
   LOGO
   ============================================ */

.logo-img {
    max-width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.3));
    margin: 10px auto 20px auto;
    display: block;
}

/* ============================================
   WEATHER WIDGET
   ============================================ */

.weather-container {
    display: flex;
    justify-content: space-around;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.weather-location {
    text-align: center;
    padding: 0 0.75rem;
}

.weather-location:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.weather-location-name {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.weather-temp {
    font-weight: 700;
    color: #fbbf24;
    font-size: 0.9rem;
}

/* ============================================
   USER INFO HEADER
   ============================================ */

.user-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.user-name {
    color: #fbbf24;
    font-weight: 700;
}

.user-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    display: block;
}

/* ============================================
   CLOCK STATUS DISPLAY
   ============================================ */

.clock-status-active {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.clock-status-inactive {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-badge {
    opacity: 0.5;
}

/* ============================================
   FORM INPUTS
   ============================================ */

.form-select,
.form-control {
    background-color: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.form-select:focus,
.form-control:focus {
    background-color: #1e293b;
    color: #f8fafc;
    border-color: #fbbf24;
    box-shadow: 0 0 0 0.2rem rgba(251, 191, 36, 0.25);
}

.form-label {
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ============================================
   FOOTER NAVIGATION
   ============================================ */

.footer-nav {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.footer-nav .btn {
    border-radius: 12px;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */

.alert {
    border-radius: 1rem;
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-warning {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 576px) {
    .weather-location-name {
        font-size: 0.65rem;
    }
    
    .weather-temp {
        font-size: 0.85rem;
    }
    
    .logo-img {
        max-width: 150px;
    }
}
