/* Custom styles for Secret Santa app */

:root {
    --spacing-section: 3rem;
}

body {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Header with Language Selector */
.header-with-language {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.header-with-language hgroup {
    flex: 1;
    margin-bottom: 0;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: flex-start;
    padding-top: 0.5rem;
}

.language-dropdown {
    min-width: 200px;
    max-width: 250px;
    cursor: pointer;
}

/* Page visibility */
.page {
    display: block;
}

.page.hidden {
    display: none;
}

/* Hidden utility class */
.hidden {
    display: none;
}

/* Security notice */
.security-notice {
    background-color: var(--pico-secondary-background);
    border-left: 4px solid var(--pico-secondary);
    margin: 1.5rem 0;
}

.security-notice header {
    margin-bottom: 0.5rem;
}

.security-notice p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Link containers */
.link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.link-container input {
    flex: 1;
    margin-bottom: 0;
}

.link-container .button-group {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.link-container .copy-btn {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Participant links */
.participant-link-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.participant-link-item strong {
    min-width: 150px;
}

.participant-link-item input {
    flex: 1;
    margin-bottom: 0;
}

.participant-link-item .button-group {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.participant-link-item .copy-btn,
.participant-link-item .share-btn {
    flex-shrink: 0;
    margin-bottom: 0;
}

/* Assignment card */
.assignment-card {
    text-align: center;
    margin: 2rem 0;
}

.assignment-card h2 {
    color: var(--pico-primary);
    margin: 2rem 0;
    font-size: 2.5rem;
}

/* Tables */
table {
    margin-top: 1rem;
}

table th:nth-child(2),
table td:nth-child(2) {
    text-align: center;
    width: 50px;
}

/* Buttons */
button.copy-btn,
button.share-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Success feedback */
.copied {
    background-color: var(--pico-ins-color) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-with-language {
        flex-direction: column;
        gap: 1rem;
    }

    .language-selector {
        justify-content: flex-start;
    }

    .language-dropdown {
        min-width: 100%;
        max-width: 100%;
    }

    .participant-link-item {
        flex-direction: column;
        align-items: stretch;
    }

    .participant-link-item strong {
        min-width: auto;
    }

    .link-container {
        flex-direction: column;
    }

    .button-group {
        flex-direction: row;
        width: 100%;
    }

    .button-group button {
        flex: 1;
    }
}
