/* MyFloat Dashboard Color Theme Improvements - Enhanced Contrast & Readability */

/* Quick Actions Section - Enhanced Button Styling */
.quick-action-btn {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quick-action-btn .btn-text {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    display: block;
}

.quick-action-btn .btn-description {
    opacity: 0.9;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.quick-action-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Submit Manual Reading - Enhanced Green */
.btn-success {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
}

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

/* Record Filter Change - Enhanced Orange/Amber */
.btn-warning {
    background-color: #f59e0b !important;
    border-color: #f59e0b !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

/* Get Support - Enhanced Blue */
.btn-info {
    background-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: white !important;
}

.btn-info:hover {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* Emergency Contact - WhatsApp Green */
.btn-danger {
    background-color: #25d366 !important;
    border-color: #25d366 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #1ea954 !important;
    border-color: #1ea954 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.3);
}

/* Navigation Banner - Enhanced Contrast */
.navigation-banner {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border-radius: 18px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.2);
}

.navigation-banner .banner-title h1 {
    color: white !important;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.navigation-banner .banner-title p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.navigation-banner .nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0 !important;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    
    /* Silver metallic text effect */
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.5),
        0 -1px 0 rgba(0,0,0,0.3) !important;
}

.navigation-banner .nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: #f0f0f0 !important;
    text-decoration: none;
    
    /* Enhanced silver metallic text on hover */
    text-shadow: 
        0 1px 0 rgba(255,255,255,0.7),
        0 -1px 0 rgba(0,0,0,0.4) !important;
}

.navigation-banner .nav-btn.active {
    background: #e74c3c !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
    text-shadow: none !important;
}

/* Clean white text for all navigation buttons */
.navigation-banner .banner-navigation .nav-btn,
.banner-navigation .nav-btn,
.nav-btn {
    color: #ffffff !important;
}

.navigation-banner .banner-navigation .nav-btn:hover,
.banner-navigation .nav-btn:hover,
.nav-btn:hover {
    color: #ffffff !important;
}

.navigation-banner .banner-navigation .nav-btn.active,
.banner-navigation .nav-btn.active,
.nav-btn.active {
    color: #1e3a5f !important;
    background: #ffffff !important;
    border-color: #1e3a5f !important;
}

/* Statistics Cards - Enhanced Contrast */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a5f !important;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #64748b !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pod Status Badges - Enhanced Contrast */
.status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.status-badge.status-active {
    background-color: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.status-badge.status-maintenance {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-badge.status-offline {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

.status-badge.status-good {
    background-color: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.status-badge.status-due-soon {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.status-badge.status-overdue {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Dashboard Cards - Enhanced Styling */
.dashboard-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.dashboard-card .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #1e293b !important;
}

.dashboard-card .card-body {
    padding: 1.5rem;
}

/* Pod Cards - Enhanced Styling */
.pod-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.pod-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 0.25rem;
}

.pod-device-id {
    color: #64748b !important;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Reading Values - Enhanced Visibility */
.reading-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b !important;
    line-height: 1;
}

.reading-unit {
    font-size: 0.875rem;
    color: #64748b !important;
    font-weight: 500;
}

.reading-label {
    color: #64748b !important;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Alert Improvements */
.alert-warning {
    background-color: #fef3c7 !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}

.alert-warning .fas {
    color: #d97706 !important;
}

/* Emergency Contact Styling */
.emergency-contact-info {
    background: linear-gradient(135deg, #25d366 0%, #1ea954 100%);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.emergency-contact-info strong {
    color: white !important;
}

/* Enhanced Emergency Info Card */
.emergency-info-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    height: 100%;
    display: flex;
    align-items: center;
}

.emergency-info-card strong {
    color: #92400e !important;
    font-weight: 700;
    margin-bottom: 0.25rem;
    display: block;
}

.emergency-info-card p {
    color: #92400e !important;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.emergency-info-card .text-warning {
    color: #f59e0b !important;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Emergency Button Special Styling */
.emergency-btn {
    background: linear-gradient(135deg, #25d366 0%, #1ea954 100%) !important;
    border: 2px solid #25d366 !important;
    animation: emergency-pulse 2s infinite;
}

.emergency-btn:hover {
    background: linear-gradient(135deg, #1ea954 0%, #16a34a 100%) !important;
    border-color: #1ea954 !important;
    animation: none;
}

@keyframes emergency-pulse {
    0% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 0 0 0px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
}

/* Filter Status Improvements */
.filter-item {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
}

.filter-type {
    font-weight: 600;
    color: #1e293b !important;
    margin-bottom: 0.25rem;
}

.filter-due-date {
    color: #64748b !important;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navigation-banner {
        padding: 1.5rem;
    }
    
    .navigation-banner .banner-title h1 {
        font-size: 1.5rem;
    }
    
    .navigation-banner .banner-title p {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .quick-action-btn {
        padding: 1rem 1.25rem;
        min-height: 100px;
    }
    
    .quick-action-btn .btn-text {
        font-size: 0.95rem;
    }
    
    .quick-action-btn .btn-description {
        font-size: 0.75rem;
    }
    
    .quick-action-btn i {
        font-size: 1.1rem;
    }
    
    .emergency-info-card {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .emergency-info-card strong {
        font-size: 0.9rem;
    }
    
    .emergency-info-card p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .quick-action-btn {
        padding: 0.875rem 1rem;
        min-height: 90px;
    }
    
    .quick-action-btn .btn-text {
        font-size: 0.9rem;
    }
    
    .quick-action-btn .btn-description {
        font-size: 0.7rem;
    }
    
    .emergency-info-card {
        flex-direction: column;
        text-align: center;
    }
    
    .emergency-info-card .text-warning {
        margin-bottom: 0.5rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .dashboard-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .dashboard-card .card-header {
        background: linear-gradient(135deg, #334155 0%, #475569 100%);
        color: white !important;
    }
    
    .pod-card {
        background: #1e293b;
        border-color: #334155;
    }
    
    .pod-name {
        color: white !important;
    }
    
    .reading-value {
        color: white !important;
    }
    
    .stat-number {
        color: white !important;
    }
}