/* ==========================================
   DIMWS Tenants - Base Styles
========================================== */

/* ----- VARIABLES ----- */
:root {
    --tenant-primary: #4f46e5;
    --tenant-secondary: #6c757d;
    --tenant-background: #ffffff;
    --tenant-text: #212529;
    --tenant-success: #198754;
    --tenant-warning: #ffc107;
    --tenant-error: #dc3545;
}

/* ----- GLOBAL TYPOGRAPHY ----- */
body {
    font-family: "Open Sans", sans-serif;
    color: #333;
    font-size: 15px;
    background-color: var(--tenant-background);
    overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
    font-family: "Poppins", sans-serif;
    color: #444;
}

a {
    color: var(--tenant-text);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--tenant-primary);
}

/* ==========================================
   TENANT NAVBAR
========================================== */
.tenant-navbar {
    background: var(--tenant-background);
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.tenant-brand {
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--tenant-text);
}

.plan-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
}

.plan-enterprise { background: #111827; color: white; }
.plan-pro        { background: var(--tenant-primary); color: white; }
.plan-free       { background: #e5e7eb; color: #374151; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.nav-links a {
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-links a.active {
    color: var(--tenant-primary);
    font-weight: 700;
}

.upgrade-btn {
    background: var(--tenant-primary);
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 8px;
}

.live-badge {
    margin-left: 6px;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 999px;
    background: var(--tenant-success);
    color: #fff;
}

/* Responsive: navbar vertical en pantallas pequeñas */
@media (max-width: 768px) {
    .tenant-navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        margin-top: 12px;
        gap: 8px;
    }
}

/* ==========================================
   WIZARD - DIMWS TENANTS
========================================== */
.dimws-wizard {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
}

.dimws-step, .wizard-step {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: all 0.4s ease-in-out;

    opacity: 0;
    height: 0;
    pointer-events: none;
    overflow: hidden;
    margin-bottom: 20px;
}

.dimws-step.active, .wizard-step.active {
    opacity: 1;
    height: auto;
    pointer-events: auto;
    overflow: visible;
}

/* Bordes por tipo de paso */
.wizard-packages { border-left: 4px solid #0d6efd; }
.wizard-branding { border-left: 4px solid #6f42c1; }
.wizard-preview  { border-left: 4px solid #198754; }

/* Tipografía y cards */
.dimws-step h2, .wizard-step h2 { font-size: 1.5rem; margin-bottom: 15px; }
.dimws-step .card, .wizard-step .card {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Botones de navegación */
.dimws-wizard .btn-next,
.dimws-wizard .btn-prev { margin-top: 10px; }

/* Responsive wizard */
@media (max-width: 768px) {
    .dimws-wizard { padding: 15px; }
}

/* ==========================================
   FOOTER
========================================== */
#aa-footer {
    background-color: #444;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

#aa-footer a {
    color: #f8f8f8;
    transition: color 0.5s;
}

#aa-footer a:hover {
    color: #fff;
}
