/* ==================== styles.css ==================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(45deg, #89CFF0, #FFB6C1, #89CFF0, #FFB6C1);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.container.animated {
    animation: pulse 3s ease-in-out infinite;
}

.admin-container {
    max-width: 800px;
}

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

h1 {
    text-align: center;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #89CFF0, #FFB6C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
}

h2 {
    color: #555;
    margin: 20px 0 15px 0;
    font-size: 1.5em;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.announcement {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(137, 207, 240, 0.2), rgba(255, 182, 193, 0.2));
    border-radius: 20px;
    margin-bottom: 30px;
}

.big-text {
    font-size: 1.4em;
    font-weight: bold;
    color: #555;
    margin-bottom: 15px;
}

.baby-icon {
    text-align: center;
    font-size: 5em;
    animation: bounce 2s ease-in-out infinite;
}

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

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 1.05em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-size: 16px;
    transition: all 0.3s;
    background: white;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input:focus, select:focus {
    outline: none;
    border-color: #89CFF0;
    box-shadow: 0 0 15px rgba(137, 207, 240, 0.3);
}

.gender-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.gender-btn {
    flex: 1;
    padding: 20px;
    border: 3px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    text-align: center;
}

.gender-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gender-btn.selected-boy {
    background: linear-gradient(135deg, #89CFF0, #6BB6E0);
    border-color: #89CFF0;
    color: white;
    font-weight: bold;
}

.gender-btn.selected-girl {
    background: linear-gradient(135deg, #FFB6C1, #FF9EB0);
    border-color: #FFB6C1;
    color: white;
    font-weight: bold;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, #89CFF0, #FFB6C1);
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    font-size: 1.1em;
    display: none;
    animation: slideIn 0.5s;
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-box {
    background: rgba(137, 207, 240, 0.1);
    border-left: 4px solid #89CFF0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 0.95em;
    color: #555;
}

.unit {
    color: #999;
    font-size: 0.9em;
    margin-left: 5px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.range-hint {
    display: block;
    color: #999;
    font-size: 0.85em;
    margin-top: 5px;
    transition: color 0.3s;
}

input[type="number"].invalid {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

input[type="number"].invalid + .unit {
    color: #ff6b6b;
}

.form-group:has(input.invalid) .range-hint {
    color: #ff6b6b;
    font-weight: 600;
}

/* Admin Styles */
.invitations-list,
.bets-list {
    margin-top: 20px;
}

.invitation-item,
.bet-item {
    background: rgba(137, 207, 240, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #89CFF0;
}

.bet-item {
    border-left: 4px solid #FFB6C1;
}

.invitation-item div,
.bet-item div {
    margin: 5px 0;
}

.table-container {
    max-height: 500px;
    overflow-y: auto;
}

hr {
    border: none;
    border-top: 2px solid #ddd;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .gender-buttons {
        flex-direction: column;
    }
}