/* Civic Star Theme CSS */

:root {
    /* Color Variables */
    --th-primary: #2C3E50;
    --th-secondary: #3498DB;
    --th-accent: #F39C12;
    --th-background: #F8F9FA;
    --th-text: #333333;
    --th-white: #FFFFFF;
    --th-light-gray: #E9ECEF;
    --th-medium-gray: #CED4DA;
    --th-dark-gray: #6C757D;

    /* Typography */
    --th-font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --th-font-size-base: 16px;
    --th-line-height-base: 1.5;

    /* Spacing */
    --th-spacer: 1rem;
    --th-border-radius: 0.375rem;

    /* Shadows */
    --th-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --th-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}

/* Base Elements */
body {
    font-family: var(--th-font-family);
    font-size: var(--th-font-size-base);
    line-height: var(--th-line-height-base);
    color: var(--th-text);
    background-color: var(--th-background);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--th-primary);
}

a {
    color: var(--th-secondary);
    text-decoration: none;
}

a:hover {
    color: #2980B9;
    text-decoration: none;
}

/* Header Styling */
.site-header {
    background-color: var(--th-white);
    border-bottom: 1px solid var(--th-light-gray);
}

.navbar {
    padding: 0.75rem 0;
}

.navbar-brand {
    color: var(--th-primary);
    font-weight: 600;
}

.navbar-brand:hover {
    color: var(--th-primary);
}

.navbar-nav .nav-link {
    color: var(--th-dark-gray);
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--th-primary);
}

.navbar-nav .dropdown-menu {
    box-shadow: var(--th-shadow-sm);
    border: 1px solid var(--th-light-gray);
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
}

.dropdown-item:hover {
    background-color: var(--th-background);
}

/* Footer Styling */
.site-footer {
    background-color: var(--th-white);
    border-top: 1px solid var(--th-light-gray);
    color: var(--th-dark-gray);
}

/* Button Styling */
.btn-primary {
    background-color: var(--th-primary);
    border-color: var(--th-primary);
}

.btn-primary:hover {
    background-color: #1a2530;
    border-color: #1a2530;
}

.btn-secondary {
    background-color: var(--th-secondary);
    border-color: var(--th-secondary);
}

.btn-secondary:hover {
    background-color: #2980B9;
    border-color: #2980B9;
}

.btn-accent {
    background-color: var(--th-accent);
    border-color: var(--th-accent);
    color: white;
}

.btn-accent:hover {
    background-color: #D68910;
    border-color: #D68910;
    color: white;
}

/* Card Styling */
.card {
    border: 1px solid var(--th-light-gray);
    border-radius: var(--th-border-radius);
    box-shadow: var(--th-shadow-sm);
}

.card-header {
    background-color: var(--th-white);
    border-bottom: 1px solid var(--th-light-gray);
    font-weight: 600;
}

/* Admin Sidebar */
.admin-sidebar {
    width: 250px;
    position: fixed;
    height: calc(100vh - 74px); /* Adjusted by 3px more */
    top: 56px; /* Account for header height */
    bottom: 0;
    left: 0;
    z-index: 100;
    overflow-y: auto !important;
    border-right: 1px solid var(--th-light-gray);
    background-color: var(--th-white);
    padding-right: 10px; /* Add padding to the right side of sidebar */
}

.admin-sidebar .nav-link {
    color: var(--th-text);
    border-radius: var(--th-border-radius);
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover {
    background-color: var(--th-background);
}

.admin-sidebar .nav-link.active {
    color: var(--th-white);
    background-color: var(--th-primary);
}

.admin-content {
    margin-left: 265px; /* Add 15px more to account for padding */
}

/* Responsive */
@media (max-width: 992px) {
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--th-light-gray);
    }
    
    .admin-content {
        margin-left: 0;
    }
}

/* Form Styling */
.form-control:focus {
    border-color: var(--th-secondary);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
}

/* Table Styling */
.table {
    --bs-table-striped-bg: rgba(52, 152, 219, 0.05);
}

.table thead th {
    background-color: var(--th-white);
    border-bottom: 2px solid var(--th-light-gray);
    font-weight: 600;
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: var(--th-border-radius);
}

.alert-success {
    background-color: #D5F5E3;
    color: #1E8449;
}

.alert-danger {
    background-color: #FADBD8;
    color: #943126;
}

.alert-warning {
    background-color: #FCF3CF;
    color: #B7950B;
}

.alert-info {
    background-color: #D6EAF8;
    color: #2471A3;
}

/* Utility Classes */
.bg-primary {
    background-color: var(--th-primary) !important;
}

.bg-secondary {
    background-color: var(--th-secondary) !important;
}

.bg-accent {
    background-color: var(--th-accent) !important;
}

.text-primary {
    color: var(--th-primary) !important;
}

.text-secondary {
    color: var(--th-secondary) !important;
}

.text-accent {
    color: var(--th-accent) !important;
}

.border-primary {
    border-color: var(--th-primary) !important;
}

.border-secondary {
    border-color: var(--th-secondary) !important;
}

.border-accent {
    border-color: var(--th-accent) !important;
} 