/* ============================================================================
   BETTERSOFTWARE ADMIN PANEL - MAIN STYLESHEET
   ============================================================================ */

/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(52, 152, 219, 0.6) rgba(44, 62, 80, 0.3);
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fondo Animado */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Ocultar fondo animado en páginas del panel admin */
.dashboard-container .animated-background,
.dashboard-container ~ .animated-background,
body:has(.dashboard-container) .animated-background {
    display: none !important;
}

/* Ocultar elementos flotantes en páginas del panel admin */
.dashboard-container .floating-element,
.dashboard-container ~ .floating-element,
body:has(.dashboard-container) .floating-element {
    display: none !important;
}

.floating-element {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    border-radius: 4px;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.floating-element:nth-child(odd) {
    animation-direction: reverse;
    animation-duration: 25s;
}

.floating-element:nth-child(3n) {
    animation-duration: 30s;
    background: linear-gradient(45deg, var(--warning-color), var(--danger-color));
}

.floating-element:nth-child(4n) {
    animation-duration: 35s;
    background: linear-gradient(45deg, var(--success-color), var(--primary-color));
}

.element-1 { width: 60px; height: 60px; top: 10%; left: 10%; animation-delay: 0s; }
.element-2 { width: 40px; height: 40px; top: 20%; right: 15%; animation-delay: 2s; }
.element-3 { width: 80px; height: 80px; top: 60%; left: 5%; animation-delay: 4s; }
.element-4 { width: 50px; height: 50px; top: 30%; right: 30%; animation-delay: 6s; }
.element-5 { width: 70px; height: 70px; bottom: 20%; left: 20%; animation-delay: 8s; }
.element-6 { width: 45px; height: 45px; top: 70%; right: 10%; animation-delay: 10s; }
.element-7 { width: 55px; height: 55px; bottom: 40%; right: 25%; animation-delay: 12s; }
.element-8 { width: 65px; height: 65px; top: 15%; left: 50%; animation-delay: 14s; }
.element-9 { width: 35px; height: 35px; bottom: 60%; left: 40%; animation-delay: 16s; }
.element-10 { width: 75px; height: 75px; top: 50%; right: 5%; animation-delay: 18s; }
.element-11 { width: 42px; height: 42px; bottom: 10%; right: 40%; animation-delay: 20s; }
.element-12 { width: 58px; height: 58px; top: 80%; left: 30%; animation-delay: 22s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
        border-radius: 4px;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* ============================================================================
   LOGIN PAGE STYLES
   ============================================================================ */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    min-width: 280px;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.6s ease-out;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-section {
    margin-bottom: 20px;
}

.main-title {
    font-family: 'MinigapFont', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.brand-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.sideraltech-brand {
    font-family: 'SideraltechFont', sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    color: var(--text-primary);
}

.login-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Formulario de Login */
.login-form {
    margin-bottom: 25px;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-warning i {
    font-size: 1.1rem;
    color: #f59e0b;
}

.login-warning p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.login-error.hidden {
    display: none;
}

@keyframes error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-shake {
    animation: error-shake 0.5s ease-in-out;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-group label i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Password input container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 30px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.login-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.forgot-link,
.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.forgot-link:hover,
.back-link:hover {
    color: var(--primary-color);
}

/* Login info styles */
.login-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: var(--success-color);
    width: 16px;
}

.info-item strong {
    color: var(--text-primary);
}

/* Success message styles */
.login-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.login-success.hidden {
    display: none;
}

/* Select input styles */
.input-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* ============================================================================
   DASHBOARD STYLES
   ============================================================================ */

.dashboard-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
}

.main-content {
    position: relative;
    z-index: 2;
    flex: 1;
    margin-left: 280px;
    padding: 20px;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 20px 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.sidebar-brand h2 {
    font-family: 'MinigapFont', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* Estilos para el logo de la marca */
.brand-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    transition: all 0.3s ease;
    order: -1; /* Coloca el logo primero */
}

/* Sección de usuario centrada */
.sidebar-user-section {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-user i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(59, 130, 246, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.sidebar-user span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Botón de flecha para cambiar contraseña */
.user-arrow-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.user-arrow-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    transform: scale(1.1);
}

.user-arrow-btn:active {
    transform: scale(0.95);
}

/* Navegación del sidebar */
.nav-menu {
    flex: 1;
    padding: 0;
}

.nav-item {
    margin-bottom: 5px;
    list-style: none;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Sidebar Navigation Links */
.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px 10px;
    min-height: 44px;
    box-sizing: border-box;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: var(--glass-bg);
    color: var(--text-primary);
    transform: translateX(5px);
    border-radius: 15px;
    padding: 12px 16px;
}

.sidebar .nav-link i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
}

.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Sección de logout separada abajo */
.sidebar-logout-section {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Ícono de usuario pequeño */
.user-icon-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 0.9rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-icon-small:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.user-icon-small:active {
    transform: scale(0.95);
}

/* Botón de logout */
.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

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

.logout-btn i {
    font-size: 1rem;
}

/* Contenedor del menú de usuario */
.user-menu-container {
    position: relative;
}

/* Menú desplegable del usuario */
.user-dropdown-menu {
    position: fixed;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 200px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header del menú desplegable */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px 12px 0 0;
}

.user-dropdown-header i {
    width: 32px;
    height: 32px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.user-dropdown-header span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Acciones del menú desplegable */
.user-dropdown-actions {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.content-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Header User Section */
.header-user-section {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-icon-header {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.user-icon-header:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.user-icon-header:active {
    transform: translateY(0);
}

.user-icon-header i {
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.user-icon-header:hover i {
    color: var(--primary-color);
}

/* Tooltip para el ícono del usuario */
.user-icon-header[data-tooltip] {
    position: relative;
}

.user-icon-header[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
}

.user-icon-header[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-bottom-color: var(--dark-bg);
    z-index: 1000;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Cards */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Tables */
.table-container {
    overflow-x: auto;
    position: relative;
    z-index: 1;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: rgba(59, 130, 246, 0.1);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.table td {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Status badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        transition: width 0.3s ease;
    }
    
    .sidebar-brand h2,
    .sidebar .nav-link span,
    .logout-btn span,
    .user-dropdown-header span {
        display: none;
    }
    
    .sidebar-brand {
        justify-content: center;
        padding: 15px 10px;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px 10px;
        margin: 5px 5px;
    }
    
    .nav-link i {
        font-size: 1.2rem;
        margin-right: 0;
    }
    
    .sidebar-logout-section {
        padding: 15px 10px;
        align-items: center;
    }
    
    .user-icon-small {
        width: 35px;
        height: 35px;
        margin: 0 auto 10px auto;
    }
    
    .logout-btn {
        justify-content: center;
        padding: 10px;
        width: 60px;
    }
    
    .logout-btn i {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
    
    /* Dropdown específico para sidebar colapsado */
    .user-dropdown-menu {
        left: 100%;
        bottom: auto;
        top: 0;
        margin-left: 10px;
        margin-bottom: 0;
        min-width: 180px;
    }
    
    .user-dropdown-header {
        padding: 12px;
    }
    
    .user-dropdown-header i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .dropdown-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Tooltips para elementos colapsados */
    .sidebar .nav-link:hover::after,
    .logout-btn:hover::after,
    .user-icon-small:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        color: var(--text-primary);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 10000;
        margin-left: 10px;
        box-shadow: var(--shadow);
    }
}

@media (min-width: 1025px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar-brand h2,
    .sidebar .nav-link span,
    .logout-btn span,
    .user-dropdown-header span {
        display: block;
    }
    
    .sidebar-brand {
        justify-content: flex-start;
        padding: 20px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .nav-link {
        justify-content: flex-start;
        padding: 15px 20px;
        margin: 5px 10px;
    }
    
    .nav-link i {
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    .sidebar-logout-section {
        padding: 20px;
        align-items: stretch;
    }
    
    .user-icon-small {
        width: 40px;
        height: 40px;
        margin: 0 0 15px 0;
    }
    
    .logout-btn {
        justify-content: flex-start;
        padding: 12px 20px;
        width: 100%;
    }
    
    .logout-btn i {
        margin-right: 12px;
    }
    
    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
        max-width: 100%;
        width: calc(100% - 20px);
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .login-info {
        margin: 15px 0;
        padding: 12px;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
}

/* Estilos responsivos adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 25px 15px;
        margin: 5px;
        width: calc(100% - 10px);
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
    
    .input-group label {
        font-size: 0.9rem;
    }
    
    .input-group input,
    .input-group select {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .login-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .login-info {
        margin: 12px 0;
        padding: 10px;
    }
    
    .info-item {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .login-links {
        gap: 10px;
    }
    
    .forgot-link,
    .back-link {
        font-size: 0.8rem;
    }
}

/* Mobile menu toggle (legacy) */
.mobile-menu-toggle {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   DASHBOARD SPECIFIC STYLES
   ============================================================================ */

.content-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Activity List */
.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.activity-content h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.activity-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
}

/* Companies List */
.companies-list {
    max-height: 300px;
    overflow-y: auto;
}

.company-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.company-item:last-child {
    border-bottom: none;
}

.company-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--glass-bg);
}

.company-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.company-info p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.quick-action-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    color: var(--primary-color);
}

.quick-action-btn i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.quick-action-btn span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow);
    max-width: 400px;
    min-width: 300px;
    word-wrap: break-word;
    overflow: hidden;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

/* Confirm Modal */
.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.confirm-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.confirm-content h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.confirm-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    /* Notificaciones responsivas */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* ============================================================================
   MANAGEMENT PAGES STYLES
   ============================================================================ */

/* Search and Filters */
.search-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-filters .search-box {
    flex: 1;
    min-width: 200px;
}

.search-filters .filters {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-filters .filters select {
    min-width: 150px;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 10px;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
}

/* Alert Styles */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

.alert-info i {
    color: #3b82f6;
    margin-top: 2px;
}

.alert code {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

/* Form Help */
.form-help {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-style: italic;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

/* Status badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        transition: width 0.3s ease;
    }
    
    .sidebar-brand h2,
    .sidebar .nav-link span,
    .logout-btn span,
    .user-dropdown-header span {
        display: none;
    }
    
    .sidebar-brand {
        justify-content: center;
        padding: 15px 10px;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px 10px;
        margin: 5px 5px;
    }
    
    .nav-link i {
        font-size: 1.2rem;
        margin-right: 0;
    }
    
    .sidebar-logout-section {
        padding: 15px 10px;
        align-items: center;
    }
    
    .user-icon-small {
        width: 35px;
        height: 35px;
        margin: 0 auto 10px auto;
    }
    
    .logout-btn {
        justify-content: center;
        padding: 10px;
        width: 60px;
    }
    
    .logout-btn i {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 80px;
        width: calc(100% - 80px);
        transition: margin-left 0.3s ease, width 0.3s ease;
    }
    
    /* Dropdown específico para sidebar colapsado */
    .user-dropdown-menu {
        left: 100%;
        bottom: auto;
        top: 0;
        margin-left: 10px;
        margin-bottom: 0;
        min-width: 180px;
    }
    
    .user-dropdown-header {
        padding: 12px;
    }
    
    .user-dropdown-header i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .dropdown-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Tooltips para elementos colapsados */
    .sidebar .nav-link:hover::after,
    .logout-btn:hover::after,
    .user-icon-small:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        border: 1px solid var(--glass-border);
        color: var(--text-primary);
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 10000;
        margin-left: 10px;
        box-shadow: var(--shadow);
    }
}

@media (min-width: 1025px) {
    .sidebar {
        width: 280px;
    }
    
    .sidebar-brand h2,
    .sidebar .nav-link span,
    .logout-btn span,
    .user-dropdown-header span {
        display: block;
    }
    
    .sidebar-brand {
        justify-content: flex-start;
        padding: 20px;
    }
    
    .brand-logo {
        width: 50px;
        height: 50px;
    }
    
    .nav-link {
        justify-content: flex-start;
        padding: 15px 20px;
        margin: 5px 10px;
    }
    
    .nav-link i {
        font-size: 1.1rem;
        margin-right: 12px;
    }
    
    .sidebar-logout-section {
        padding: 20px;
        align-items: stretch;
    }
    
    .user-icon-small {
        width: 40px;
        height: 40px;
        margin: 0 0 15px 0;
    }
    
    .logout-btn {
        justify-content: flex-start;
        padding: 12px 20px;
        width: 100%;
    }
    
    .logout-btn i {
        margin-right: 12px;
    }
    
    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
        max-width: 100%;
        width: calc(100% - 20px);
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .content-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .login-info {
        margin: 15px 0;
        padding: 12px;
    }
    
    .info-item {
        font-size: 0.8rem;
    }
}

/* Estilos responsivos adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        padding: 25px 15px;
        margin: 5px;
        width: calc(100% - 10px);
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
    }
    
    .input-group label {
        font-size: 0.9rem;
    }
    
    .input-group input,
    .input-group select {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .login-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .login-info {
        margin: 12px 0;
        padding: 10px;
    }
    
    .info-item {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }
    
    .login-links {
        gap: 10px;
    }
    
    .forgot-link,
    .back-link {
        font-size: 0.8rem;
    }
}

/* Mobile menu toggle (legacy) */
.mobile-menu-toggle {
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.mobile-menu-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================================
   DDNS WIDGET - ESTILOS BÁSICOS
   ============================================================================ */

/* Grid de estado para DDNS */
.ddns-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.ddns-status-grid .status-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
}

.ddns-status-grid .status-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ddns-status-grid .status-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Badges de estado */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.status-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.status-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Información adicional */
.ddns-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.ddns-info .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.ddns-info .info-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .ddns-status-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .ddns-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================================
   MODAL INFORMATIVO Y BOTÓN DE AYUDA
   ============================================================================ */

.btn-help {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: 8px;
    font-size: 14px;
}

.btn-help:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.info-modal {
    max-width: 800px !important;
    max-height: 90vh;
    overflow-y: auto;
}

.info-modal .modal-header h3 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-modal .modal-header h3 i {
    font-size: 1.2em;
}

.info-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1em;
}

.info-section h4 i {
    font-size: 1.2em;
}

.info-section p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}

.info-section ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.info-section ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.info-section pre {
    background: var(--dark-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
    margin: 10px 0;
}

.info-section code {
    background: var(--dark-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

.info-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive para el modal informativo */
@media (max-width: 768px) {
    .info-modal {
        max-width: 95vw !important;
        margin: 10px;
    }
    
    .info-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .info-section h4 {
        font-size: 1em;
    }
    
    .info-section pre {
        font-size: 0.8em;
        padding: 10px;
    }
}
  