/* ====== RESET BÁSICO ====== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ====== GENERAL ====== */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: linear-gradient(135deg, #eef2f7, #d9e4f5);
    min-height: 100vh;
    color: #333;
}

/* ====== TOPBAR ====== */
.topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.logo {
    height: 45px;
}

.app-name {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

/* ====== CONTENEDORES ====== */
.card,
.container {
    background: #ffffff;
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ====== TITULOS ====== */
h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

/* ====== FORMULARIOS ====== */
input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #007bff;
}

/* ====== BOTONES ====== */
button,
.btn {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: #007bff;
    color: #fff;
    transition: transform .1s, box-shadow .1s;
}

button:hover,
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Botón fichar */
.fichar.entrada {
    background: #2ecc71;
}

.fichar.salida {
    background: #e74c3c;
}

/* ====== HEADER PANEL ====== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logout {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
}

/* ====== TABLAS ====== */
table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

table tr {
    border-bottom: 1px solid #eee;
}

table td,
table th {
    padding: 12px;
    text-align: center;
}

.entrada {
    color: #27ae60;
    font-weight: bold;
}

.salida {
    color: #c0392b;
    font-weight: bold;
}

/* ====== MENSAJES ====== */
.error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 10px;
}

.success {
    color: #27ae60;
    text-align: center;
    margin-bottom: 10px;
}

/* ====== LINKS ====== */
a {
    display: block;
    text-align: center;
    margin-top: 15px;
    text-decoration: none;
    color: #007bff;
    font-weight: 500;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {

    .card,
    .container {
        margin: 15px;
        padding: 20px;
    }

    table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
    }

    table td {
        display: flex;
        justify-content: space-between;
    }

    table td::before {
        content: attr(data-label);
        font-weight: bold;
    }

    .header {
        flex-direction: column;
        gap: 10px;
    }
}
