/* assets/css/style.css */
/* Updated design system – modern premium look with Glassmorphism */
:root {
    /* Primary colour – deep royal blue */
    --primary: #1e3a8a;            
    /* Accent colour – vibrant teal */
    --accent: #14b8a6;            
    /* Light and dark backgrounds */
    --bg-light: #f1f5f9;
    --bg-dark: #0f172a;
    /* Text colours */
    --text-primary: #334155;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Base typography */
body {
    background-color: var(--bg-light);
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Navbar */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
.navbar .navbar-brand, .navbar .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
}
.navbar .nav-link:hover {
    color: var(--accent) !important;
}

/* Card styling – premium look */
.card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Buttons – accent colour for primary actions */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: 0.5rem;
    font-weight: 600;
}
.btn-primary:hover {
    background-color: #172554;
    border-color: #172554;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.4);
}

/* Hero section – full‑width background gradient */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-light);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
}
.hero h1 {
    font-weight: 800;
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}
.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}
/* Fade‑in animation for hero */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}
.hero {
    animation: fadeIn 0.8s ease-out;
}

/* Inputs / Search bar */
.input-group-lg > .form-control, .input-group-lg > .form-select {
    border-radius: 0.75rem;
    font-size: 1.1rem;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(20, 184, 166, 0.25);
    border-color: var(--accent);
}

/* DataTables customisation */
div.dataTables_wrapper div.dataTables_filter input {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
}
div.dataTables_wrapper div.dataTables_length select {
    border-radius: 0.5rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
}
table.dataTable > thead > tr > th {
    border-bottom: 2px solid #e2e8f0;
    color: var(--text-primary);
}

/* Footer – dark background */
footer {
    background-color: var(--bg-dark);
    color: #94a3b8;
    padding: 3rem 0 2rem;
    font-size: 0.95rem;
}
footer h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Smooth transitions for links and buttons */
a, button {
    transition: all 0.3s ease;
}