/* Modern Blue & White Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #0044cc;
    --accent-blue: #007bff;
    --text-dark: #1a202c;
    --text-white: #ffffff;
    --card-hover-shadow: 0 15px 35px rgba(0, 68, 204, 0.2);
}

body {
    font-family: 'Poppins', sans-serif;
    background: #0a192f url('../dash.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: var(--text-dark);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    /* Fixed to cover scroll */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    /* Transparent overlay to show photo */
    z-index: -1;
    pointer-events: none;
}

/* Blue Box Container Style - For Headers, Cards, Forms */
.blue-box {
    background: linear-gradient(135deg, #0044cc 0%, #007bff 100%);
    border: 3px solid white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Back Button Style */
.back-btn {
    background: white;
    color: var(--primary-blue);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-blue);
}

/* Data Tables */
.table-container {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    background: linear-gradient(135deg, #0044cc 0%, #007bff 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

th:first-child {
    border-top-left-radius: 10px;
}

th:last-child {
    border-top-right-radius: 10px;
}

td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    color: var(--text-dark);
}

tr:hover td {
    background-color: #f8fafc;
}

/* Forms */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 68, 204, 0.1);
}

button[type="submit"],
.btn-primary {
    background: linear-gradient(135deg, #0044cc 0%, #007bff 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 68, 204, 0.3);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 68, 204, 0.4);
}

/* Action Buttons */
.action-btn {
    padding: 8px 12px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 5px;
    transition: all 0.2s;
}

.btn-view {
    background-color: #17a2b8;
}

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-delete {
    background-color: #dc3545;
}

/* Dashboard Cards (for sub-pages if any) */
.sub-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.sub-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 15px 35px rgba(0, 68, 204, 0.15);
}