/* Secret Santa - Main Stylesheet */

:root {
    --christmas-red: #C41E3A;
    --christmas-green: #165B33;
    --christmas-gold: #FFD700;
    --snow-white: #FFFFFF;
    --light-gray: #F8F9FA;
    --dark-text: #2C3E50;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #4A90E2 100%);
    color: var(--dark-text);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Typography */
.title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.christmas-title {
    font-family: 'Mountains of Christmas', cursive;
    color: var(--christmas-red);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.5s ease;
}

.login-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    max-width: 450px;
    margin: 10vh auto;
    text-align: center;
    animation: fadeInUp 0.5s ease;
}

.card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.card-body {
    margin-bottom: 2rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-gray);
}

/* Forms */
.form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: var(--dark-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--christmas-green);
    box-shadow: 0 0 0 3px rgba(22, 91, 51, 0.1);
    background: white;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: #b0b0b0;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.875rem;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--christmas-red);
    color: white;
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: var(--christmas-green);
    color: white;
}

.btn-secondary:hover {
    background: #114526;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

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

.btn-text {
    background: transparent;
    color: #666;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--dark-text);
    background: transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Icons and Decorations */
.santa-hat {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.present-box {
    font-size: 5rem;
    margin: 2rem 0;
    animation: pulse 2s infinite;
}

.gift-icon {
    font-size: 4rem;
    animation: rotate360 3s infinite;
}

/* States */
.loading-state {
    text-align: center;
    padding: 3rem 0;
}

.spinner {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.125rem;
}

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

/* Messages */
.error-message {
    background: #fee;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #721c24;
}

.success-message {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    color: #155724;
}

/* Admin Specific */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-form {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.data-table {
    margin-top: 1.5rem;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.table-row:hover {
    background: var(--light-gray);
}

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

.stat-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--christmas-red);
}

.stat-label {
    color: #666;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Navigation Links */
.navigation-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-link {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.admin-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
}

.admin-link a:hover {
    color: var(--dark-text);
}

/* Assignment Reveal Animation */
.reveal-animation {
    padding: 3rem 0;
}

.recipient-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--christmas-red);
    margin: 1.5rem 0;
    animation: fadeInScale 0.8s ease;
}

.secret-reminder {
    font-size: 1.25rem;
    color: var(--christmas-gold);
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

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

@keyframes rotate360 {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .login-card {
        padding: 2rem;
        margin: 5vh auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .admin-header {
        flex-direction: column;
        gap: 1rem;
    }

    .recipient-name {
        font-size: 2rem;
    }
}
