﻿.nav-logo {
    height: 50px;
    width: auto;
}

.nav-left a {
    display: flex;
    align-items: center;
}

.navbar {
    padding: 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: .1px solid;
}

.alert {
    padding: 10px 14px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease;
    font-size: 12px;
}

.alert-success {
    background: #e8f9f0;
    color: #1e7e34;
    border-left: 6px solid #2ecc71;
}

.alert-error {
    background: #fdecea;
    color: #a71d2a;
    border-left: 6px solid #e74c3c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu {
    position: relative;
}

.profile-icon {
    cursor: pointer;
    font-size: 18px;
    border: 1px solid #9b9a9a;
    border-radius: 50%;
    padding: 10px;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: 25px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 160px;
z-index:1000;
}

.profile-dropdown a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.profile-dropdown a:hover {
    background: #f4f7fb;
}

.profile-dropdown .logout {
    color: #e74c3c;
}

.profile-menu:hover .profile-dropdown {
    display: block;
}

select {
    width: 100%;
    padding: 5px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 10px;
    background: #fff;
    font-size: 14px;
    transition: border 0.3s ease;
}

select:focus {
    border-color: #2b7cff;
    outline: none;
}

/* ===== ADMIN DASHBOARD ===== */

.admin-wrapper {
    min-height: calc(100vh - 170px);
    /* adjust based on navbar height */
    background-color: #fbf1e4;
    padding: 40px 20px;
}

.admin-card {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: 400px;
    overflow-y: scroll;
}

.admin-card h2 {
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

/* ===== TABLE STYLES ===== */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;

}

.data-table thead {
    background-color: #556b5d;
    color: #ffffff;

}

.data-table th,
.data-table td {
    padding: 8px 14px;
    text-align: center;
}

.data-table th {
    font-weight: 500;
}

.data-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.data-table tbody tr:hover {
    background-color: #eef3f0;
}

/* Responsive table */
@media (max-width: 600px) {
    .data-table {
        font-size: 14px;
    }
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* ===============================
   GLOBAL LAYOUT HELPERS
   =============================== */

.page-container {
    background-color: #fbf1e4;
    height: auto;
    width: auto;
    padding: 10px;
}

/* Page heading */
.page-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

/* ===============================
   CARD SYSTEM (ADMIN / FORMS)
   =============================== */

.card {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===============================
   FORM GRID (ADMIN ADD CERTIFICATE)
   =============================== */

.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.grid-input {
    padding: 5px;
    font-size: 11px;
    border-radius: 4px;
    border: 1px solid #ccc;
    text-align: center;
}

/* Inputs inside admin tables */
.data-table input {
    width: 70%;
    padding: 2px 10px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* ===============================
   BUTTON SYSTEM
   =============================== */

.btn {
    padding: 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn.primary {
    background-color: #2b7cff;
    color: #ffffff;
}

.btn.primary:hover {
    background-color: #1e64cc;
}

.btn.danger {
    background-color: #e74c3c;
    color: #ffffff;
}

.btn.danger:hover {
    background-color: #c0392b;
}

/* ===============================
   TABLE ACTIONS
   =============================== */

.data-table .actions {
    display: flex;
    gap: 19px;
    justify-content: space-around;
}

/* ===============================
   SCROLLABLE TABLE CONTAINER
   =============================== */

.table-scroll {
    overflow-x: auto;
    overflow-y: scroll;
    height: 320px;
}

/* ===============================
   RESPONSIVE FIXES
   =============================== */

@media (max-width: 664px) {

    .grid-form {
        display: flex;
        flex-direction: column;
    }
}

.card-title {
    color: #272829;
    padding-bottom: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Search bar */
.table-search {
    margin: 10px 0 20px;
    text-align: center;
}

.table-search input {
    width: 280px;
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 50px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.table-search input:focus {
    border-color: #2b7cff;
    outline: none;
}

.search-btn {
    background-color: #dfdcdc;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    border: 1px solid #ccc;
    cursor: pointer;
}
.course-cell {
    border: 1px solid #ccc;
    background: #fdecea;
    color: #a71d2a;
    padding: 8px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}
.no-cell {
    border: 1px solid #ccc;
    background: #fdecea;
    color: #013c06;
    padding: 8px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
}
.course-cell a {
    text-decoration: none;
    color: #2b7cff;
    font-weight: 500;
}

.course-cell a:hover {
    text-decoration: underline;
}
.no-data {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #555;
    background: #fdfdfd;
    border-radius: 8px;
    border: 1px dashed #ccc;
    font-weight: 500;
    line-height: 1.6;
}

.no-data::before {
    content: "📄";
    display: block;
    font-size: 40px;
    margin-bottom: 10px;
}
