/* Araldo Account - Global Styles */

:root {
    --primary-color: #00594F;
    --primary-light: #007D6E;
    --primary-dark: #004840;
    --secondary-color: #007D6E;
    --success-color: #51cf66;
    --danger-color: #ff6b6b;
    --warning-color: #ffd43b;
    --info-color: #4dabf7;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --sidebar-width: 280px;
    --header-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fb;
    min-height: 100vh;
}

/* Gradient Background */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    height: var(--header-height);
    padding: 0 1rem;
}

.navbar-brand {
    color: white !important;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Main Container */
.main-container {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 20px;
}

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

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
}

.stat-card.success {
    background: linear-gradient(135deg, #FF9560 0%, #F4834B 100%);
}

.stat-card.warning {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #212529;
}

.stat-card.info {
    background: linear-gradient(135deg, #4dabf7 0%, #228be6 100%);
}

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

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* School Cards */
.school-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.school-card:hover {
    transform: translateY(-2px);
    border-left-color: var(--secondary-color);
}

.school-card .school-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 4px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 89, 79, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: transparent;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 89, 79, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

/* Checklist */
.checklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item .check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 0.75rem;
}

.checklist-item .check-icon.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

.checklist-item .check-icon.completed {
    background-color: var(--success-color);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* User Dropdown */
.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    color: white !important;
    text-decoration: none;
}

.user-dropdown .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-weight: 600;
}

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

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1100;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }

    .navbar-brand span {
        display: none;
    }

    .main-container {
        padding-top: calc(var(--header-height) + 10px);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Badge */
.badge-count {
    font-size: 0.7rem;
    padding: 0.25em 0.5em;
}

/* School Detail Page Styles */
.school-icon-lg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

/* Stat Card (Light Version for Detail Pages) */
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: #FCFCFC;
    margin-bottom: 0;
}

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    background-color: #f8f9fa;
    border: 2px solid transparent;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background-color: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

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

.quick-action-btn span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Nav Tabs */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(0, 89, 79, 0.05);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    background-color: white;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-bottom-width: 1px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    vertical-align: middle;
    padding: 1rem 0.75rem;
}

/* Avatar Small */
.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

/* Avatar Large */
.avatar-lg {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Definition List */
dl.row dt {
    font-weight: 500;
    color: #6c757d;
}

dl.row dd {
    color: #212529;
}

/* Alert Improvements */
.alert {
    border: none;
    border-radius: 8px;
}

.alert-info {
    background-color: rgba(77, 171, 247, 0.1);
    color: #1971c2;
}

.alert-success {
    background-color: rgba(81, 207, 102, 0.1);
    color: #2f9e44;
}

.alert-warning {
    background-color: rgba(255, 212, 59, 0.15);
    color: #e67700;
}

.alert-danger {
    background-color: rgba(255, 107, 107, 0.1);
    color: #c92a2a;
}

/* Background Subtle Colors */
.bg-primary-subtle {
    background-color: rgba(0, 89, 79, 0.15) !important;
}

.bg-success-subtle {
    background-color: rgba(81, 207, 102, 0.15) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 212, 59, 0.2) !important;
}

.bg-info-subtle {
    background-color: rgba(77, 171, 247, 0.15) !important;
}

/* Loading Spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Sticky Top with Offset */
.sticky-top {
    z-index: 1020;
}
