:root {
    --bg-ice: #f4faff;
    --text-deep: #2e4053;
    --ice-blue: #00a8cc;
    --ice-blue-light: #48dbfb;
    --berry-red: #ff6b6b;
    --snow-white: #ffffff;
    --winter-green: #00b894;
    --sun-yellow: #fdcb6e;
    --shadow-soft: 0 8px 24px rgba(0, 168, 204, 0.12);
    --radius-soft: 16px;
}

body {
    background-color: var(--bg-ice);
    background-image: url('../img/bg_winter.png');
    background-repeat: repeat;
    background-size: 400px;
    /* Adjust scale of the pattern */
    background-blend-mode: overlay;
    /* Blends with the ice blue bg */
    color: var(--text-deep);
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    /* Rounder, friendlier font */
}

/* --- Bootstrap Overrides --- */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-deep);
    font-weight: 700;
}

/* Navbar */
.navbar {
    background-color: var(--ice-blue) !important;
    box-shadow: 0 4px 15px rgba(0, 168, 204, 0.2);
    border: none;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 800;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

/* Cards */
.card {
    background-color: var(--snow-white);
    border: none;
    border-radius: var(--radius-soft);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    overflow: hidden;
    /* For header radius */
}



.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 700;
    padding: 1.2rem 1.5rem;
}

.card-header.bg-success {
    background-color: var(--winter-green) !important;
    color: white;
}

.card-header.bg-primary {
    background-color: var(--ice-blue) !important;
    color: white;
}

/* Buttons */
.btn {
    border-radius: 50px;
    /* Pill shape */
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn:hover {
    /* transform: translateY(-2px); removed */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

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

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

.btn-warning,
.btn-outline-warning {
    /* Often used for actions needing attention */
    background-color: var(--sun-yellow);
    color: var(--text-deep);
}

.btn-danger,
.btn-outline-danger {
    background-color: var(--berry-red);
    color: white;
}

.btn-outline-danger:hover {
    color: white;
}

.btn-secondary,
.btn-outline-secondary {
    background: #dfe6e9;
    /* Light grey */
    color: var(--text-deep);
}

.btn-secondary:hover {
    background: #b2bec3;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
    /* Spacing between rows */
    background: transparent;
}

.table thead th {
    border: none;
    background-color: transparent;
    color: var(--text-deep);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.table tbody tr {
    background-color: var(--snow-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    transition: transform 0.2s;
}

.table tbody tr:hover {
    /* transform: scale(1.01); removed */
    /* z-index: 2; removed */
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table td {
    border: none;
    vertical-align: middle;
    padding: 1rem;
}

.table td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid #eef2f7;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    background-color: #ffffff;
    transition: all 0.3s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ice-blue);
    box-shadow: 0 0 0 4px rgba(0, 168, 204, 0.1);
    background-color: #fff;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.alert-success {
    background-color: #d1f7ea;
    /* Very light green */
    color: #00947e;
}

.alert-warning {
    background-color: #fff4d1;
    color: #bfa100;
}

.alert-danger {
    background-color: #ffe5e5;
    color: #c0392b;
}

/* Footer */
.footer {
    background-color: white !important;
    border-top: none !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
    margin-top: 3rem !important;
}

/* Utils */
.bg-light {
    background-color: transparent !important;
    /* Remove grey backgrounds */
}

/* Global Color overrides */
.bg-primary,
.bg-primary-dark {
    background-color: var(--ice-blue) !important;
    color: white !important;
}

.table-primary {
    background-color: var(--ice-blue) !important;
    color: white !important;
}

.text-muted {
    color: #95a5a6 !important;
}

/* Modal */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1.5rem;
}