/* Custom Bootstrap Theme for Uganda Chemical Petroleum & Allied Workers Union */

:root {
    --primary-color: #0052cc;
    --primary-dark: #001a4d;
    --text-dark: #333333;
    --light-bg: #f8f9fa;
}

* {
    font-family: 'Poppins', 'Roboto', sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========== NAVBAR STYLES ========== */
.navbar-compact {
    padding: 0.5rem 0;
}

.navbar-compact .navbar-brand {
    font-size: 1.1rem;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.brand-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0.75rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-light .navbar-nav .nav-link i {
    margin-right: 0.3rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    border: none;
}

/* ========== BUTTONS ========== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ========== CARDS ========== */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border: none;
    color: white;
}

/* ========== FORMS ========== */
.form-control,
.form-select {
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    padding: 0.65rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 82, 204, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ========== HEADINGS ========== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ========== SECTIONS ========== */
.section-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    font-size: 1.75rem;
    margin: 0;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
}

/* ========== HERO SECTION ========== */
.hero-section {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ========== AUTH PAGE STYLES ========== */
.auth-background {
    background: linear-gradient(135deg, rgba(0, 26, 77, 0.95), rgba(0, 82, 204, 0.85));
    background-image: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 35%),
                      radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 30%);
    background-size: cover;
    background-position: center;
}

.login-card {
    border-radius: 1rem;
    overflow: hidden;
    min-height: 100%;
}

.login-card .card-header {
    background: linear-gradient(135deg, #003b8a, #0052cc);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-note {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 82, 204, 0.12);
}

.auth-note i {
    color: var(--primary-color);
}

/* ========== TABLES ========== */
.table {
    background: white;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
}

.table tbody tr:hover {
    background-color: rgba(0, 82, 204, 0.05);
}

/* ========== ADMIN DASHBOARD ========== */
.admin-stats .stat-card {
    background: linear-gradient(135deg, #ffffff, #f7faff);
    border: 1px solid rgba(0, 82, 204, 0.08);
}

.admin-stats .stat-card:hover {
    transform: translateY(-3px);
}

#contact-messages .border-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 255, 255, 0.95));
}

#contact-messages .badge {
    font-size: 0.8rem;
}

/* ========== ALERTS ========== */
.alert {
    border: none;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(0, 82, 204, 0.1);
    border-left-color: var(--primary-color);
    color: var(--text-dark);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
}

/* ========== BADGES ========== */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.badge-primary {
    background-color: var(--primary-color);
}

/* ========== FOOTER ========== */
.footer-icon-link {
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-icon-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.footer-link {
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color) !important;
    padding-left: 0.25rem;
}

/* ========== ANIMATIONS ========== */
.hero-section,
.page-header,
.section-header,
.card,
.card-body,
.btn,
.alert,
footer {
    will-change: transform, opacity;
}

.hero-section {
    animation: fadeInUp 1s ease both;
}

.page-header {
    animation: fadeInDown 0.9s ease both;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
}

.card:hover {
    transform: translateY(-6px);
}

/* ========== ADMIN DASHBOARD STYLES ========== */
.admin-stats .stat-card {
    border-radius: 1rem;
    border: 1px solid rgba(0, 82, 204, 0.08);
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-stats .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.stat-card h5 {
    font-weight: 600;
}

.stat-card p {
    margin-bottom: 0;
}

.table-responsive {
    overflow-x: auto;
}

.action-btns .btn {
    min-width: 110px;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== UTILITIES ========== */
.fw-600 {
    font-weight: 600;
}

.fw-500 {
    font-weight: 500;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg-custom {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rounded-xl {
    border-radius: 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }
}
