/* Global Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --font-family-sans-serif: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: var(--font-family-sans-serif);
    color: #333;
    background-color: #f8f9fc;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: #224abe;
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 0.15rem 0.15rem rgba(0, 0, 0, 0.075);
}

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

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
    border-top-left-radius: 0.35rem !important;
    border-top-right-radius: 0.35rem !important;
}

.card-body {
    padding: 1.25rem;
}

/* Forms */
.form-control {
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* Alerts */
.alert {
    border: none;
    border-left: 0.25rem solid transparent;
    border-radius: 0.35rem;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
}

.alert-primary {
    background-color: #f0f7ff;
    border-left-color: var(--primary-color);
    color: #2c5282;
}

.alert-success {
    background-color: #f0fff4;
    border-left-color: var(--success-color);
    color: #22543d;
}

.alert-warning {
    background-color: #fffaf0;
    border-left-color: var(--warning-color);
    color: #744210;
}

.alert-danger {
    background-color: #fff5f5;
    border-left-color: var(--danger-color);
    color: #c53030;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background-color: transparent;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #e3e6f0;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #e3e6f0;
    background-color: #f8f9fc;
    color: var(--dark-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* Badges */
.badge {
    font-weight: 600;
    padding: 0.35em 0.65em;
    font-size: 75%;
    border-radius: 0.25rem;
}

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

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

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

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

/* File Upload */
.file-upload-container {
    margin-bottom: 1rem;
}

.file-upload-preview {
    margin-top: 1rem;
    text-align: center;
}

.file-upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
}

/* Progress Bar */
.progress {
    height: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.35rem;
    background-color: #eaecf4;
    box-shadow: inset 0 0.1rem 0.1rem rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    line-height: 1rem;
    text-align: center;
    white-space: nowrap;
    transition: width 0.6s ease;
}

/* Utility Classes */
.shadow {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
}

.rounded-lg {
    border-radius: 0.5rem !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
}

/* Custom Styles for SACSE */
.jumbotron {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

.member-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem 0.5rem rgba(0, 0, 0, 0.1) !important;
}

/* Footer */
footer {
    background-color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e3e6f0;
}

/* Custom Checkbox and Radio Buttons */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

/* Custom File Upload */
.custom-file-label::after {
    background-color: #e9ecef;
    border-left: 1px solid #ced4da;
    color: #495057;
}

/* Print Styles */
@media print {
    .no-print, .no-print * {
        display: none !important;
    }
    
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .card, .card-header, .card-body {
        border: none !important;
        box-shadow: none !important;
    }
    
    .table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}
