* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f3f6f4;
    color: #1f2a24;
}

.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #014d36 0%, #013824 100%);
    color: #fff;
    padding: 28px 20px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.menu-section {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin: 24px 0 12px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: 0.2s ease;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255,255,255,0.12);
}

.menu-icon {
    width: 22px;
    text-align: center;
    font-size: 16px;
}

.main {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 28px;
}

.topbar {
    background: #fff;
    border-radius: 20px;
    padding: 24px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    gap: 20px;
}

.page-title {
    font-size: 30px;
    color: #162019;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #6f7d74;
    font-size: 14px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-badge {
    background: #014d36;
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.stat-label {
    color: #65746a;
    font-size: 14px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 34px;
    font-weight: 700;
    color: #0f1d15;
    margin-bottom: 8px;
}

.stat-note {
    font-size: 13px;
    color: #7f8d84;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.side-panels {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.panel-lg {
    min-height: 500px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-header h2 {
    font-size: 22px;
    color: #162019;
}

.panel-link,
.table-link {
    color: #014d36;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.table-link:hover,
.panel-link:hover {
    text-decoration: underline;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    font-size: 13px;
    color: #6c7a71;
    background: #f6f8f7;
    padding: 14px;
    border-bottom: 1px solid #e3e9e5;
}

tbody td {
    padding: 14px;
    border-bottom: 1px solid #edf1ee;
    font-size: 14px;
    color: #243128;
}

tbody tr:hover {
    background: #fafcfb;
}

.empty-state {
    text-align: center;
    color: #7d8a82;
    padding: 24px;
}

.status-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending,
.status-submitted {
    background: #e5f2ff;
    color: #155b9c;
}

.status-approved {
    background: #dff6e8;
    color: #13723f;
}

.status-rejected {
    background: #fde2e2;
    color: #a12626;
}

.status-not_submitted {
    background: #eceff1;
    color: #58656d;
}

.quick-actions {
    display: grid;
    gap: 12px;
}

.action-btn {
    display: block;
    text-decoration: none;
    background: #f5f8f6;
    color: #014d36;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #e2eae5;
    transition: 0.2s ease;
}

.action-btn:hover {
    background: #014d36;
    color: #fff;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #edf1ee;
}

.status-item:last-child {
    border-bottom: none;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.pill.ok {
    background: #dff6e8;
    color: #13723f;
}

.pill.live {
    background: #e5f2ff;
    color: #155b9c;
}

.pill.muted {
    background: #eceff1;
    color: #58656d;
}

.filter-form {
    margin-top: 8px;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #55645b;
    font-weight: 600;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8e1db;
    border-radius: 12px;
    outline: none;
    background: #f8faf9;
    font-size: 14px;
    color: #243128;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: #014d36;
    background: #fff;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-danger,
.mini-btn {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-primary {
    background: #014d36;
    color: #fff;
}

.btn-primary:hover {
    background: #013824;
}

.btn-secondary {
    background: #eef3f0;
    color: #234132;
    border: 1px solid #d8e1db;
}

.btn-secondary:hover {
    background: #e4ebe7;
}

.btn-danger {
    background: #c73939;
    color: #fff;
}

.btn-danger:hover {
    background: #a92d2d;
}

.mini-btn {
    padding: 8px 12px;
    font-size: 12px;
}

.mini-btn.success {
    background: #dff6e8;
    color: #13723f;
}

.mini-btn.danger {
    background: #fde2e2;
    color: #a12626;
}

.table-count {
    font-size: 14px;
    color: #66756c;
    font-weight: 600;
}

.alert-box {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.alert-success {
    background: #dff6e8;
    color: #13723f;
    border: 1px solid #bee8cf;
}

.alert-error {
    background: #fde2e2;
    color: #a12626;
    border: 1px solid #f3c3c3;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-card {
    background: #f8faf9;
    border: 1px solid #e4ebe7;
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-card-full {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 13px;
    color: #68776e;
    font-weight: 600;
}

.detail-value {
    font-size: 16px;
    color: #1f2a24;
    font-weight: 600;
    word-break: break-word;
}

.detail-name {
    font-size: 22px;
    line-height: 1.4;
}

.stack-form,
.action-stack,
.inline-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inline-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.full-btn {
    width: 100%;
}

.participant-view-grid {
    grid-template-columns: 1.5fr 0.9fr;
}

.muted-text {
    color: #66756c;
    line-height: 1.7;
    font-size: 14px;
}

.export-panel {
    max-width: 600px;
}

.export-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.export-stat {
    font-size: 44px;
    font-weight: 700;
    color: #014d36;
}

.export-text {
    color: #66756c;
    font-size: 15px;
}

.login-body,
.public-body {
    background: #073d2f;
    min-height: 100vh;
}

.login-wrapper,
.public-shell {
    min-height: 100vh;
    display: grid;
}

.login-wrapper {
    place-items: center;
    padding: 24px;
}

.login-card,
.public-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.14);
}

.login-card h1,
.public-card h1 {
    margin-bottom: 10px;
    color: #162019;
}

.login-card p {
    margin-bottom: 20px;
    color: #66756c;
}

.public-shell {
    grid-template-columns: 320px 1fr;
}

.public-sidebar {
    background: linear-gradient(180deg, #014d36 0%, #013824 100%);
    color: #fff;
    padding: 36px 28px;
}

.public-sidebar-text {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    font-size: 15px;
    margin-top: 16px;
    max-width: 220px;
}

.public-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: #f3f6f4;
}

.public-details-grid {
    grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-grid,
    .participant-view-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .layout {
        flex-direction: column;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-right {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-grid,
    .details-grid {
        grid-template-columns: 1fr;
    }

    .public-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main,
    .public-main {
        padding: 16px;
    }

    .topbar,
    .panel,
    .stat-card,
    .public-card,
    .login-card {
        padding: 18px;
    }

    .page-title {
        font-size: 24px;
    }

    .detail-card-full {
        grid-column: auto;
    }
}

.editable-warning {
    background: #fff1f1;
    border: 1px solid #e14b4b;
    border-left: 6px solid #c62828;
    color: #8b1e1e;
    border-radius: 14px;
    padding: 16px 18px;
}

.warning-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #b71c1c;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.editable-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.editable-label {
    color: #b71c1c !important;
    font-weight: 700;
}

.editable-input {
    border: 2px solid #d32f2f !important;
    background: #fff8f8 !important;
    animation: pulseField 1s infinite;
    caret-color: #c62828;
}

.editable-input:focus {
    border-color: #b71c1c !important;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
    background: #ffffff !important;
    outline: none;
}

@keyframes pulseField {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.28);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.submitted-info {
    background: #f4fbf6;
}

.editable-warning {
    background: #fff1f1;
    border: 1px solid #e14b4b;
    border-left: 6px solid #c62828;
    color: #8b1e1e;
    border-radius: 14px;
    padding: 16px 18px;
}

.warning-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #b71c1c;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.editable-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.editable-label {
    color: #b71c1c !important;
    font-weight: 700;
}

.editable-input {
    border: 2px solid #d32f2f !important;
    background: #fff8f8 !important;
    caret-color: #c62828;
}

.editable-input:focus {
    border-color: #b71c1c !important;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
    background: #ffffff !important;
    outline: none;
}

.editable-help {
    display: inline-block;
    margin-top: 8px;
    color: #c62828;
    font-size: 13px;
    font-weight: 700;
}

.shake-on-load {
    animation: gentleShake 0.7s ease-in-out 1, pulseField 1.2s ease-in-out 2;
}

@keyframes gentleShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@keyframes pulseField {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.28);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.submitted-info {
    background: #f4fbf6;
}

.editable-warning {
    background: #fff1f1;
    border: 1px solid #e14b4b;
    border-left: 6px solid #c62828;
    color: #8b1e1e;
    border-radius: 14px;
    padding: 16px 18px;
}

.warning-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #b71c1c;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.editable-warning p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.editable-label {
    color: #b71c1c !important;
    font-weight: 700;
}

.editable-input {
    border: 2px solid #d32f2f !important;
    background: #fff8f8 !important;
    caret-color: #c62828;
}

.editable-input:focus {
    border-color: #b71c1c !important;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.12);
    background: #ffffff !important;
    outline: none;
}

.editable-help {
    display: inline-block;
    margin-top: 8px;
    color: #c62828;
    font-size: 13px;
    font-weight: 700;
}

.shake-on-load {
    animation: gentleShake 0.7s ease-in-out 1, pulseField 1.2s ease-in-out 2;
}

@keyframes gentleShake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

@keyframes pulseField {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.28);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

.submitted-info {
    background: #f4fbf6;
}

.brand-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    padding: 6px;
    flex-shrink: 0;
    box-align: center
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
}

.brand-text {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.brand.brand-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    text-align: center;
}

.login-brand {
    margin-bottom: 20px;
}

.login-brand .brand-logo {
    width: 150px;
    height: 150px;
    background: #f3f6f4;
}

.login-brand .brand-text {
    color: #162019;
    font-size: 24px;
}

.sidebar-brand {
    margin-bottom: 30px;
}

.sidebar-brand .brand-logo {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.12);
    padding: 6px;
}

.sidebar-brand .brand-text {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.brand-subtext {
    display: inline-block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.portal-mini-text {
    display: inline-block;
    max-width: 180px;
    text-align: right;
    color: #58656d;
    font-size: 12px;
    line-height: 1.5;
}

input[type="file"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8e1db;
    border-radius: 12px;
    outline: none;
    background: #f8faf9;
    font-size: 14px;
    color: #243128;
}

.pill.warning {
    background: #fff4d8;
    color: #9a6a00;
}

.pill.danger {
    background: #fde2e2;
    color: #a12626;
}

.pill.warning {
    background: #fff4d8;
    color: #9a6a00;
}

.pill.danger {
    background: #fde2e2;
    color: #a12626;
}

.portal-mini-text {
    display: inline-block;
    max-width: 180px;
    text-align: right;
    color: #58656d;
    font-size: 12px;
    line-height: 1.5;
}

.pill.warning {
    background: #fff4d8;
    color: #9a6a00;
}

.pill.danger {
    background: #fde2e2;
    color: #a12626;
}

.portal-mini-text {
    display: inline-block;
    max-width: 180px;
    text-align: right;
    color: #58656d;
    font-size: 12px;
    line-height: 1.5;
}