/* =========================================
   BASE & WRAPPER
========================================= */
* {
    box-sizing: border-box;
    font-family: "Inter", "Segoe UI", -apple-system, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background-color: #f8fafc;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
background-color: #FAF3E0;
}

.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 20px 40px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
margin-top:40px;
}

/* =========================================
   TITLES & HEADERS
========================================= */
h2 {
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: -0.02em;
}

h3 {
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin: 45px 0 20px;
}

h4 {
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 15px;
}

/* =========================================
   FORM CONTROLS
========================================= */
.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 10px;
}

.form-group {
    flex: 1;
    text-align: left;
    margin-bottom: 24px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #556b5d;
    box-shadow: 0 0 0 4px rgba(85, 107, 93, 0.1);
}

/* =========================================
   PARTICIPANTS TABLE LIST
========================================= */
.participant-list {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    margin-bottom: 25px;
}

.participant-header {
    display: flex;
    background: #f8fafc;
    padding: 12px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.05em;
}

.participant-row.confirmed {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s ease;
}

.participant-row.confirmed:last-child {
    border-bottom: none;
}

.participant-row.confirmed:hover {
    background: #fdfdfd;
}

/* Table Column Widths (Synchronized) */
.col-name { flex: 2; }
.col-nic  { flex: 1; padding-left: 10px; }
.col-action { flex: 0 0 40px; text-align: right; }

.col-name span {
    font-weight: 600;
    color: #0f172a;
    font-size: 14.5px;
}

.col-nic span {
    color: #475569;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
}

/* =========================================
   ADD NEW PARTICIPANT ROW
========================================= */
.add-participant-box {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    padding: 20px;
    border-radius: 10px;
    margin-top: 10px;
}

.add-participant-box .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.add-participant-box .input-wrap.name { flex: 2; }
.add-participant-box .input-wrap.nic { flex: 1; }

.add-participant-box label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.add-participant-box input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    width: 100%;
    padding: 16px;
    background-color: #556b5d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn:hover {
    background-color: #44584c;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.btn:active {
    transform: scale(0.99);
}

.btn-add {
    background: #ffffff;
    color: #0077b5;
    border: 1.5px solid #0077b5;
    padding: 11px 20px;
    height: 44px; /* Matches input height */
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-add:hover {
    background: #0077b5;
    color: #fff;
}

.remove-btn {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

/* =========================================
   ALERTS
========================================= */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 600;
    border-left: 5px solid;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border-left-color: #ef4444;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 650px) {
    .form-row, .add-participant-box {
        flex-direction: column;
        gap: 15px;
    }
    .participant-header { display: none; }
    .participant-row.confirmed { flex-direction: column; align-items: flex-start; gap: 8px; }
    .col-action { width: 100%; text-align: left; margin-top: 10px; }
    .login-card { padding: 30px 20px; }
}

.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;
}