
/* RESET & BASE */
body {
    font-family: 'Inter', sans-serif;
    background: #f4f6fa;
    margin: 0;
    color: #1a1a2e;
}

header {
    background: #001f4d;
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    border-bottom: 6px solid #0066cc;
}

.logo {
    height: 60px;
    margin-bottom: 0.5rem;
}

.hub-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* SECTION TITLE */
.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    color: #1c1c2b;
}

.section-title::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: #0066cc;
    margin-top: 0.5rem;
    border-radius: 2px;
}

/* TILE GRID */
.row.g-4 {
    --bs-gutter-y: 2.5rem;
}

/* TILE CARD */
.role-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e1e4ea;
    height: 100%;
    position: relative;
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
    border-color: #d0d6e1;
}

/* TILE HEADINGS */
.role-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #001f4d;
}

/* BUTTON */
.role-btn {
    font-weight: 600;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 10px;
    padding: 0.75rem;
    background-color: #0066cc;
    color: white;
    border: none;
    width: 100%;
    transition: background 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.role-btn:hover {
    background-color: #0051a3;
}

/* FOOTER */
footer {
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
    padding: 3rem 1rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid #dee2e6;
}

.resource-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid #e1e4ea;
    transition: all 0.25s ease;
}

.resource-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #001f4d;
    margin-bottom: 1rem;
}

.resource-card ul {
    list-style: none;
    padding-left: 0;
}

.resource-card ul li {
    margin-bottom: 0.75rem;
}

.resource-card a {
    color: #0056b3;
    font-weight: 500;
    text-decoration: none;
}

.resource-card a:hover {
    text-decoration: underline;
}

.modal-body {
    font-size: 0.95rem;
}

/* Resource Card Descriptions */
.role-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #495057;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* GREETING DROPDOWN */
.user-greeting {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.user-greeting .btn {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    line-height: 1.2;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile optimisation */
@media (max-width: 576px) {
    .user-greeting {
        top: 1rem;
        right: 1rem;
    }

    .user-greeting .btn {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
}

/* DARK MODE */
body.dark-mode {
    background: #121417;
    color: #e9ecf1;
}

body.dark-mode header {
    background: #0b1733;
    border-bottom-color: #004a99;
    color: #fff;
}

body.dark-mode .role-card,
body.dark-mode .card,
body.dark-mode .resource-card {
    background: #1e2127;
    color: #e9ecf1;
    border-color: #2c2f36;
    box-shadow: none;
}

body.dark-mode .role-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: #3a3f4b;
}

body.dark-mode .role-card h4 {
    color: #ffffff;
}

body.dark-mode .role-card p {
    color: #ffffff8a;
}

body.dark-mode .section-title {
    color: #e9ecf1;
}

body.dark-mode .section-title::after {
    background: #3389ff;
}

body.dark-mode .btn.role-btn {
    background-color: #2d88ff;
    color: white;
    font-weight: 600;
}

body.dark-mode .btn.role-btn:hover {
    background-color: #1a5fcc;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #1b2029;
    border-color: #2a3140;
    color: #e9ecf1;
}

body.dark-mode .form-control:disabled {
    background-color: #1b2029;
    color: #96a0b2;
}

body.dark-mode .dropdown-menu {
    background-color: #1b2029;
    color: #e9ecf1;
}

body.dark-mode .dropdown-item {
    color: #e9ecf1;
}

body.dark-mode .dropdown-item:hover {
    background-color: #2a3140;
}

body.dark-mode .alert {
    background-color: #1b2029;
    border-color: #2a3140;
    color: #e9ecf1;
}

body.dark-mode footer {
    border-top-color: #2a3140;
    color: #96a0b2;
}

.dark-mode .text-muted,
.dark-mode small,
.dark-mode .form-text {
    color: #96a0b2 !important;
}

.dark-mode table {
    background-color: #1b2029;
    color: #e9ecf1;
    border-color: #2a3140;
}

.dark-mode th,
.dark-mode td {
    background-color: #1b2029;
    color: #e9ecf1;
    border-color: #2a3140;
}

.dark-mode thead th {
    background-color: #1f2530;
    color: #ffffff;
}

.dark-mode .table-striped tbody tr:nth-of-type(odd) {
    background-color: #212631;
}

.dark-mode .table-hover tbody tr:hover {
    background-color: #2a3140;
}

.dark-mode .list-group,
.dark-mode .list-group-item {
    background-color: #1b2029;
    color: #e9ecf1;
    border-color: #2a3140;
}

.dark-mode .list-group-item:hover {
    background-color: #2a3140;
}
