﻿.nav-logo {
    height: 50px;
    width: auto;
}

.nav-left a {
    display: flex;
    align-items: center;
}

.navbar {
    background:#FFFFF0;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    position: absolute;
top:0px;
left:0px;
right:0px;
    z-index: 1000;
}

.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;
}

.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 {
    height:77vh;
    background-color: #fbf1e4;
    padding: 40px 20px;
margin-top:20px;
}

.admin-card {
    width: 90%;
    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: 14px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.data-table thead { background-color: #556b5d; color: #ffffff; }
.data-table th, .data-table td { padding: 8px 14px; text-align: center; }

body { margin: 0px; }
.data-table th { font-weight: 500; }
.data-table tbody tr { border-bottom: 1px solid #e0e0e0; background-color: #f8f8f8;  }
.data-table tbody tr:hover { background-color: #eef3f0; }

@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;
margin-top:50px;
}
.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;
}

.data-table input {
    width: 70%;
    padding: 2px 10px;
    font-size: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

/* ===============================
   BUTTON SYSTEM
   =============================== */
.btn {
    padding: 5px 9px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Old button classes (kept for compatibility) */
.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;
}

.table-scroll { overflow-x: auto; overflow-y: scroll; height: 320px; }

@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; }

.ref-only {
    color: #2b7cff; font-weight: 600;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.date-header-row { background-color: #f1f5f9; margin-top: 20px; }
.date-header-cell {
    padding: 12px 20px; font-size: 14px; font-weight: 700;
    color: #334155; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid #cbd5e1; border-top: 1px solid #e2e8f0;
}

/* ==========================================================
   NEW ADDITIONS FOR TRAINING PROGRAMME PAGE
   ========================================================== */

/* 1. Page Header Style */
.page-header h2 {
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    color: #334155;
    font-size: 24px;
}

/* 2. Container for the Add/Edit Form */
.card-box {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    margin-top: 20px;
    max-width: 100%;
}

.card-box h4 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

/* 3. Form Input Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #475569;
    font-size: 13px;
    text-align: left; /* Ensures labels align left */
}

/* Specifically target inputs inside .form-group so they look good */
.form-group input[type="text"],
.form-group input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    background-color: #fff;
    box-sizing: border-box; /* IMPORTANT: Keeps padding inside width */
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #94a3b8;
    font-size: 12px;
}

/* 4. Action Buttons Container */
.form-actions {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 5. New Button Classes (Matching PHP) */
.btn-primary {
    background-color: #0f172a;
    color: white;
    padding: 10px 20px;
    font-weight: 600;
}
.btn-primary:hover { background-color: #1e293b; }

.btn-secondary {
    background-color: #f1f5f9;
    color: #64748b;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: 500;
}
.btn-secondary:hover { background-color: #e2e8f0; color: #334155; }

/* 6. Badges & Links */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.badge-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-secondary { background: #f1f5f9; color: #94a3b8; border: 1px solid #e2e8f0; }

.btn-link {
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    margin-right: 12px;
    color: #2563eb;
}
.btn-link:hover { text-decoration: underline; }
.text-danger { color: #dc2626 !important; }
.text-muted { color: #64748b !important; font-size: 12px; }

/* Inactive Row Style */
.row-inactive {
    background-color: #f9fafb !important;
    opacity: 0.7;
}
/* =========================================
   EMAIL BUTTON STYLES
   ========================================= */

/* The main Send Email button */
.btn-email {
    background-color: #2563eb; /* Modern trust-blue */
    color: #ffffff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px; /* Smooth rounded corners */
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* Smooth hover animation */    
display:flex;
    align-items: center;
    justify-content: center;
width : 70px;
margin : 5px;
   
}

/* When you hover over the button */
.btn-email:hover {
    background-color: #1d4ed8; /* Slightly darker blue */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); /* Shadow grows */
    transform: translateY(-1px); /* Button lifts up slightly */
}

/* When you actually click the button */
.btn-email:active {
    background-color: #1e40af;
    transform: translateY(0); /* Button presses down */
    box-shadow: none;
}

/* =========================================
   EMAILED STATUS BADGE (✔ Sent)
   ========================================= */
.emailed-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #15803d; /* Deep success green */
    font-weight: 700;
    font-size: 13px;
    background-color: #dcfce7; /* Soft green background */
    padding: 6px 14px;
    border-radius: 20px; /* Pill shape */
    border: 1px solid #bbf7d0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

/* =========================================
   FADED ROW EFFECT (After email is sent)
   ========================================= */
.row-emailed td {
    background-color: #f8fafc; /* Very light gray */
    color: #94a3b8; /* Faded text color */
    transition: all 0.3s ease;
}

/* Keep the badge looking normal even when the row is faded */
.row-emailed td .emailed-status {
    opacity: 1; 
}

/* If you hover over a sent row, bring the text color back slightly */
.row-emailed:hover td {
    color: #475569;
}
.time-range-wrapper{
display:flex;
align-items:center;
gap:30px;
}

.time-box{

display:flex;
align-items:center;
gap:10px;
padding:10px;
justify-content:center;
}
.schedule-main-card{
border:solid;
height:100vh;

padding:20px;
text-align:center;
}
.schedule-page-shell { display: flex; justify-content: center; align-items: center; margin-top:50px; background-color: #FAF3E0; }

.schedule-main-card {
    width: 100%;
    backdrop-filter: blur(10px);
    padding: 30px;

}

.schedule-header {
    text-align: center;
    margin-bottom: 20px;
}

.schedule-header h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

.schedule-header p {
    color: #64748b;
    font-size: 14px;
}

.register-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.register-btn:hover {
    opacity: 0.9;
}
