/* Datamex College of Saint Adeline - School Portal Stylesheet */
/* Official Brand Colors */

:root {
    --navy-blue: #001F53;
    --navy-dark: #002A6B;
    --maroon-red: #7A0F18;
    --maroon-hover: #8B1520;
    --gold-yellow: #F1C400;
    --leaf-green: #0F6A2F;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-500: #6B7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
}

/* Header Styles */
.top-header {
    background: var(--maroon-red);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.header-title h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-title p {
    font-size: 0.875rem;
    color: var(--gold-yellow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    text-align: right;
}

.user-info p {
    font-size: 0.875rem;
    margin: 0;
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--navy-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--navy-dark);
}

.btn-secondary {
    background: var(--maroon-red);
    color: white;
}

.btn-secondary:hover {
    background: var(--maroon-hover);
}

.btn-success {
    background: var(--leaf-green);
    color: white;
}

.btn-outline {
    background: white;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

.btn-outline:hover {
    background: var(--navy-blue);
    color: white;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: var(--navy-blue);
    color: white;
    padding-top: 60px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0.5rem 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: var(--navy-dark);
}

.sidebar-menu a.active {
    background: var(--gold-yellow);
    color: var(--navy-blue);
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: 250px;
    padding: 2rem;
    min-height: 100vh;
}

.page-header {
    background: white;
    border-top: 4px solid var(--maroon-red);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-header h2 {
    color: var(--navy-blue);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.card-accent-gold {
    border-left: 4px solid var(--gold-yellow);
}

.card-accent-maroon {
    border-left: 4px solid var(--maroon-red);
}

.card-header {
    border-bottom: 2px solid var(--gray-100);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    color: var(--navy-blue);
    font-size: 1.25rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Stat Card */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid var(--gold-yellow);
}

.stat-card.success {
    border-left-color: var(--leaf-green);
}

.stat-card.info {
    border-left-color: var(--navy-blue);
}

.stat-card.warning {
    border-left-color: #F97316;
}

.stat-label {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: var(--navy-blue);
    font-size: 2rem;
    font-weight: 700;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gold-yellow);
}

thead th {
    padding: 1rem;
    text-align: left;
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

tbody tr:hover {
    background: var(--gray-50);
}

tbody td {
    padding: 1rem;
    font-size: 0.875rem;
}

/* Badge Styles */
.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: #DCFCE7;
    color: var(--leaf-green);
    border: 2px solid var(--leaf-green);
}

.badge-warning {
    background: #FEF3C7;
    color: #D97706;
    border: 2px solid #F59E0B;
}

.badge-danger {
    background: #FEE2E2;
    color: var(--maroon-red);
    border: 2px solid var(--maroon-red);
}

.badge-info {
    background: #DBEAFE;
    color: var(--navy-blue);
    border: 2px solid var(--navy-blue);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy-blue);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-yellow);
    box-shadow: 0 0 0 3px rgba(241, 196, 0, 0.1);
}

select.form-control {
    cursor: pointer;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--navy-dark) 100%);
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.login-logo h1 {
    color: var(--navy-blue);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-success {
    background: #DCFCE7;
    color: var(--leaf-green);
    border-left: 4px solid var(--leaf-green);
}

.alert-error {
    background: #FEE2E2;
    color: var(--maroon-red);
    border-left: 4px solid var(--maroon-red);
}

.alert-warning {
    background: #FEF3C7;
    color: #D97706;
    border-left: 4px solid #F59E0B;
}

.alert-info {
    background: #DBEAFE;
    color: var(--navy-blue);
    border-left: 4px solid var(--navy-blue);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.modal-header h3 {
    color: var(--navy-blue);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .top-header {
        padding: 1rem;
    }
    
    .header-title h1 {
        font-size: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
