/* ======== ESTILOS ESPECÍFICOS PARA EL PANEL DE ADMINISTRACIÓN ======== */

/* Variables adicionales para admin */
:root {
    --admin-gradient: linear-gradient(135deg, var(--dark-blue) 0%, var(--mid-blue) 100%);
    --card-bg: rgba(30, 41, 59, 0.95);
    --form-bg: rgba(15, 23, 42, 0.7);
    --input-border: rgba(56, 189, 248, 0.3);
    --input-focus: rgba(56, 189, 248, 0.6);
    
    /* Variables para TheCodeCrack Solutions */
    --color-accent: #61DAFB;
    --color-primary-dark: hsl(217, 91%, 35%);
    --color-text-darck: #000000;
}

/* ======== BODY Y LAYOUT GENERAL ======== */
.admin-body {
    background: var(--admin-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('overlay.jpg') center/cover;
    opacity: 0.1;
    z-index: -1;
}

/* ======== HEADER ADMIN ======== */
.admin-header {
    padding: 15px 5%;
    background: rgba(12, 10, 62, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.admin-header .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header .navbar__logo-placeholder {
    height: 50px;
    opacity: 1;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid var(--input-border);
    transition: all var(--transition-speed) ease;
}

.back-home:hover {
    background-color: var(--primary-color);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

/* ======== MAIN LOGIN ======== */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: calc(100vh - 100px);
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(20px);
}

/* ======== HEADER DEL LOGIN ======== */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-logo img {
    width: 100%;
    height: auto;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-color);
    font-size: 1rem;
    opacity: 0.8;
}

/* ======== FORMULARIO ======== */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--light-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label i {
    color: var(--primary-color);
    width: 16px;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--form-bg);
    border: 2px solid var(--input-border);
    border-radius: 12px;
    color: var(--light-color);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    outline: none;
    font-family: var(--font-family);
}

.form-input:focus {
    border-color: var(--input-focus);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-input::placeholder {
    color: rgba(203, 213, 225, 0.5);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: color var(--transition-speed) ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-label {
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Botón */
.btn--full {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ======== FOOTER DEL LOGIN ======== */
.login-footer {
    margin-top: 30px;
    text-align: center;
}

.security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-color);
    font-size: 0.85rem;
    opacity: 0.7;
}

.security-note i {
    color: var(--primary-color);
}

/* ======== DASHBOARD STYLES ======== */
.dashboard-body {
    background: var(--admin-gradient);
    min-height: 100vh;
}

.dashboard-header {
    background: rgba(12, 10, 62, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-logo {
    height: 40px;
    width: auto;
}

.dashboard-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.dashboard-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    text-align: right;
}

.user-name {
    color: var(--light-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0.7;
}

.logout-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* ======== SIDEBAR Y NAVIGATION ======== */
.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

.sidebar {
    width: 280px;
    background: var(--card-bg);
    border-right: 1px solid rgba(56, 189, 248, 0.2);
    padding: 30px 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 5px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

/* ======== CONTENIDO PRINCIPAL ======== */
.main-content {
    flex: 1;
    padding: 30px;
    background: rgba(15, 23, 42, 0.3);
}

.content-header {
    margin-bottom: 30px;
}

.content-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.content-subtitle {
    color: var(--text-color);
    opacity: 0.8;
}

/* ======== CARDS Y COMPONENTES ======== */
.admin-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    margin-bottom: 25px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-color);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 25px;
        margin: 20px;
    }
    
    .login-title {
        font-size: 1.7rem;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 20px;
    }
    
    .dashboard-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
}

/* ======== ESTILOS PARA THECODECRAK SOLUTIONS ======== */
/* Glow effect for TheCodeCrack Solutions */
.credit-link {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: var(--color-accent);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    transform: translateY(-3px);
}

.credit-link:hover {
    color: var(--color-text-darck);
    background-color: transparent;
    box-shadow: none;
    transform: translateY(0px);
    border: 2px solid var(--color-accent);
}

.credit-link::after {
    content: '🚀';
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.credit-link:hover::after {
    transform: translateX(3px) translateY(-2px);
}

.credit-text {
    margin: 20px 0 10px 0;
    text-align: center;
    font-size: 12px;
    color: var(--light-color);
    opacity: 0.7;
}

/* Estilos para las clases similares a Tailwind CSS */
.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
}

.text-gray-500 {
    color: #6b7280;
}

.mt-10 {
    margin-top: 2.5rem;
}

.opacity-75 {
    opacity: 0.75;
}