﻿body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    width: 300px;
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .login-container input {
        width: 100%;
        padding: 0.75rem;
        margin: 0.5rem 0;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    .login-container button {
        width: 100%;
        padding: 0.75rem;
        background: #4facfe;
        border: none;
        border-radius: 4px;
        color: white;
        font-size: 1rem;
        cursor: pointer;
    }

        .login-container button:hover {
            background: #00c6fb;
        }

.message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* User info section */
#user-info {
    background: white;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Block containers */
.block-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Individual blocks */
.block {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .block:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

/* Layout container */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 2rem;
    padding: 2rem;
}

/* Top-left user info */
.user-info {
    align-self: start;
    justify-self: start;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-weight: 500;
    max-width: 300px;
}

/* Row of blocks */
.block-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* Each block container */
.block-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 300px;
}

/* Full-bleed blue gradient background */
.dashboard-hero {
    padding-top: 80px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    display: block;
    justify-content: center;
    align-items: flex-start;
    padding: 0; /* remove side padding to allow full width */
}

/* Centered white shell/card containing the table */
.dashboard-shell {
    width: 100%;
    max-width: 100%; /* allow full screen width */
    padding: 2rem 3rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin: 0 auto;
    margin-bottom: 1rem;
    overflow-x: hidden;
}

.dropdown-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.table-row {
    display: block;
    margin-top: 1rem;
}

/* Title styling */
.dashboard-title {
    text-align: center;
    margin: 0 0 1rem 0;
    font-weight: 600;
    color: #0a58ca;
}

/* Table styling to match compact, clean look */
.dashboard-table {
    width: 100%;
    table-layout: fixed; /* fit columns to available width */
    border-collapse: collapse;
}

    .dashboard-table thead th {
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa !important;
        border-color: #dee2e6;
        padding: 0.65rem 0.5rem;
        white-space: nowrap;
    }

    .dashboard-table tbody td {
        font-size: 0.9rem;
        padding: 0.6rem 0.5rem;
        text-align: center;
        vertical-align: middle;
        white-space: normal; /* allow wrapping */
        word-wrap: break-word;
        overflow-wrap: break-word;
        border-color: #e5e7eb;
    }

    .dashboard-table tbody tr:nth-child(even) {
        background-color: #fcfcfc;
    }

    .dashboard-table tbody tr:hover {
        background-color: #f1f5ff;
    }

    /* Optional: slightly narrow extreme columns for better balance */
    .dashboard-table colgroup col:nth-child(1),
    .dashboard-table colgroup col:nth-child(12),
    .dashboard-table colgroup col:nth-child(13),
    .dashboard-table colgroup col:nth-child(14) {
        width: 6%;
    }

#qualificationList .dropdown-item:hover {
    background-color: #0d6efd;
    color: #fff;
}

.dropdown-wrapper {
    width: 100%;
    text-align: center;
    margin-top: 100px; /* space below fixed navbar */
    margin-bottom: 20px;
}

    .dropdown-wrapper .btn {
        font-weight: 600;
        padding: 0.6rem 1.2rem;
    }

canvas {
    max-height: 200px;
}

h6 {
    margin-bottom: 10px;
    font-weight: bold;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
    border: none;
}

.dashboard-table td, .dashboard-table th {
    text-align: left !important;
}

/* DD Styles */
.dropdown-menu.scrollable-dropdown {
    max-height: 260px; /* adjust height as needed */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

    /* Optional: style the scrollbar for modern browsers */
    .dropdown-menu.scrollable-dropdown::-webkit-scrollbar {
        width: 10px;
    }

    .dropdown-menu.scrollable-dropdown::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 6px;
    }