/* =========================================
   1. VARIABLES Y RESET
   ========================================= */
:root {
    --primary: #005aab;
    --primary-dark: #004585;
    --success: #4CAF50;
    --success-dark: #3d8b40;
    --danger: #f44336;
    --warning: #e67e22;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --gray-100: #f9f9f9;
    --gray-300: #ccc;
    --text-main: #333;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    caret-color: transparent;
}


#userInfo {
    letter-spacing: 0.8px;
}

/* =========================================
   2. COMPONENTES REUTILIZABLES (EL "LOOK" LOGIN)
   ========================================= */

/* Contenedor tipo Tarjeta (usado en login y formularios) */
.card-container {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0.95;
}

.modal-content-wide {
    max-width: 800px;
    /* Para formularios más grandes */
}

/* Tipografía */
h1, h2, h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Inputs Unificados */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(0, 90, 171, 0.2);
}

input, textarea {
    -webkit-caret-color: var(--primary); /* Lo muestra solo donde debe: azul y profesional */
    caret-color: var(--primary);
}

/* Botones Unificados */
.btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary) !important;
    color: white !important;
    border-radius: 0 !important;
    /* Que no tenga bordes redondeados internos */
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

/* =========================================
   3. LAYOUT ESPECÍFICO (LOGIN / CAMBIO CLAVE)
   ========================================= */
.auth-screen {
    background: url('/Front/img/fondoprincipal.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-logo {
    width: 100px;
    display: block;
    margin: 0 auto 15px;
}

.mensaje {
    background-color: azure;
    padding: 9px;
    font-size: 0.7rem;
    color: orangered;
    text-align: justify;
    margin-top: 0.7rem;
}

/* =========================================
   4. ESTRUCTURA DASHBOARD (SIDEBAR & TOPBAR)
   ========================================= */
.wrapper {
    display: flex;
}

.sidebar {
    width: 230px;
    height: 100vh;
    background: var(--white);
    position: fixed;
    left: 0;
    top: 0;
    transition: all 0.3s ease;
    z-index: 1100;
    border-right: 1px solid var(--gray-300);
}

.sidebar__link {
    text-decoration: none !important;
    color: var(--text-main);
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: background 0.2s;
}

.sidebar__link:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.sidebar__link i {
    width: 25px;
    font-size: 1.1rem;
}

.main-content {
    flex: 1;
    margin-left: 230px;
    padding: 80px 30px 30px; /* Más aire en los bordes */
    width: calc(100% - 230px);
    box-sizing: border-box;
}
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 230px;
    height: 60px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Estado cerrado de sidebar */
.sidebar.closed {
    left: -230px;
}

.main-content.expanded {
    margin-left: 0;
}

.topbar.expanded {
    left: 0;
    width: 100%;
}

/* =========================================
   5. TABLAS RESPONSIVAS
   ========================================= */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-300);
}

/* =========================================
   6. SECCIÓN TALLER (GRID ESPECIAL)
   ========================================= */
.taller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.panel-taller {
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
