/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Theme
 *
 * This file allows you to customize the theme colors and styles for the entire Nexus template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    /* Background neutral colors */
    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    /* Additional colors */
    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

    /* Other */
    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ========================================
   ORDERFORM MODERN - ESTILOS PERSONALIZADOS
   ======================================== */

/* Sidebar Categories - Dropdown Moderno */
.sidebar-collapsed {
    margin-bottom: 32px;
}

.sidebar-collapsed .panel {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.sidebar-collapsed .panel-heading,
.sidebar-collapsed .card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}

.sidebar-collapsed .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

.sidebar-collapsed .panel-body,
.sidebar-collapsed .card-body {
    padding: 16px 20px;
}

/* Dropdown Select Moderno */
.sidebar-collapsed select.form-control,
.sidebar-collapsed select.custom-select,
select.form-control,
select.custom-select {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #171717;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23171717' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: all 0.15s ease;
}

.sidebar-collapsed select.form-control:focus,
.sidebar-collapsed select.custom-select:focus,
select.form-control:focus,
select.custom-select:focus {
    outline: none;
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.1);
}

.sidebar-collapsed select.form-control:hover,
.sidebar-collapsed select.custom-select:hover,
select.form-control:hover,
select.custom-select:hover {
    border-color: #d4d4d4;
}

/* Categorías como lista sin bullets */
.sidebar-collapsed ul.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-collapsed ul.list-group li {
    padding: 10px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.15s ease;
}

.sidebar-collapsed ul.list-group li:hover {
    background: #fafafa;
    border-color: #d4d4d4;
}

.sidebar-collapsed ul.list-group li a {
    color: #171717;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.sidebar-collapsed ul.list-group li.active {
    background: #f0fdf4;
    border-color: #15803d;
}

.sidebar-collapsed ul.list-group li.active a {
    color: #15803d;
}

/* Currency Selector */
.sidebar-collapsed .pull-right,
.sidebar-collapsed .float-right {
    margin-top: 16px;
    text-align: right;
}

/* Header en orderforms */
.header-lined {
    text-align: center;
    margin-bottom: 48px;
}

.header-lined h1 {
    font-size: 36px;
    font-weight: 700;
    color: #171717;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.header-lined p {
    font-size: 17px;
    color: #737373;
    margin: 0;
}

/* Products Grid en orderforms */
.products .row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
}

.products .product {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0 !important;
}

.products .product:hover {
    border-color: #15803d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.products .product header {
    margin-bottom: 16px;
}

.products .product header span {
    font-size: 18px;
    font-weight: 600;
    color: #171717;
}

.products .product .product-desc {
    font-size: 14px;
    color: #737373;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.products .product .product-pricing {
    margin-bottom: 16px;
}

.products .product .product-pricing .price {
    font-size: 28px;
    font-weight: 700;
    color: #171717;
    display: block;
}

.products .product footer {
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.products .product .btn-order-now,
.products .product .btn-success {
    padding: 10px 20px;
    background: #15803d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.products .product .btn-order-now:hover,
.products .product .btn-success:hover {
    background: #166534;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .products .row {
        grid-template-columns: 1fr;
    }
    
    .header-lined h1 {
        font-size: 28px;
    }
}

/* ========================================
   MÓDULOS DE TERCEROS - COMPATIBILIDAD
   ======================================== */

/* Estilos para módulos de servidor (VPS, Cloud, etc.) */
.product-details-tab-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

/* Asegurar que los modales funcionen (sidebar z:100, header z:50) */
.modal-backdrop {
    z-index: 10000 !important;
}

.modal {
    z-index: 10001 !important;
}

.modal .modal-dialog {
    margin-top: 80px;
}

.modal .modal-content {
    border-radius: 12px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.modal .modal-header {
    background: #fafafa;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 20px;
}

.modal .modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #171717;
    font-family: 'Inter', -apple-system, sans-serif;
}

.modal .modal-body {
    padding: 20px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
}

.modal .modal-footer {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    padding: 12px 20px;
}

.modal .close {
    opacity: 0.4;
    transition: opacity 0.15s;
}

.modal .close:hover {
    opacity: 0.8;
}

/* 2FA setup modal styling */
.twofa-setup .modal-body input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', -apple-system, sans-serif;
    text-align: center;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.15s;
}

.twofa-setup .modal-body input[type="text"]:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.twofa-setup .btn-primary,
.twofa-setup .btn-success {
    background: #15803d !important;
    border-color: #15803d !important;
    border-radius: 6px !important;
    font-family: 'Inter', -apple-system, sans-serif;
    font-weight: 600;
    font-size: 13px;
}

.twofa-setup .btn-primary:hover,
.twofa-setup .btn-success:hover {
    background: #166534 !important;
    border-color: #166534 !important;
}

.twofa-setup .btn-danger,
.twofa-setup .btn-default {
    border-radius: 6px !important;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
}

/* Botones de módulos */
.btn-default,
.btn-info,
.btn-warning {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e5e5;
    transition: all 0.15s ease;
}

.btn-default:hover,
.btn-info:hover,
.btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Tablas de módulos */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #f5f5f5;
}

.table thead th {
    background: #fafafa;
    font-weight: 600;
    color: #171717;
}

/* Paneles de módulos */
.panel-default,
.panel-info {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
}

.panel-heading {
    padding: 12px 16px;
    background: #fafafa;
    border-bottom: 1px solid #f5f5f5;
    font-weight: 600;
}

.panel-body {
    padding: 16px;
}

/* Asegurar que los tooltips funcionen */
.tooltip {
    z-index: 1070;
}

/* Select2 (si el módulo lo usa) */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 40px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.select2-container .select2-selection__rendered {
    line-height: 38px;
    padding-left: 12px;
}

/* Alertas de módulos */
.alert-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: 8px;
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 12px 16px;
    border-radius: 8px;
}

/* ========================================
   LOGIN/REGISTER PAGES - LIMPIAR LOADERS
   ======================================== */

/* Ocultar loaders de WHMCS en páginas públicas */
.login-page .loader,
.login-page .loading,
.login-page .spinner,
.login-page .loading-spinner,
.register-page .loader,
.register-page .loading,
.register-page .spinner,
.register-page .loading-spinner,
.password-reset-page .loader,
.password-reset-page .loading,
.password-reset-page .spinner,
.password-reset-page .loading-spinner,
body[data-route*="login"] .loader,
body[data-route*="password"] .loader,
body[data-route*="register"] .loader {
    display: none !important;
}

/* Ocultar overlays/modals en páginas públicas */
.login-page .modal-backdrop,
.login-page .modal,
.register-page .modal-backdrop,
.register-page .modal,
.password-reset-page .modal-backdrop,
.password-reset-page .modal,
body[data-route*="login"] .modal-backdrop,
body[data-route*="password"] .modal-backdrop,
body[data-route*="register"] .modal-backdrop {
    display: none !important;
    opacity: 0 !important;
}

/* Ocultar layout de área cliente en páginas públicas */
.login-page .elv-layout,
.login-page .elv-sidebar,
.login-page .elv-header,
.register-page .elv-layout,
.register-page .elv-sidebar,
.register-page .elv-header,
.password-reset-page .elv-layout,
.password-reset-page .elv-sidebar,
.password-reset-page .elv-header {
    display: none !important;
}
