/* style.css - Modern Academic Design Scheme */
:root {
    --primary-color: #1a365d;   /* Academic Deep Navy */
    --secondary-color: #2b6cb0; /* Slate Blue Accent */
    --accent-color: #d69e2e;    /* Warm Gold Highlight */
    --bg-color: #f7fafc;        /* Off-white canvas */
    --surface-color: #ffffff;   /* Pure white cards */
    --text-primary: #2d3748;   /* Charcoal body text */
    --text-muted: #718096;     /* Slate grey text */
    --border-color: #e2e8f0;   /* Light border */
    --success-color: #2f855a;  /* Muted Emerald Green */
    --danger-color: #c53030;   /* Deep Crimson */
    --radius: 6px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Georgia, serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 30px 15px;
    min-height: 100vh;

    /* Background Image Integration */
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Centered Layout */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Containers & Cards with Backdrop Translucency */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(5px);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-top: 5px solid var(--primary-color);
}

.section-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Headers & Academic Typography */
h1, h2, h3, h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Form Styling */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: #fcfcfc;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 14px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: #edf2f7;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tr:nth-child(even) {
    background-color: rgba(248, 250, 252, 0.8);
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-success { background: #c6f6d5; color: var(--success-color); }
.badge-danger { background: #fed7d7; color: var(--danger-color); }
.badge-warning { background: #feebc8; color: #b7791f; }

/* Admin Header Bar */
.admin-navbar {
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.admin-navbar a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* Clickable Selection Cards (Certification & Difficulty) */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.selectable-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.selectable-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.selectable-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 12px rgba(43, 108, 176, 0.1);
    transform: translateY(-2px);
}

.selectable-card.active {
    border-color: var(--primary-color);
    background-color: #f0f4f8;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.2);
}

.selectable-card .icon {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    fill: var(--primary-color);
    transition: fill 0.2s ease;
}

.selectable-card.active .icon {
    fill: var(--secondary-color);
}

.selectable-card .title {
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.selectable-card .sub-text {
    font-size: 12px;
    color: var(--text-muted);
}