/* =================== RESET =================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: url("../imagenes/fondo.jpg") no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* =================== HEADER =================== */
header {
    background: #4CAF50;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.3s;
}

nav a:hover {
    background: white;
    color: #4CAF50;
}

/* =================== NOTIFICACIONES =================== */
.notifications {
    position: relative;
    display: inline-block;
}

.notifications .bell {
    font-size: 20px;
    cursor: pointer;
}

.notifications .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}

.notifications .dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #fff;
    color: #000;
    min-width: 220px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 6px;
    padding: 10px;
    z-index: 1000;
}

.notifications .dropdown.show {
    display: block;
}

.notifications .dropdown a:hover {
    text-decoration: underline;
}

/* =================== CONTENEDOR =================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =================== FORMULARIOS =================== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
}

button {
    background: #4CAF50;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

button:hover {
    background: #45a049;
}

/* =================== ADMIN PANEL =================== */
.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.admin-btn {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    margin: 5px;
    display: inline-block;
    border: 2px solid transparent;
}

.admin-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Colores específicos */
.admin-btn[href*="raffles"] { background: #007bff; }
.admin-btn[href*="raffles"]:hover { background: #0056b3; }

.admin-btn[href*="create"] { background: #ffc107; color: #000; }
.admin-btn[href*="create"]:hover { background: #e0a800; }

.admin-btn[href*="backup"] { background: #28a745; }
.admin-btn[href*="backup"]:hover { background: #218838; }

.admin-btn[href*="index"] { background: #6c757d; }
.admin-btn[href*="index"]:hover { background: #545b62; }

/* Estadísticas */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
}

/* Estados */
.status-active { background: #d4edda; color: #155724; padding: 4px 8px; border-radius: 3px; }
.status-draft { background: #fff3cd; color: #856404; padding: 4px 8px; border-radius: 3px; }
.status-closed { background: #d1ecf1; color: #0c5460; padding: 4px 8px; border-radius: 3px; }
.status-cancelled { background: #f8d7da; color: #721c24; padding: 4px 8px; border-radius: 3px; }

/* Backup estado */
.backup-status {
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
}
.backup-good { background: #d4edda; color: #155724; }
.backup-warning { background: #fff3cd; color: #856404; }
.backup-danger { background: #f8d7da; color: #721c24; }

/* =================== BOTÓN COMPRAR BOLETOS =================== */
.btn-comprar {
    display: inline-block;
    background: linear-gradient(135deg, #28a745, #218838);
    color: #fff;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-comprar:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-comprar:active {
    transform: translateY(0);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}



/* =================== FOOTER =================== */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Hace que el body ocupe toda la altura */
}

main {
    flex: 1; /* Empuja el footer hacia abajo */
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto; /* Se mantiene abajo */
}






