/* Base styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-image: url('/static/images/background.jpg') !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Splash and Login Pages */
.splash-container, .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.splash-content, .login-box {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
}

.splash-logo, .login-logo {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    display: block;
}

.splash-title {
    font-size: 3.5rem;
    color: #2c3e50;
    margin: 0;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.splash-subtitle {
    font-size: 1.5rem;
    color: #7f8c8d;
    margin: 1rem 0 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

.header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #2c3e50;
}

.header p {
    margin: 0.5rem 0 0;
    color: #7f8c8d;
    font-size: 1.2rem;
}

/* Typography */
h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

h2 {
    color: #34495e;
    margin: 15px 0;
}

h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    color: #2c3e50;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-section {
    background: rgba(255, 255, 255, 0.8);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"],
input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 28px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 5px;
}

.button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

.delete-button {
    background-color: #dc3545;
}

.delete-button:hover {
    background-color: #c82333;
}

.secondary {
    background-color: #6c757d;
}

.secondary:hover {
    background-color: #5a6268;
}

/* Game Dashboard */
.countdown-timer {
    text-align: center;
    padding: 20px;
    background: rgba(144, 238, 144, 0.9);
    color: #2c3e50;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.countdown-timer h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.countdown, .large-number {
    font-size: 4rem;
    font-weight: bold;
    font-family: monospace;
    margin: 15px 0;
    color: #2c3e50;
}

/* Player Status */
.status-card, .game-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rules {
    background: rgba(227, 242, 253, 0.95);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(100, 181, 246, 0.3);
}

.rules p {
    margin: 15px 0;
    line-height: 1.8;
    font-size: 1.1em;
    text-align: justify;
}

.report-kill {
    background: rgba(255, 243, 205, 0.95);
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid rgba(255, 238, 186, 0.5);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.eliminated {
    text-align: center;
    padding: 40px;
    background: rgba(255, 235, 238, 0.95);
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid rgba(222, 226, 230, 0.5);
}

th {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

/* Kill Feed */
.kill-feed {
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    margin: 20px 0;
}

.kill-entry {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.victim {
    color: #dc3545;
    font-weight: bold;
}

.killer {
    color: #28a745;
    font-weight: bold;
}

/* Status Indicators */
.status-active {
    color: #28a745;
    font-weight: bold;
}

.status-eliminated {
    color: #dc3545;
    font-weight: bold;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-error {
    color: #721c24;
    background-color: rgba(248, 215, 218, 0.9);
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: rgba(212, 237, 218, 0.9);
    border-color: #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .splash-title {
        font-size: 2.5rem;
    }
    
    .splash-subtitle {
        font-size: 1.2rem;
    }
    
    .countdown, .large-number {
        font-size: 2.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .rules p {
        font-size: 1em;
    }
    
    table {
        display: block;
        overflow-x: auto;
    }
}