@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Base styles */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    margin: 0;
    padding: 0;
}

/* Full-page container */
.container {
    max-width: 100%;
    width: 100%;
    max-width: 1600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* Headings */
h1, h2, h3 {
    color: #1E3A8A;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.4rem;
}

/* Typography & Text */
p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #4B5563;
}

/* Form styles */
form input,
form select,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
    background: #fff;
    color: #1F2937;
}

input[type="date"] {
    max-width: 300px;
}

/* Buttons */
button {
    background-color: #1E3A8A;
    color: #fff;
    border: none;
    padding: 0.65rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button:hover {
    background-color: #16327A;
}

button.outline {
    background: none;
    color: #1E3A8A;
    border: 1px solid #1E3A8A;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    background-color: #fff;
}

table th, table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

table th {
    background-color: #F3F4F6;
    font-weight: 600;
}

/* Table for small screens */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    table tr {
        margin-bottom: 1.2rem;
        background-color: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
        padding: 1rem;
    }

    table td {
        padding-left: 50%;
        position: relative;
        text-align: right;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        top: 0.75rem;
        font-weight: 600;
        text-align: left;
        color: #6B7280;
    }
}

/* Section spacing */
section {
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
}

/* Utility */
.text-muted {
    color: #6B7280;
}

.text-green {
    color: #10B981;
}

.text-red {
    color: #EF4444;
}

.text-blue {
    color: #3B82F6;
}

.icon {
    vertical-align: middle;
    margin-right: 0.4rem;
}

.card.bg-light.border-danger {
    background-color: #fff5f5;
}
.card.bg-light.border-warning {
    background-color: #fffbea;
}
.card.bg-light.border-info {
    background-color: #f0faff;
}


/* Grid Utility for Flexible Layouts */
.flex-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.flex-col {
    flex: 1;
    min-width: 280px;
}

/* Cards */
.card-box {
    background: #F9FAFB;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

/* Headings inside cards */
.card-box h4 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Responsive stacking */
@media (max-width: 768px) {
    .flex-grid {
        flex-direction: column;
    }
}

