/* ============================= */
/* ===== Global Typography ===== */
/* ============================= */

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f6fb;
    margin: 0;
    padding: 0;
    color: #333;
}

h1, h2, h3 {
    color: #1F4898;
    margin-top: 0;
}

p {
    line-height: 1.6;
}

/* ============================= */
/* ========= Navbar ============ */
/* ============================= */

.navbar {
    background-color: #1F4898;
    position: sticky;
    padding: 15px 0;
    border-bottom: 4px solid #163a7a; /* subtle accent line */
}

.navbar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 22px;
}

.nav-title {
    font-weight: 600;
    font-size: 18px;
    color: white;
    letter-spacing: 0.5px;
}

/* Elegant hover animation */
.navbar a {
    font-size: 18px;
    color: white;
    margin-left: 22px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}


.logo-title{
    display:flex;
    align-items:center;
    gap:12px;
}

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

.nav-logo{
    height:64px;
}

/* ============================= */
/* ======= Hero Section ======== */
/* ============================= */

.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(
        135deg,
        #1F4898 0%,
        #2c5db8 100%
    );
    color: white;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(
        rgba(255,255,255,0.08) 1px,
        transparent 1px
    );
    background-size: 25px 25px;
    opacity: 0.3;
}

.hero h1 {
    color: #ffffff;
},
.hero p {
    animation: fadeIn 0.7s ease forwards;
}

/* ============================= */
/* ======= Main Container ====== */
/* ============================= */

.container {
    max-width: 1100px;
    margin: 60px auto;
    background: white;
    padding: 60px;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* ============================= */
/* ===== Important Dates Grid == */
/* ============================= */

.card {
    font-size:14px;
    border-left: 5px solid #1F4898;
    background-color: #fafafa;
    padding: 25px;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: #1F4898;
}

.card p{
    font-size:14px;   /* reduced body text */
    color:#555;
}

.card-grid .card p{
    font-size:18px;
}

/* Subtle lift effect */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 3-column layout */
.important-dates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

/* ============================= */
/* ========= Buttons =========== */
/* ============================= */

button {
    background-color: #1F4898;
    color: white;
    border: none;
    padding: 11px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #163a7a;
    transform: translateY(-1px);
}

/* ============================= */
/* ========= Forms ============= */
/* ============================= */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"] {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}

/* ============================= */
/* ========= Tables ============ */
/* ============================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
}

th {
    background-color: #1F4898;
    color: white;
    text-align: left;
    padding: 13px;
}

td {
    padding: 13px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #f1f4f9;
}

/* ============================= */
/* ========= Messages ========== */
/* ============================= */

.success {
    color: #2e7d32;
}

.error {
    color: #c62828;
}

/* ============================= */
/* =========== Footer ========== */
/* ============================= */

.footer {
    background-color: #f4f6f8;
    margin-top: 80px;
    padding: 50px 20px 30px 20px;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: #8A8B8D;
    font-size: 14px;
}

.footer-section {
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-section strong {
    color: #1F4898;
}

.footer a {
    color: #1F4898;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: #8A8B8D;
}

/* Fix hero heading color */
.hero h1 {
    color: white;
}

.hero p {
    color: #ffffff;
}

/* ===== Fade In Animation ===== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.5s ease forwards;
}

.card.success {
    border-left: 5px solid #2e7d32;
}

.card.error {
    border-left: 5px solid #c62828;
}

/* ===== Drag & Drop Upload ===== */

.drop-zone {
    border: 2px dashed #1F4898;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background-color: #f9fbff;
    margin-bottom: 15px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.drop-zone:hover {
    background-color: #eef3ff;
}

.drop-zone.dragover {
    background-color: #e3ecff;
    border-color: #163a7a;
}

.drop-zone p {
    margin: 0;
    color: #1F4898;
    font-weight: 500;
}

select {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}

/* Success animation */
@keyframes popIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    60% {
        transform: scale(1.02);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.card.success {
    border-left-color: #2e7d32;
    animation: popIn 0.4s ease;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.badge.pending {
    background-color: #fff3e0;
    color: #ef6c00;
}

.card.countdown {
    border-left-color: #1F4898;
    font-weight: 500;
    background: #eef3ff;
}

/* Sticky header */
table thead th {
    position: sticky;
    top: 0;
    background: #1F4898;
    color: white;
    z-index: 2;
}

/* Missing highlight */
tr.missing-row {
    background-color: #fff8f0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    border-radius: 8px;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input { display:none; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 22px;
    transition: .3s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: .3s;
}

input:checked + .slider {
    background-color: #1F4898;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background-color: #f5f7fb;
    transition: background 0.15s;
}

.important-dates .card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.important-dates .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.important-dates .card {
    transition: transform 0.15s, box-shadow 0.15s;
}

.important-dates .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===== Loading overlay ===== */
#loadingOverlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(255,255,255,0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid #eee;
    border-top: 4px solid #1F4898;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.navbar.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: box-shadow 0.2s ease;
}

.card {
    padding: 24px;
    margin-bottom: 25px;
}

/* ===== Toast ===== */
#toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #1F4898;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Flash message auto-hide ===== */

.flash-container {
    overflow: hidden;
}

.flash-message {
    animation: flashFadeOut 4s forwards;
}

@keyframes flashFadeOut {
    0% { opacity:1; max-height:200px; margin-bottom:15px; }
    80% { opacity:1; max-height:200px; margin-bottom:15px; }
    100% { opacity:0; max-height:0; margin-bottom:0; padding:0; }
}

.card.error {
    border-left: 4px solid #c62828;
}

.card.error[style*="animation:none"] {
    opacity: 1 !important;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}

.card.error[style*="animation:none"] {
    animation: shake 0.3s ease;
}

.button-link {
    display: inline-block;
    background-color: #1F4898;
    color: white;
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.button-link:hover {
    background-color: #163a7a;
}

.card.error h2 {
    margin-top: 0;
    color: #c62828;
}


.card.error {
    background: #fdecea;
    border-left: 4px solid #c62828;
}

.nav-disabled {
    color: #8A8B8D !important;
    pointer-events: auto;
    cursor: help;
    opacity: 0.7;
}

.nav-disabled:hover {
    color: #8A8B8D !important;
}

.card.open {
    border-left: 4px solid #1F4898;
}

.card.warning {
    border-left: 4px solid #f57c00;
    background: #fff4e5;
}

.card.closed {
    border-left: 4px solid #c62828;
    background: #fdecea;
}

.card.warning {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245,124,0,0.3); }
    70% { box-shadow: 0 0 0 8px rgba(245,124,0,0); }
    100% { box-shadow: 0 0 0 0 rgba(245,124,0,0); }
}

/* ===== Cards grid layout ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== Center text inside cards ===== */
.cards-grid .card {
    text-align: center;
}

/* ===== Cards grid layout ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* ===== Center text inside cards ===== */
.cards-grid .card {
    text-align: bottom;
}


/* ===== Typography polish ===== */

body {
    line-height: 1.6;
    font-size: 16px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
}

p {
    color: #555;
}

/* ===== Container spacing ===== */
.container {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 24px;
}

/* ===== Hero refinement ===== */
.hero {
    background: linear-gradient(135deg, #1F4898 0%, #163a7a 100%);
    padding: 60px 20px;
}

.hero h1 {
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 18px;
    opacity: 0.95;
    color: 'ffffff;
}

.hero {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ===== Card polish ===== */
.card {
    border: 1px solid #eef1f5;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}


/* ===== Button upgrade ===== */
button, .button-link {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

button:hover, .button-link:hover {
    transform: translateY(-1px);
}

/* ===== Navbar refinement ===== */
.navbar {
    padding: 14px 20px;
}

.navbar a {
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.navbar a:hover {
    opacity: 1;
}

/* ===== Footer polish ===== */
.footer {
    background: #eef2f7;
    font-size: 14px;
}

.footer-bottom {
    font-size: 13px;
}

/* ===== Cards grid spacing improvement ===== */
.cards-grid {
    gap: 24px;
}

/* ===== Improve form fields ===== */
input[type="text"],
input[type="email"],
select {
    padding: 10px;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: #1F4898;
    box-shadow: 0 0 0 2px rgba(31,72,152,0.15);
}


.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.warning {
    background: #fff3cd;
    color: #856404;
}

button.danger {
    background: #c62828;
    color: white;
}

/* ===== Settings Form ===== */

.settings-form label {
    display: block;
    margin-top: 20px;
    font-weight: 600;
}

.settings-form input,
.settings-form textarea,
.settings-form select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 6px;
    font-size: 14px;
    font-family: inherit;
}

.settings-form textarea {
    resize: vertical;
}

.settings-form button {
    margin-top: 25px;
}


/* ===== Fade animations  ===== */
.flash-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    z-index: 2000;
    animation: fadeOutContainer 4s forwards;
}

.flash-message {
    margin-bottom: 10px;
}

@keyframes fadeOutContainer {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; pointer-events: none; }
}


.email-valid {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(0.8); }
    100% { transform: scale(1); }
}



/* ===== Toast  ===== */
#toastContainer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 3000;
}

.toast {
    background: #1F4898;
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease, fadeOutToast 4s forwards;
}

.toast.success {
    background: #2e7d32;
}

.toast.error {
    background: #c62828;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOutToast {
    0% { opacity: 1; }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}


.card {
    padding: 20px 20px 26px 20px;
}

.card button,
.card .button-link {
    margin-top: 15px;
}

.actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.actions-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.actions-row form {
    margin: 0;
}



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

/* ===== Card polish ===== */
.card {
    background: white;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ===== Stats cards ===== */
.card-grid .card:nth-child(1) {
    border-left: 5px solid #C4C4C4;
}

.card-grid .card:nth-child(2) {
    border-left: 5px solid #C4C4C4;
}

.card-grid .card:nth-child(3) {
    border-left: 5px solid #c62828;
}

.card-grid .card:nth-child(4) {
    border-left: 5px solid #c62828;
}

.card-grid p {
    font-size: 28px;
    font-weight: 600;
    margin-top: 5px;
}

/* ===== Table ===== */
.participants-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.participants-table th {
    text-align: left;
    padding: 12px;
    background: #f4f6fa;
    position: sticky;
    top: 0;
    z-index: 5;
}

.participants-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.participants-table tr:hover {
    background: #f8faff;
}

/* ===== Badge ===== */
.badge {
    background: #e0e0e0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.badge.success {
    background: #d4edda;
    color: #155724;
}

/* ===== Buttons ===== */
button {
    background: #1F4898;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
    background: #173a7a;
}

button:active {
    transform: translateY(1px);
}

button.danger {
    background: #c62828;
}

button.danger:hover {
    background: #a61f1f;
}


.btn.secondary {
    background: #8A8B8D;
}

.btn.secondary:hover {
    background: #6f7072;
}

/* ===== Search input ===== */
.search-form input {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-right: 8px;
    width: 260px;
}

/* ===== Actions row ===== */
.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.inline-form {
    margin: 0;
}

.btn {
    display: inline-block;
}

.actions-row a,
.actions-row button {
    border: none;
}

/* ===== Container spacing ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.inline-form {
    display: inline;
    margin: 0;
}

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

.btn {
    display: inline-block;
    background: #1F4898;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, transform 0.1s ease;
}

.btn:hover {
    background: #173a7a;
}

.btn:active {
    transform: translateY(1px);
}

.btn.danger {
    background: #c62828;
}

.btn.danger:hover {
    background: #a61f1f;
}

.inline-form {
    display: flex;
    align-items: center;
    margin: 0;
}

.participants-table th {
    text-align: left;
    padding: 12px;
    background: #f4f6fa;
    color: #222;   
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
}

.program-download {
    margin: 20px 0 30px 0;
}

/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card {
    text-align: center;
}

.stat-card p {
    font-size: 30px;
    font-weight: 600;
    margin-top: 5px;
}


/* ===== Stats Grid ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 25px;
}

.stat-card {
    text-align: center;
}

.stat-card p {
    font-size: 30px;
    font-weight: 600;
    margin-top: 5px;
}




/* ===== Archived banner  ===== */

.archived-banner {
    background: linear-gradient(90deg, #1F4898, #163a7a);
    color: white;
    text-align: center;
    padding: 12px 10px;
    font-weight: 500;
    letter-spacing: 0.3px;
}


/* ===== Program Builder ==== */
.session-card {
    border-left: 4px solid #1F4898;
    padding: 10px;
    margin-bottom: 10px;
    background: #fafafa;
    color: #ffffff;
}




/* ===== Form Inputs for Program Builder ===== */

.input,
textarea.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d0d4da;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.input:focus,
textarea.input:focus {
    outline: none;
    border-color: #1F4898;
    box-shadow: 0 0 0 2px rgba(31,72,152,0.15);
}

/* textarea height */
.textarea {
    min-height: 80px;
    resize: vertical;
}


/* ===== Calendar Layout ===== */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.calendar-day {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.calendar-day h2 {
    text-align: center;
    margin-bottom: 15px;
}


.timeline-grid {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.timeline-hours {
    width: 80px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.timeline-hour {
    height: 80px;
    padding: 8px;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px solid #eee;
}

.timeline-content {
    position: relative;
    flex: 1;
}

.timeline-slot {
    position: absolute;
    left: 10px;
    right: 10px;
    background: #1F4898;
    color: white;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.timeline-slot.break {
    background: #8A8B8D;
}

.timeline-slot.poster {
    background: #4f46e5;
}


.timeline-grid {
    display: flex;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.timeline-hours {
    width: 80px;
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.timeline-hour {
    height: 80px;
    padding: 8px;
    font-size: 13px;
    color: #6b7280;
    border-bottom: 1px solid #eee;
}

.timeline-content {
    position: relative;
    flex: 1;
}

.timeline-slot {
    position: absolute;
    left: 10px;
    right: 10px;
    background: #1F4898;
    color: white;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.timeline-slot.break {
    background: #8A8B8D;
}

.timeline-slot.poster {
    background: #4f46e5;
}

/* ===== Session Cards ===== */

.session-card {
    border-left: 6px solid #1F4898;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 6px;
    background: #f9f9fb;
    transition: 0.2s ease;
}

.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.session-time {
    font-weight: bold;
    font-size: 14px;
    color: #ffffff;
}

.session-title {
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
}

.session-speaker,
.session-location,
.session-desc {
    font-size: 13px;
    color: #ffffff;
}


.timeline {
    position: relative;
    background: #f8fafc;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-height: 200px;
}

.time-marker {
    position: absolute;
    left: 0;
    width: 100%;
    border-top: 1px dashed #ddd;
    font-size: 11px;
    color: #888;
    padding-left: 5px;
}

.session-block {
    position: absolute;
    left: 80px;
    right: 10px;
    background: #1F4898;
    color: white;
    border-radius: 6px;
    padding: 6px;
    font-size: 12px;
}

.session-title {
    font-weight: bold;
}

.session-time {
    font-size: 11px;
    opacity: 0.8;
}

/* ===== Type Colors ===== */

.type-talk { border-left-color:#1F4898; }
.type-keynote { border-left-color:#8e24aa; }
.type-break { border-left-color:#f57c00; }
.type-poster { border-left-color:#2e7d32; }
.type-workshop { border-left-color:#0097a7; }

/* ===== Small button ===== */

.btn.small {
    font-size: 12px;
    padding: 5px 8px;
    margin-top: 5px;
}


/* ===== Interactive calendar  ===== */
.timeline-tabs {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.timeline-tabs .btn.active {
    background: #1e3a8a;
    color: white;
}

.timeline-slot {
    position: absolute;
    left: 10px;
    right: 10px;
    border-radius: 10px;
    padding: 8px;
    background: #2563eb;
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    border: 2px solid white;
    transition: transform 0.15s ease;
}

.timeline-slot:hover {
    transform: translateY(-1px);
}

.timeline-slot.dragging {
    opacity: 0.7;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    cursor: ns-resize;
    background: rgba(255,255,255,0.4);
}

/* ===== Form Grid ===== */
.form-grid {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap:20px;
    margin-top:10px;
}

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

.form-row.full {
    grid-column:1 / -1;
}

.form-row input,
.form-row select {
    padding:10px;
    border-radius:6px;
    border:1px solid #ccc;
    font-family:inherit;
    font-size:14px;
}

/* ===== Timeline ===== */
.timeline{
position:relative;
height:720px;
background:#f5f7fb;
border-radius:8px;
overflow:hidden;
}

.timeline-day{
margin-bottom:40px;
}

.time-marker{
position:absolute;
left:0;
width:100%;
font-size:11px;
color:#888;
border-top:1px solid #e2e6ef;
padding-left:5px;
}

.session-block {
    position:absolute;
    left:10px;
    right:10px;
    background:#1F4898;
    color:white;
    border-radius:8px;
    padding:8px;
    font-size:13px;
    cursor:grab;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
    opacity:0.95;
    border-left:4px solid rgba(255,255,255,.4);
}

.session-block.collision {
    background:#c62828;
}

.session-block:hover {
    opacity:1;
}

.resize-handle {
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:8px;
    cursor:ns-resize;
    background:rgba(255,255,255,.4);
    border-bottom-left-radius:8px;
    border-bottom-right-radius:8px;
}

.type-talk{ background:#1F4898; }
.type-break{ background:#8A8B8D; }
.type-poster{ background:#6f42c1; }
.type-social{ background:#2e8b57; }


.session-title{
    font-weight:600;
    font-size:13px;
    line-height:1.2;
    color: #ffffff;
}

.session-time{
    font-size:11px;
    opacity:.9;
    color: #ffffff;
}

/* collapse when small */
.session-block.small .session-time{
    display:none;
}

.session-block.tiny .session-title{
    font-size:11px;
}


.session-block.dragging{
    opacity:.85;
    transform:scale(1.02);
}



/* Prevent text selection while dragging */
body.dragging {
    user-select: none;
    cursor: grabbing;
}

/* Improve readability */
.session-title {
    font-weight: 600;
    color: #ffffff;
}

.session-time {
    font-size: 12px;
    opacity: 0.9;
    color: #ffffff;
}

/* Tooltip */
#tooltip {
    position: absolute;
    background: #1F2937;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    display: none;
    pointer-events: none;
    z-index: 9999;
}

/* ===== Session gradients ===== */
.type-talk{
    background:linear-gradient(135deg,#1F4898,#3f6fd1);
}

.type-break{
    background:linear-gradient(135deg,#8A8B8D,#b0b1b3);
}

.type-poster{
    background:linear-gradient(135deg,#6f42c1,#9b6de0);
}

.type-social{
    background:linear-gradient(135deg,#2e8b57,#4dbd83);
}

/* subtle accent */
.session-block{
    border-left:4px solid rgba(255,255,255,.35);
    transition:top .15s ease,height .15s ease,box-shadow .15s ease;
}

.session-block:hover{
    box-shadow:0 6px 14px rgba(0,0,0,.25);
}

/* ===== Legend ===== */
.timeline-legend{
    display:flex;
    gap:15px;
    margin-bottom:10px;
    font-size:13px;
    color:#555;
}

.legend-item{
    display:flex;
    align-items:center;
    gap:6px;
}

.legend-color{
    width:14px;
    height:14px;
    border-radius:4px;
}





/* ===== Edit program timeline ===== */

.modal{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.4);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.modal-content{
background:white;
padding:25px;
border-radius:10px;
width:400px;
box-shadow:0 4px 20px rgba(0,0,0,.2);
}




/* ===== Schedule Layout ===== */

.schedule-table{
display:flex;
flex-direction:column;
gap:10px;
margin-top:12px;
}

.schedule-row{
display:grid;
grid-template-columns:130px 1fr;
align-items:start;
gap:12px;
}

.schedule-time{
font-weight:700;
color:#1F4898;
padding-top:6px;
font-size:14px;
}

.schedule-session{
background:white;
border-radius:8px;
padding:12px 14px;
border-left:6px solid #1F4898;
box-shadow:0 1px 4px rgba(0,0,0,.08);
transition:.2s;
}

.schedule-session:hover{
transform:translateY(-1px);
box-shadow:0 3px 8px rgba(0,0,0,.12);
}

.session-title{
font-weight:700;
margin-bottom:4px;
color:#222;
font-size:15px;
}

.session-meta{
font-size:13px;
color:#444;
}

.session-desc{
font-size:13px;
color:#555;
margin-top:4px;
}

/* ===== Type colors ===== */

.schedule-session.type-talk{ border-left-color:#1F4898; }
.schedule-session.type-break{ border-left-color:#8A8B8D; }
.schedule-session.type-poster{ border-left-color:#6f42c1; }
.schedule-session.type-social{ border-left-color:#2e8b57; }



/* ===== Header layout ===== */

.logo-title{
    display:flex;
    align-items:center;
    gap:14px;
}

/* Light background behind logo */
.logo-pill{
    background:white;
    padding:6px 10px;
    border-radius:5px;
    box-shadow:0 2px 6px rgba(0,0,0,.15);
}

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

/* Title text */

.title-text{
    display:flex;
    flex-direction:column;
    line-height:1.2;
}

.title-main{
    font-weight:700;
    font-size:22px;   
    color:white;
}

.title-sub{
    font-size:14px;   
    color:rgba(255,255,255,.9);
}

.navbar{
    background:linear-gradient(90deg, #1F4898 0%, #2b5dc0 100%);
    position:sticky;
    top:0;
    z-index:1000;
}


/* ================= TIMELINE POLISH ================= */

.timeline-day h3{
    font-size:18px;
    margin-bottom:10px;
    color:#1F4898;
    font-weight:600;
}

/* Timeline container */
.timeline{
    position:relative;
    background:
        repeating-linear-gradient(
            to bottom,
            #f7f9fc 0px,
            #f7f9fc 59px,
            #e4e9f2 60px
        );
    border-radius:10px;
    border:1px solid #e2e6ef;
    overflow:hidden;
}

/* Hour labels */
.time-marker{
    position:absolute;
    left:0;
    width:100%;
    font-size:11px;
    color:#7b8794;
    border-top:1px solid #d8dee9;
    padding-left:8px;
    font-weight:500;
}

/* Session blocks */
.session-block{
    position:absolute;
    left:10px;
    right:10px;
    border-radius:10px;
    padding:8px 10px;
    font-size:13px;
    cursor:grab;
    box-shadow:0 4px 10px rgba(0,0,0,.08);
    transition:box-shadow .15s ease, transform .1s ease;
}

.session-block:hover{
    box-shadow:0 6px 16px rgba(0,0,0,.12);
    transform:translateY(-1px);
}

.session-title{
    font-weight:600;
    font-size:13px;
    margin-bottom:2px;
}

.session-time{
    font-size:12px;
    opacity:.9;
}

/* Resize handle */
.resize-handle{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:6px;
    border-bottom-left-radius:10px;
    border-bottom-right-radius:10px;
    background:rgba(255,255,255,.35);
    cursor:ns-resize;
}

/* Legend */
.timeline-legend{
    display:flex;
    gap:18px;
    margin-bottom:12px;
    font-size:13px;
    color:#555;
}

.legend-item{
    display:flex;
    align-items:center;
    gap:6px;
}

.legend-color{
    width:12px;
    height:12px;
    border-radius:3px;
}

/* Types */
.type-talk{ background:#1F4898; color:white; }
.type-break{ background:#8A8B8D; color:white; }
.type-poster{ background:#6f42c1; color:white; }
.type-social{ background:#2e8b57; color:white; }

/* Conflict highlight */
.session-block.conflict{
    background:#c62828 !important;
}

/* Tooltip */
#tooltip{
    position:absolute;
    display:none;
    background:white;
    border-radius:8px;
    padding:10px 12px;
    font-size:12px;
    box-shadow:0 6px 20px rgba(0,0,0,.15);
    pointer-events:none;
    max-width:220px;
    z-index:999;
    border:1px solid #e2e6ef;
}

/* Smooth dragging */
body.dragging{
    user-select:none;
    cursor:grabbing;
}



/* ===== Timeline session blocks ===== */

.session-block {

    border-radius: 10px;
    padding: 8px 10px;

    color: rgba(255,255,255,0.96);
    font-size: 13px;
    line-height: 1.25;

    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    backdrop-filter: blur(2px);

    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.session-block:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* ===== Title ===== */

.session-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* ===== Time ===== */

.session-time {
    font-size: 12px;
    opacity: 0.85;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* ===== Session type colors ===== */

.type-talk {
    background: linear-gradient(135deg, #1F4898, #2f6ad8);
}

.type-poster {
    background: linear-gradient(135deg, #6f42c1, #8e5de8);
}

.type-social {
    background: linear-gradient(135deg, #2e8b57, #3fbf7a);
}

/* Break should be softer + readable */

.type-break {
    background: linear-gradient(135deg, #7d7f83, #9ea1a6);
    color: #ffffff;
}

.timeline {
    background: #f7f8fb;
    border-radius: 12px;
    padding-left: 70px;
    position: relative;
}

/* Time markers */

.time-marker {
    position: absolute;
    left: 0;
    width: 100%;
    font-size: 11px;
    color: #6b7280;
    border-top: 1px solid #e5e7eb;
    padding-left: 8px;
}


#tooltip {

    background: rgba(30,30,30,0.92);
    color: #ffffff;

    padding: 10px 12px;
    border-radius: 8px;

    font-size: 13px;
    line-height: 1.4;

    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}



.session-card {

    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;

    color: #ffffff;

    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}


/* ===== CORE COLORS ===== */

:root{
    --primary:#1F4898;
    --text:#2b2b2b;
    --muted:#6b7280;
    --bg:#f5f7fb;
    --card:#ffffff;
}

/* ===== CARD BASE ===== */

.card{
    background:var(--card);
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.06);
    padding:18px;
}

/* ===== ACCENT CARD ===== */

.card-accent{
    border-left:5px solid var(--primary);
}

.card-title{
    color:var(--primary);
    font-weight:600;
}

.card-text{
    color:var(--text);
}

.card-muted{
    color:var(--muted);
}


/* ===== CORE COLORS ===== */

:root{
    --primary:#1F4898;
    --text:#2b2b2b;
    --muted:#6b7280;
    --bg:#f5f7fb;
    --card:#ffffff;
}

/* ===== CARD BASE ===== */

.card{
    background:var(--card);
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,0.06);
    padding:18px;
}

/* ===== ACCENT CARD ===== */

.card-accent{
    border-left:5px solid var(--primary);
}

.card-title{
    color:var(--primary);
    font-weight:600;
}

.card-text{
    color:var(--text);
}

.card-muted{
    color:var(--muted);
}


.session-block{
    position:absolute;
    background:white;
    border-left:6px solid var(--primary);
    border-radius:8px;
    padding:8px 10px;
    box-shadow:0 2px 5px rgba(0,0,0,0.08);
    cursor:pointer;
    overflow:hidden;
}

.session-title{
    color:var(--primary);
    font-weight:600;
    font-size:13px;
}

.session-time{
    color:#374151;
    font-size:12px;
}

.type-talk{ border-left-color:#1F4898; }
.type-break{ border-left-color:#9ca3af; }
.type-poster{ border-left-color:#7c3aed; }
.type-social{ border-left-color:#059669; }




.timeline{
    position:relative;
    height:720px;
    border-left:2px solid #e5e7eb;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 29px,
            #f1f5f9 30px
        );
}

.time-marker{
    position:absolute;
    left:-60px;
    font-size:12px;
    color:#6b7280;
}




.timeline{
    position:relative;
    height:720px;
    border-left:2px solid #e5e7eb;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent,
            transparent 29px,
            #f1f5f9 30px
        );
}

.time-marker{
    position:absolute;
    left:-60px;
    font-size:12px;
    color:#6b7280;
}


.session-card{
    background:white;
    border-left:6px solid var(--primary);
    border-radius:8px;
    padding:14px;
    margin-bottom:10px;
    box-shadow:0 2px 5px rgba(0,0,0,0.06);
}

.session-card strong{
    color:var(--primary);
}

.session-card .meta{
    color:#374151;
    font-size:14px;
}

.session-card .desc{
    color:#6b7280;
    font-size:14px;
}



/* ================= PUBLIC PROGRAM CARD STYLE ================= */

.schedule-session{
    background: white;
    border-radius: 10px;
    padding: 16px 18px;
    border-left: 6px solid #1F4898;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.schedule-session:hover{
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
}

/* ===== Title ===== */
.schedule-session .session-title{
    font-weight: 600;
    color: #1F4898;
    font-size: 16px;
    margin-bottom: 6px;
}

/* ===== Meta ===== */
.schedule-session .session-meta{
    color: #444;
    font-size: 15px;
}

/* ===== Description ===== */
.schedule-session .session-desc{
    color: #666;
    font-size: 15px;
    margin-top: 6px;
}

/* ===== Time column ===== */
.schedule-time{
    font-size: 15px;
    font-weight: 600;
    color: #1F4898;
}

/* ===== Type colors ===== */
.schedule-session.type-talk{ border-left-color:#1F4898; }
.schedule-session.type-break{ border-left-color:#8A8B8D; }
.schedule-session.type-poster{ border-left-color:#6f42c1; }
.schedule-session.type-social{ border-left-color:#2e8b57; }
