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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #0A0B0E;
    background-attachment: fixed;
    color: #FFFFFF;
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0A0B0E;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loading-logo {
    max-width: 250px;
    max-height: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(191, 23, 47, 0.2);
    border-top-color: #BF172F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    margin-bottom: 40px;
    padding: 30px 20px;
    background: rgba(10, 11, 14, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(191, 23, 47, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}


.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-container a:hover {
    opacity: 0.8;
}

.logo {
    max-width: 200px;
    max-height: 100px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.admin-link {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 24px;
    background: #BF172F;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(191, 23, 47, 0.3);
}

.admin-link:hover {
    background: #d41d35;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(191, 23, 47, 0.5);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section {
    background: rgba(10, 11, 14, 0.8);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 25px;
}

section h2 {
    color: #FFFFFF;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    border-bottom: 3px solid #BF172F;
    padding-bottom: 10px;
}

.form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group input {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    background-color: rgba(10, 11, 14, 0.6);
    border: 2px solid rgba(191, 23, 47, 0.5);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #BF172F;
    background-color: rgba(10, 11, 14, 0.8);
    box-shadow: 0 0 0 3px rgba(191, 23, 47, 0.2);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input[type="date"] {
    flex: 1;
    min-width: 200px;
    padding: 14px 18px;
    background-color: rgba(10, 11, 14, 0.6);
    border: 2px solid rgba(191, 23, 47, 0.5);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input[type="date"]:focus {
    outline: none;
    border-color: #BF172F;
    background-color: rgba(10, 11, 14, 0.8);
    box-shadow: 0 0 0 3px rgba(191, 23, 47, 0.2);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #BF172F;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #d41d35;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(191, 23, 47, 0.5);
}

.btn-secondary {
    background-color: rgba(191, 23, 47, 0.2);
    color: #FFFFFF;
    border: 2px solid rgba(191, 23, 47, 0.5);
}

.btn-secondary:hover {
    background-color: rgba(191, 23, 47, 0.4);
    border-color: #BF172F;
    transform: translateY(-2px);
}

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

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.5);
}

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

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.5);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.participant-count {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(191, 23, 47, 0.2);
    border: 2px solid rgba(191, 23, 47, 0.5);
    border-radius: 12px;
    font-size: 1rem;
}

.count-label {
    color: #FFFFFF;
    font-weight: 500;
}

.count-value {
    color: #BF172F;
    font-weight: 700;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(191, 23, 47, 0.5);
}

.header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.participant-card {
    background: rgba(191, 23, 47, 0.1);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.participant-card:hover {
    background: rgba(191, 23, 47, 0.2);
    border-color: #BF172F;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(191, 23, 47, 0.3);
}

.participant-id {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    user-select: none;
    font-weight: 500;
}

.participant-name {
    font-weight: 700;
    color: #FFFFFF;
    flex: 1;
    font-size: 1.05rem;
}

.winner-card {
    border-color: rgba(40, 167, 69, 0.5);
    background: rgba(40, 167, 69, 0.1);
}

.winner-card:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.2);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

/* Admin Panel Stilleri */
.info-text {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    font-style: italic;
}

/* İstatistikler Stilleri */
.statistics-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    background: rgba(191, 23, 47, 0.1);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.stat-value {
    color: #FFFFFF;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.random-stat {
    color: #28a745;
}

.manual-stat {
    color: #ffc107;
}

.winner-stat {
    color: #BF172F;
}

.stat-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-style: italic;
}

/* Badge Stilleri */
.badge-random {
    display: inline-block;
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.badge-manual {
    display: inline-block;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.badge-winner {
    display: inline-block;
    background: rgba(191, 23, 47, 0.2);
    color: #BF172F;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid rgba(191, 23, 47, 0.5);
}

.participants-list-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.participant-card-admin {
    background: rgba(191, 23, 47, 0.1);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.participant-card-admin:hover {
    background: rgba(191, 23, 47, 0.2);
    border-color: #BF172F;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(191, 23, 47, 0.3);
}

.participant-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.participant-id-admin {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.participant-name-admin {
    font-weight: 700;
    color: #FFFFFF;
    font-size: 1.15rem;
}

.btn-delete {
    padding: 10px 20px;
    background-color: rgba(220, 53, 69, 0.2);
    color: #FFFFFF;
    border: 2px solid rgba(220, 53, 69, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.btn-delete:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.5);
}

/* Geri Sayım Stilleri */
.countdown-section {
    background: rgba(10, 11, 14, 0.8);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.countdown-number {
    font-size: 4rem;
    font-weight: 700;
    color: #BF172F;
    text-shadow: 0 0 20px rgba(191, 23, 47, 0.5);
    font-family: 'Courier New', monospace;
    min-width: 80px;
    background: rgba(191, 23, 47, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(191, 23, 47, 0.3);
}

.countdown-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-separator {
    font-size: 3rem;
    color: #BF172F;
    font-weight: 700;
    margin: 0 10px;
}

.countdown-info {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
}

/* Katılım Kontrolü Stilleri */
.check-section {
    background: rgba(10, 11, 14, 0.8);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

/* Çekiliş Şartları Stilleri */
.rules-section {
    background: rgba(10, 11, 14, 0.8);
    border: 1px solid rgba(191, 23, 47, 0.3);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.rules-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(191, 23, 47, 0.1);
    border: 1px solid rgba(191, 23, 47, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rule-item:hover {
    background: rgba(191, 23, 47, 0.15);
    border-color: rgba(191, 23, 47, 0.4);
    transform: translateX(5px);
}

.rule-item.highlight {
    background: rgba(191, 23, 47, 0.2);
    border: 2px solid #BF172F;
    border-left: 5px solid #BF172F;
}

.rule-icon {
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.rule-text {
    color: #FFFFFF;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.rule-item.highlight .rule-text {
    font-size: 1.1rem;
    color: #FFFFFF;
}

.check-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.check-result.show {
    display: block;
}

.check-result.success {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
}

.check-result.error {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
}

.check-success {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.check-error {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.2rem;
}

.check-info {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 8px 0;
}

.check-info strong {
    color: #FFFFFF;
    font-weight: 700;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.empty-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 40px;
    grid-column: 1 / -1;
    font-size: 1.1rem;
}

.winner-display {
    margin-top: 20px;
    padding: 25px;
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    border-radius: 15px;
    text-align: center;
    display: none;
}

.winner-display.show {
    display: block;
    animation: winnerPulse 0.5s ease;
}

@keyframes winnerPulse {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.winner-display h3 {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.winner-display p {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 600;
}

.winner-display .winner-id {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

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

    .form-group input,
    .btn {
        width: 100%;
    }

    .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    .participants-list {
        grid-template-columns: 1fr;
    }

    .countdown-number {
        font-size: 2.5rem;
        min-width: 60px;
        padding: 15px;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }
}
