/* =========================
   RESET & MINIMAL BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
:root {
            --color-nursery: #FAE240;
            --color-primary: #E80175;
            --color-secondary: #74BD54;
            --color-button: #FAE240;
            --color-btn-text: #74BD54;
            --color-button-alt: #74BD54; /* For button background when text is #FAE240 */
            --color-btn-text-alt: #FAE240; /* For text when button is #74BD54 */
            }

body {
    background-color: #ffffff;
    color: #334155; /* Slate color for better readability */
    line-height: 1.5;
    
}

.main-container {
    padding: 30px;
    max-width: 1800px;
    margin: auto;
}

/* =========================
   TYPOGRAPHY & HEADER
========================= */
h2 {
    font-weight: 200;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

/* =========================
   CLEAN SUMMARY CARDS
========================= */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

/* Remove the heavy background colors from cards */
#summaryCards .card {
    background: #ffffff !important;
    color: #334155 !important;
    border-left: 4px solid #e2e8f0; /* Subtle accent line instead of full color */
}

/* Specific accent colors for the left border only */
#summaryCards .col-md-3:nth-child(1) .card { border-left-color: #3b82f6; } /* Total */
#summaryCards .col-md-3:nth-child(2) .card { border-left-color: #fbbf24; } /* Nursery */
#summaryCards .col-md-3:nth-child(3) .card { border-left-color: #ec4899; } /* Primary */
#summaryCards .col-md-3:nth-child(4) .card { border-left-color: #22c55e; } /* Secondary */

#summaryCards h6 {
    color: #64748b;
    font-weight: 900;
}

#summaryCards i {
    color: #cbd5e1 !important; /* Soft grey icons */
}

/* =========================
   INPUTS & BUTTONS
========================= */
.form-control, .form-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    transition: border-color 0.2s;
    
}

.form-control:focus {
    border-color: #94a3b8;
    box-shadow: none;
}

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
     /* Dark Slate */
    border:1px solid var(--color-nursery);
    color: var(--color-secondary);
    background: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-nursery);
    border: 1px solid var(--color-secondary);
}

.btn-dark {
     border:1px solid var(--color-nursery);
    color: var(--color-secondary);
    background: #ffffff;
}

.btn-light {
    border:1px solid var(--color-nursery);
    color: var(--color-secondary);
    background: #ffffff;
}

/* =========================
   TABLE STYLING
========================= */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f8fafc;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 15px;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
}
/* =========================
   TABLE BORDERS & RADIUS
========================= */

.table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0; /* The main outer border */
    border-radius: 12px;       /* Rounded corners for the container */
    overflow: hidden;          /* Ensures the table follows the border radius */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

#studentsTable {
    border-collapse: collapse; /* Essential for clean borders */
    margin-bottom: 0;
}

/* Vertical and Horizontal Borders for Cells */
#studentsTable th, 
#studentsTable td {
    border: 1px solid #e2e8f0; /* Light slate border for every cell */
    padding: 12px 15px;
}

/* Header specific styling */
#studentsTable thead th {
    background-color: #f8fafc; /* Slightly darker header background */
    border-bottom: 2px solid #e2e8f0; /* Thicker line under headers */
    color: #475569;
    font-weight: 700;
}

/* Remove outer borders on the very left and right for a modern "flush" look 
   (Optional: delete these if you want a full grid box) */
#studentsTable th:first-child, 
#studentsTable td:first-child {
    border-left: none;
}

#studentsTable th:last-child, 
#studentsTable td:last-child {
    border-right: none;
}

/* Striped rows for better readability */
#studentsTable tbody tr:nth-child(even) {
    background-color: #fcfcfd;
}

/* Highlight row on hover */
#studentsTable tbody tr:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

/* =========================
   MODAL
========================= */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 25px;
}

.modal-footer {
    border-top: 1px solid #f1f5f9;
    padding: 15px 25px;
}

/* Badge & Small Text Styling */
.badge {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
}

.bg-danger-subtle {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
}

/* Action Buttons Styling */
.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
}

.btn-light:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Tooltip style simple fix */
[title] {
    cursor: help;
}
/*  */