/* ==========================================================================
   Tabucket Shared Styles
   Shared CSS for all Tabucket services (Data Service, Monitor App, etc.)
   ========================================================================== */

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    background-color: #f8f9fa;
}

/* ==========================================================================
   Navigation Styles
   ========================================================================== */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

.nav-link.active {
    font-weight: bold;
    color: #fff !important;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* ==========================================================================
   Jumbotron Styles
   ========================================================================== */
.jumbotron {
    background-color: #fff;
    border-radius: .3rem;
    padding: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 2rem;
}

/* ==========================================================================
   Card Styles
   ========================================================================== */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

/* Metric Cards - for monitoring displays */
.metric-card {
    border-left: 4px solid #007bff;
}

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

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

.metric-card.danger {
    border-left-color: #dc3545;
}

/* ==========================================================================
   Utility Classes for Metrics
   ========================================================================== */
.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #212529;
}

.icon-large {
    font-size: 3rem;
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ==========================================================================
   Table Styles
   ========================================================================== */
.table {
    background-color: #fff;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* ==========================================================================
   Badge Styles
   ========================================================================== */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ==========================================================================
   Progress Bar Styles
   ========================================================================== */
.progress {
    height: 1.5rem;
    border-radius: 0.3rem;
    background-color: #e9ecef;
}

.progress-bar {
    font-weight: 600;
    transition: width 0.6s ease;
}

/* ==========================================================================
   Error Page Styles
   ========================================================================== */
.error-template {
    padding: 40px 15px;
}

.error-template h1 {
    font-size: 8rem;
    font-weight: bold;
    color: #dc3545;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.error-template .error-details {
    font-size: 1.2rem;
    color: #6c757d;
}

.error-actions {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
.was-validated .form-control:valid, 
.was-validated .form-select:valid {
    border-color: #198754;
}

.was-validated .form-control:invalid, 
.was-validated .form-select:invalid {
    border-color: #dc3545;
}

.alert {
    border-radius: .3rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Policy Pages Styles
   ========================================================================== */
.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.policy-section h3 {
    color: #34495e;
    margin-bottom: 1rem;
}

.policy-section ul {
    padding-left: 1.5rem;
}

.policy-section ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.policy-section .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.policy-section .card-body {
    padding: 1.5rem;
}

.text-muted {
    color: #6c757d !important;
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .metric-value {
        font-size: 1.25rem;
    }
    
    .icon-large {
        font-size: 2rem;
    }
    
    .error-template h1 {
        font-size: 4rem;
    }
    
    .jumbotron .display-4 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Utility Spacing Classes
   ========================================================================== */
.mt-4 {
    margin-top: 2rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .navbar,
    .footer,
    .btn,
    .error-actions {
        display: none !important;
    }
    
    body {
        background-color: #fff;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
