/* 
 * LayerGaming Admin Panel - Style.css
 * Archivo CSS principal que combina todos los estilos
 */

/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/***************************
 * ESTILOS BASE
 ***************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/***************************
 * ESTILOS DE LOGIN
 ***************************/
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 380px;
    padding: 40px 30px;
    transition: transform 0.3s ease;
}

.login-container:hover {
    transform: translateY(-5px);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 5px;
}

.login-header p {
    color: #666;
    font-size: 14px;
    font-weight: 300;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-group i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: #6c63ff;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: none;
    background-color: #f5f8ff;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
    outline: none;
}

.input-group input:focus {
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.input-group input::placeholder {
    color: #aaa;
    font-weight: 300;
}

.remember {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.remember input {
    margin-right: 8px;
    accent-color: #6c63ff;
}

.remember label {
    font-size: 13px;
    color: #666;
    font-weight: 300;
}

button {
    width: 100%;
    padding: 15px;
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background-color: #5046e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

/* Animación suave para campos del formulario */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container .input-group:nth-child(1) { animation: fadeIn 0.4s forwards; }
.login-container .input-group:nth-child(2) { animation: fadeIn 0.5s forwards; }
.login-container .remember { animation: fadeIn 0.6s forwards; }
.login-container button { animation: fadeIn 0.7s forwards; }

/* Mensaje de error */
.error-message {
    background-color: #ffe5e5;
    color: #dc3545;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid #dc3545;
}

/***************************
 * ESTILOS DEL DASHBOARD
 ***************************/

/* Navbar Styles */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-logo h2 {
    font-weight: 600;
    color: #333;
    font-size: 1.5rem;
}

.navbar-logo span {
    color: #6c63ff;
}

.navbar-menu ul {
    display: flex;
    gap: 1.5rem;
}

.navbar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #666;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.navbar-menu li a:hover,
.navbar-menu li.active a {
    color: #6c63ff;
}

.navbar-menu li.active a {
    position: relative;
}

.navbar-menu li.active a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #6c63ff;
    border-radius: 2px;
}

.navbar-search .search-container {
    position: relative;
    width: 300px;
}

.navbar-search input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-right: 2.5rem;
    border: none;
    background-color: #f5f8ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    transition: all 0.3s;
    outline: none;
}

.navbar-search input:focus {
    box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
}

.navbar-search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c63ff;
    cursor: pointer;
    font-size: 0.9rem;
    width: auto;
    padding: 0;
    box-shadow: none;
}

.navbar-search button:hover {
    background: none;
    transform: translateY(-50%);
    box-shadow: none;
}

.navbar-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.profile-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
}

.logout-btn {
    color: #666;
    font-size: 1rem;
    transition: color 0.3s;
}

.logout-btn:hover {
    color: #6c63ff;
}

/* Main Content Styles */
.main-content {
    padding: 2rem;
    flex: 1;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.dashboard-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Stats Styles */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    background-color: #f0f4ff;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #6c63ff;
}

.stat-info h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 0.3rem;
}

.stat-info p {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

/* Section Styles */
.section {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.view-all {
    font-size: 0.85rem;
    color: #6c63ff;
    font-weight: 500;
    transition: color 0.3s;
}

.view-all:hover {
    color: #5046e5;
}

/* Activity Styles */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-icon {
    background-color: #f0f4ff;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.activity-icon i {
    font-size: 1.1rem;
    color: #6c63ff;
}

.activity-details h4 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.2rem;
}

.activity-details p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.75rem;
    color: #999;
}

/* Footer Styles */
.footer {
    background-color: white;
    padding: 1.2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.footer p {
    font-size: 0.85rem;
    color: #666;
}

/***************************
 * ESTILOS DE CLIENTES
 ***************************/

/* Estilos para las tarjetas de clientes */
.clientes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cliente-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.cliente-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cliente-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.cliente-icon {
    width: 45px;
    height: 45px;
    background-color: #f0f4ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.cliente-icon i {
    font-size: 1.4rem;
    color: #6c63ff;
}

.cliente-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.cliente-title p {
    font-size: 0.85rem;
    color: #777;
}

.cliente-info {
    margin-top: 10px;
}

.info-row {
    display: flex;
    margin-bottom: 10px;
}

.info-label {
    font-size: 0.85rem;
    color: #777;
    width: 35%;
    font-weight: 500;
}

.info-value {
    font-size: 0.9rem;
    color: #333;
    width: 65%;
    word-break: break-all;
}

.cliente-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
}

.tag-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #f0f4ff;
    color: #6c63ff;
}

.cliente-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #e0e0e0;
}

.action-btn i {
    font-size: 0.8rem;
    color: #555;
}

.edit-btn:hover i {
    color: #6c63ff;
}

.delete-btn:hover i {
    color: #dc3545;
}

/* Mensaje cuando no hay clientes */
.no-clientes {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.no-clientes i {
    font-size: 3rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.no-clientes h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.no-clientes p {
    font-size: 0.9rem;
    color: #777;
}

/* Animación de entrada para las tarjetas */
.cliente-card {
    animation: cardFadeIn 0.4s forwards;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/***************************
 * ESTILOS DE EXTRAS
 ***************************/

/* Estilos para las tarjetas de extras */
.extras-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.extra-card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.extra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.extra-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 15px;
}

.extra-icon {
    width: 45px;
    height: 45px;
    background-color: #fff3e5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.extra-icon i {
    font-size: 1.4rem;
    color: #ff9500;
}

.extra-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.extra-title p {
    font-size: 0.85rem;
    color: #777;
}

.extra-info {
    margin-top: 10px;
}

.extra-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: flex-end;
}

.extra-footer .tag-badge {
    background-color: #fff3e5;
    color: #ff9500;
}

.extra-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

/* Mensaje cuando no hay extras */
.no-extras {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.no-extras i {
    font-size: 3rem;
    color: #f0f0f0;
    margin-bottom: 15px;
}

.no-extras h3 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.no-extras p {
    font-size: 0.9rem;
    color: #777;
}

/***************************
 * ESTILOS DE REGISTRO Y EDICIÓN
 ***************************/

/* Estilos para el formulario */
.registro-container,
.editar-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header h2 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    color: #666;
    font-size: 0.85rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    outline: none;
}

.required-field::after {
    content: "*";
    color: #dc3545;
    margin-left: 4px;
}

.form-submit {
    margin-top: 30px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-primary {
    background-color: #6366F1;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 50%;
}

.btn-secondary {
    background-color: #e0e0e0;
    color: #333;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    flex: 1;
}

.btn-primary:hover {
    background-color: #5046e5;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

.btn-danger:hover {
    background-color: #c82333;
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 0.95rem;
}

.success {
    background-color: #e7f7ee;
    color: #28a745;
    border-left: 4px solid #28a745;
}

.error {
    background-color: #ffe5e5;
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

/***************************
 * ESTILOS DE ELIMINAR
 ***************************/

.eliminar-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.warning-icon {
    width: 70px;
    height: 70px;
    background-color: #fff3f3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.warning-icon i {
    font-size: 2rem;
    color: #dc3545;
}

.confirm-header {
    text-align: center;
    margin-bottom: 25px;
}

.confirm-header h2 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.confirm-header p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cliente-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 8px;
}

.info-item:last-child {
    margin-bottom: 0;
}

/***************************
 * RESPONSIVE STYLES
 ***************************/

@media (max-width: 1024px) {
    .navbar {
        padding: 0.7rem 1.5rem;
    }
    
    .navbar-search .search-container {
        width: 220px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .navbar-menu,
    .navbar-search {
        order: 2;
        width: 100%;
    }
    
    .navbar-search .search-container {
        width: 100%;
    }
    
    .stats-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .navbar-menu ul {
        gap: 1rem;
    }
    
    .navbar-profile {
        margin-left: auto;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}