/* assets/css/style.css */

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px; /* Tamaño base para escritorio */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #313b48;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Contenedor principal del login */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Formulario de login */
.login-form {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px; /* Más redondeado para móviles */
    padding: 35px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px; /* Más grande */
    color: #fff;
}

/* Grupos de formulario */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 16px; /* Más legible */
}

.form-group input {
    width: 100%;
    padding: 16px 18px; /* Más padding para toques más fáciles */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 18px; /* Texto más grande en inputs */
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ff243f;
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 36, 63, 0.3); /* Efecto más pronunciado */
}

/* Botón de envío */
.btn {
    display: block;
    width: 100%;
    padding: 16px; /* Más alto para mejor tacto */
    border: none;
    border-radius: 8px;
    font-size: 18px; /* Texto más grande */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(to right, #910c22, #ff243f);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(to right, #7a0a1c, #e01e38);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(145, 12, 34, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
}

.alert-error {
    background-color: rgba(255, 36, 63, 0.2);
    border: 1px solid rgba(255, 36, 63, 0.4);
    color: #ff6b7f;
}

/* Enlace de registro */
.login-form p {
    text-align: center;
    margin-top: 25px;
    color: #b0b0b0;
    font-size: 16px;
}

.login-form a {
    color: #ff6b7f;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.login-form a:hover {
    color: #ff243f;
    text-decoration: underline;
}

/* Media Queries para Responsive */
@media (max-width: 480px) {
    html {
        font-size: 14px; /* Ajuste base para móviles */
    }
    
    body {
        padding: 15px;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .login-form {
        padding: 30px 25px;
        border-radius: 10px;
    }
    
    .login-form h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .btn {
        padding: 14px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    .alert {
        padding: 12px;
        font-size: 15px;
    }
    
    .login-form p {
        font-size: 15px;
    }
}

/* Para pantallas muy pequeñas (menos de 360px) */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }
    
    .login-form {
        padding: 25px 20px;
    }
    
    .login-form h2 {
        font-size: 24px;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
    
    .btn {
        padding: 12px;
    }
}

/* Para tablets y pantallas más grandes */
@media (min-width: 768px) {
    .login-container {
        max-width: 450px;
    }
    
    .login-form {
        padding: 40px 35px;
    }
}

/* ================================================ */
/* INICIO ESTILOS DASHBOARD */
/* ================================================ */

/* ================================================ */
/* ESTILOS DASHBOARD - ESTILO CPANEL */
/* ================================================ */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #313b48;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1a1f29 0%, #2d3645 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar-header {
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-header h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sidebar-header p {
    color: #b0b0b0;
    font-size: 14px;
    margin: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu li:last-child {
    border-bottom: none;
    margin-top: 20px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-left-color: #ff243f;
}

.sidebar-menu li.active a {
    background: rgba(255, 36, 63, 0.1);
    color: #fff;
    border-left-color: #ff243f;
}

.sidebar-menu .logout {
    color: #ff6b7f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 10px;
}

.sidebar-menu .logout:hover {
    background: rgba(255, 36, 63, 0.15);
    color: #ff243f;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.content-header {
    background: #fff;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.content-header h1 {
    color: #2d3645;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.user-info {
    color: #666;
    font-size: 14px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
}

/* Widgets Grid */
.widgets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
}

.widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.widget-icon {
    font-size: 40px;
    margin-right: 20px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #910c22, #ff243f);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.widget-content h3 {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-number {
    color: #2d3645;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    background: #fff;
    margin: 0 30px 30px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.quick-actions h2 {
    color: #2d3645;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Botones adicionales para dashboard */
.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Recent Activity */
.recent-activity {
    background: #fff;
    margin: 0 30px 30px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.recent-activity h2 {
    color: #2d3645;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff243f;
}

.activity-icon {
    font-size: 18px;
    background: rgba(255, 36, 63, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content p {
    color: #2d3645;
    margin: 0 0 5px 0;
    font-weight: 500;
}

.activity-time {
    color: #666;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design para Dashboard */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
    
    .widgets-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-bottom: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .sidebar-menu li {
        flex: 1;
        min-width: 120px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-menu li:last-child {
        border-right: none;
        margin-top: 0;
    }
    
    .sidebar-menu a {
        padding: 15px 10px;
        font-size: 13px;
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .sidebar-menu a:hover,
    .sidebar-menu li.active a {
        border-left: none;
        border-bottom-color: #ff243f;
    }
    
    .widgets-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
    }
    
    .quick-actions,
    .recent-activity {
        margin: 0 20px 20px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .content-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .content-header h1 {
        font-size: 24px;
    }
    
    .widget {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .widget-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .sidebar-menu {
        flex-direction: column;
    }
    
    .sidebar-menu li {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .sidebar-menu a {
        flex-direction: row;
        text-align: left;
    }
}

/* ================================================ */
/* FIN ESTILOS DASHBOARD */
/* ================================================ */