/* Base Styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #A2BBA3;
}

.btn-primary {
    color: #fff;
    background-color: #A2BBA3;
    border-color: #A2BBA3;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #FFB6C1;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Blazor Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Loading Heart */
.loading-heart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #e7ebe7;
}

.heart-svg {
    width: 120px;
    height: 120px;
    animation: heartbeat 0.9s ease-in-out infinite;
}

.heart-outline {
    fill: #e7ebe7;
    stroke: #819782;
    stroke-width: 2;
}

.heart-fill {
    fill: #819782;
    clip-path: inset(calc(100% - var(--blazor-load-percentage, 0%)) 0 0 0);
    transition: clip-path 0.3s ease-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.15); }
    30% { transform: scale(1); }
    45% { transform: scale(1.1); }
    60% { transform: scale(1); }
    75% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loading-percentage {
    margin-top: 20px;
    font-size: 24px;
    color: #819782;
    font-weight: 600;
}

.loading-percentage:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ==================== COMMON STYLES ==================== */

/* Loading & Spinner */
.loading {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #d8ebd9;
    border-top-color: #A2BBA3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.not-authenticated {
    text-align: center;
    padding: 3rem;
}

.not-authenticated .card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.not-authenticated .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.not-authenticated h2 {
    color: #4A4A4A;
    margin-bottom: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    background: linear-gradient(135deg, #cde9ce 0%, #A2BBA3 100%);
    color: #4A4A4A;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button.secondary {
    background: #F5F5F5;
    color: #6B6B6B;
}

/* Cards */
.card {
    background: white;
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Header */
.header, .welcome-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.header h1, .welcome-header h1 {
    font-size: 1.5rem;
    color: #4A4A4A;
    margin-bottom: 0.25rem;
}

.header p, .welcome-header p {
    color: #999;
    font-size: 0.95rem;
}

/* Page */
.page {
    padding-bottom: 1rem;
}

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

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ==================== INDEX PAGE ==================== */

.landing {
    text-align: center;
}

.welcome-card {
    background: white;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.icon-container {
    margin-bottom: 1rem;
}

.large-icon {
    font-size: 4rem;
}

.title {
    font-size: 1.75rem;
    color: #4A4A4A;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    color: #6B6B6B;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.subtext {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    color: #4A4A4A;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

.arrow {
    font-size: 1.25rem;
}

.guest-welcome {
    margin-top: 1rem;
}

.welcome-text {
    color: #6B6B6B;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.feature-card {
    background: white;
    padding: 1.5rem 1rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.feature-card h3 {
    font-size: 0.95rem;
    color: #4A4A4A;
    margin-bottom: 0.25rem;
}

.feature-card p {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

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

/* ==================== TASKS PAGE ==================== */

.tasks-page {
    padding-bottom: 1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-state .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-size: 1.25rem;
    color: #4A4A4A;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
    margin-bottom: 1.5rem;
}

.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-card {
    background: white;
    border-radius: 15px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.task-card.completed {
    border-left: 4px solid #4CAF50;
}

.task-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-status {
    flex-shrink: 0;
}

.status-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
}

.status-icon.completed {
    background: #E8F5E9;
    color: #4CAF50;
}

.status-icon.pending {
    background: #FFF3E0;
    color: #FF9800;
}

.task-content h3 {
    font-size: 1.1rem;
    color: #4A4A4A;
    margin: 0 0 0.25rem 0;
}

.task-content .description {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.task-photos {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.photo-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
    position: relative;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.invalid-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 1rem;
    line-height: 1;
    cursor: help;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.task-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.upload-wrapper {
    position: relative;
    display: inline-block;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    color: #4A4A4A;
    padding: 0.625rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.upload-button:hover {
    transform: scale(1.02);
}

.completed-badge {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
}

.upload-progress {
    margin-top: 1rem;
    text-align: center;
}

    .upload-progress .progress-bar {
        height: 4px;
        background: #bacfbb;
        border-radius: 2px;
        animation: progress 1.5s ease-in-out infinite;
    }

.upload-progress span {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* ==================== UPLOAD PAGE ==================== */

.upload-page {
    padding-bottom: 1rem;
}

.upload-area {
    background: white;
    border: 2px dashed #bacfbb;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
    position: relative;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
}

.upload-label .icon {
    font-size: 3rem;
}

.upload-label .title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #4A4A4A;
}

.upload-label .subtitle {
    color: #999;
    font-size: 0.9rem;
}

.upload-label .formats {
    color: #CCC;
    font-size: 0.8rem;
}

.upload-progress-info {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6B6B6B;
}

.uploading-section {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.uploading-section h2 {
    font-size: 1rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
}

.uploading-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: #f9f9f9;
    margin-bottom: 0.5rem;
}

.uploading-item.completed {
    background: #e8f5e9;
}

.uploading-item .filename {
    flex: 1;
    font-size: 0.85rem;
    color: #4A4A4A;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-progress {
    width: 80px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: #7CB77C;
    transition: width 0.2s ease;
}

.uploading-item.completed .mini-progress-fill {
    background: #4CAF50;
}

.uploading-item .status {
    width: 40px;
    text-align: right;
    font-size: 0.8rem;
    color: #666;
}

.uploading-item .check {
    color: #4CAF50;
    font-weight: bold;
}

.progress-bar {
    height: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    transition: width 0.3s ease;
}

.uploaded-section {
    margin-top: 1.5rem;
}

.uploaded-section h2 {
    font-size: 1.1rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
}

.uploaded-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.uploaded-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.uploaded-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.uploaded-item .uploaded-link,
.uploaded-item .video-thumb {
    display: block;
}

.invalid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 120px;
    background: rgba(0,0,0,0.55);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.invalid-overlay .invalid-icon {
    font-size: 2rem;
}

.invalid-overlay .invalid-text {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 0 8px;
}

.video-thumb {
    width: 100%;
    height: 120px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.file-info {
    padding: 0.5rem;
}

.filename {
    display: block;
    font-size: 0.8rem;
    color: #4A4A4A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filesize {
    font-size: 0.75rem;
    color: #999;
}

.error-message {
    background: #FFF0F0;
    color: #D32F2F;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.warning-banner {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.warning-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.warning-text strong {
    display: block;
    color: #E65100;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.warning-text p {
    margin: 0;
    color: #6D4C00;
    font-size: 0.9rem;
    line-height: 1.4;
}

.warning-dismiss {
    background: #FFE082;
    border: none;
    color: #6D4C00;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.2rem;
    transition: background 0.2s;
}

.warning-dismiss:hover {
    background: #FFD54F;
}

/* ==================== NAME ENTRY PAGE ==================== */

.name-entry {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.name-entry .card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.name-entry .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.name-entry h1 {
    font-size: 1.5rem;
    color: #4A4A4A;
    margin-bottom: 0.5rem;
}

.name-entry .description {
    color: #6B6B6B;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.name-entry .input-group {
    margin-bottom: 1rem;
}

    .name-entry .name-input {
        width: 100%;
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
        border: 2px solid #d4e1d4;
        border-radius: 12px;
        outline: none;
        transition: all 0.2s ease;
        text-align: center;
    }

        .name-entry .name-input:focus {
            border-color: #A2BBA3;
            box-shadow: 0 0 0 4px #a2bba31c;
        }

.name-entry .name-input::placeholder {
    color: #CCC;
}

.name-entry .error-message {
    background: #FFF0F0;
    color: #D32F2F;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .name-entry .submit-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
    }

.name-entry .submit-button:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

.name-entry .submit-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.name-entry .arrow {
    font-size: 1.25rem;
}

.name-entry .spinner-small {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== ADMIN PAGES ==================== */

.dashboard {
    padding-bottom: 1rem;
}

.dashboard h1 {
    font-size: 1.75rem;
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

.loading, .login-required {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.login-required a {
    color: #A2BBA3;
    text-decoration: none;
    font-weight: 600;
}

.login-required a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    color: #4A4A4A;
}

/* Admin Buttons */
.btn-primary {
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.4);
}

.btn-edit {
    background: #E3F2FD;
    color: #1976D2;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-block;
}

.btn-delete {
    background: #FFEBEE;
    color: #D32F2F;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.task-info h3 {
    font-size: 1rem;
    color: #4A4A4A;
    margin-bottom: 0.25rem;
}

.task-info p {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active {
    background: #E8F5E9;
    color: #4CAF50;
}

.status-badge.inactive {
    background: #F5F5F5;
    color: #999;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
}

.empty-state .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.empty-state p {
    color: #999;
}

/* Guests List */
.guests-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guest-card {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guest-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-info {
    flex: 1;
}

.guest-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #4A4A4A;
}

.guest-date {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.count {
    background: #F5F5F5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #6B6B6B;
}

/* QR Code */
.qr-page {
    text-align: center;
}

.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: inline-block;
    margin: 1rem 0;
}

.qr-code {
    margin: 1rem 0;
}

.qr-url {
    font-size: 0.9rem;
    color: #999;
    word-break: break-all;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: left;
}

.info-card h3 {
    font-size: 1.1rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #6B6B6B;
    font-size: 0.9rem;
}

    .info-card li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: #bacfbb;
        font-weight: bold;
    }

/* Settings */
.settings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    font-size: 1.1rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F5F5F5;
}

/* Task Edit */
.task-edit-page {
    max-width: 600px;
    margin: 0 auto;
}

.task-edit-page h2 {
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

/* Completed Tasks */
.completed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assignment-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.task-badge {
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.guest-name {
    color: #999;
    font-size: 0.9rem;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

.photo-item {
    background: #F5F5F5;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.video-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.photo-name {
    display: block;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #6B6B6B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.completed-time {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #F0F0F0;
    font-size: 0.85rem;
    color: #4CAF50;
    text-align: right;
}

/* Photos Grid */
.admin-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.photo-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.video-preview {
    width: 100%;
    height: 150px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.photo-info {
    padding: 0.75rem;
}

.photo-filename {
    display: block;
    font-size: 0.85rem;
    color: #4A4A4A;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-guest {
    display: block;
    font-size: 0.8rem;
    color: #FFB6C1;
    margin-top: 0.25rem;
}

.photo-task {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.photo-date {
    display: block;
    font-size: 0.75rem;
    color: #CCC;
    margin-top: 0.25rem;
}

.btn-delete-photo {
    width: 100%;
    padding: 0.5rem;
    background: #FFEBEE;
    color: #D32F2F;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-delete-photo:hover {
    background: #FFCDD2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.stat-card.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 2rem;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A4A4A;
}

.stat-label {
    font-size: 0.85rem;
    color: #999;
}

.stat-arrow {
    font-size: 1.25rem;
    color: #d1dfd2;
}

/* Quick Actions */
.quick-actions {
    margin-top: 2rem;
}

.quick-actions h2 {
    font-size: 1.25rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #4A4A4A;
    transition: all 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.action-card .icon {
    font-size: 2rem;
}

.action-card span:last-child {
    font-weight: 600;
}

/* Admin Table */
.admin-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.admin-table th {
    background: #F5F5F5;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #4A4A4A;
}

.admin-table td {
    padding: 1rem;
    border-top: 1px solid #F5F5F5;
    color: #4A4A4A;
}

.admin-table tr:hover td {
    background: #FAFAFA;
}

/* Admin Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #4A4A4A;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #A2BBA3;
}

/* Admin Buttons */
.btn-small {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary-small {
    background: #A2BBA3;
    color: white;
}

.btn-primary-small:hover {
    background: #8FA88C;
}

.btn-danger {
    background: #FF6B6B;
    color: white;
}

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

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #e7ebe7;
}

.login-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-card h1 {
    font-size: 1.5rem;
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

.login-card .input-group {
    margin-bottom: 1rem;
}

    .login-card .password-input {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        border: 2px solid #d4e1d4;
        border-radius: 10px;
        outline: none;
        transition: all 0.2s ease;
        text-align: center;
    }

        .login-card .password-input:focus {
            border-color: #A2BBA3;
            box-shadow: 0 0 0 4px #a2bba31c;
        }

.login-card .error-message {
    background: #FFF0F0;
    color: #D32F2F;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .login-card .login-button {
        width: 100%;
        background: linear-gradient(135deg, #cde9ce 0%, #bacfbb 100%);
        color: #4A4A4A;
        border: none;
        padding: 1rem;
        border-radius: 10px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

.login-card .login-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.4);
}

.login-card .login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-card .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 74, 74, 0.2);
    border-top-color: #4A4A4A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

    .login-card .back-link {
        display: block;
        margin-top: 1.5rem;
        color: #999;
        text-decoration: none;
        font-size: 0.9rem;
        color: #A2BBA3;
    }

    .login-card .back-link:hover {
        color: #e7ebe7;
    }

/* QR Code */
.qr-page {
    text-align: center;
}

.qr-container {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: inline-block;
    margin: 1rem 0;
}

.qr-code {
    margin: 1rem 0;
}

.qr-url {
    font-size: 0.9rem;
    color: #999;
    word-break: break-all;
}

/* Settings */
.settings-section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.settings-section h3 {
    font-size: 1.1rem;
    color: #4A4A4A;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F5F5F5;
}

/* Task Edit */
.task-edit-page {
    max-width: 600px;
    margin: 0 auto;
}

.task-edit-page h2 {
    color: #4A4A4A;
    margin-bottom: 1.5rem;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.photo-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.photo-item .photo-info {
    padding: 0.5rem;
    font-size: 0.75rem;
    color: #999;
}

/* ==================== ADMIN LAYOUT ==================== */

.auth-redirect {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.auth-redirect p {
    color: #6B6B6B;
    font-size: 1.1rem;
}

.auth-redirect a {
    color: #A2BBA3;
    text-decoration: none;
    font-weight: 600;
}

.auth-redirect a:hover {
    text-decoration: underline;
}

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

.admin-sidebar {
    width: 240px;
    background: linear-gradient(180deg, #A2BBA3 0%, #A2BBA3 100%);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.sidebar-header .logo {
    font-size: 1.75rem;
}

.sidebar-header h1 {
    font-size: 1.25rem;
    color: #4A4A4A;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #4A4A4A;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: rgba(255,255,255,0.5);
}

.nav-item .icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: #6B6B6B;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(255,255,255,0.5);
    color: #4A4A4A;
}

.admin-main {
    flex: 1;
    margin-left: 240px;
    padding: 2rem;
    background: #F8F9FA;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 200px;
    }
    .admin-main {
        margin-left: 200px;
    }
}

@media (max-width: 576px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
    }
    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .nav-item {
        flex: 0 0 auto;
        padding: 0.5rem 0.75rem;
    }
    .nav-item span:last-child {
        display: none;
    }
    .admin-main {
        margin-left: 0;
    }
}

/* ==================== GUEST LAYOUT ==================== */

.guest-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #e7ebe7;
}

.guest-header {
    background: linear-gradient(135deg, #cde9ce 0%, #A2BBA3 100%);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.heart-icon {
    font-size: 1.75rem;
    color: #D4AF37;
}

.guest-header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: #4A4A4A;
    font-weight: 600;
}

.guest-main {
    flex: 1;
    padding: 1.5rem;
    padding-bottom: 6rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.guest-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.guest-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: #6B6B6B;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.guest-nav .nav-link:hover {
    background-color: #e1ebe2;
}

.guest-nav .nav-link.active {
    color: #A2BBA3;
}

.guest-nav .nav-icon {
    font-size: 1.5rem;
}
