/* style.css - ValamTech Dropshipping Portal Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b0f19;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(23, 31, 50, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(99, 102, 241, 0.3);
    
    --color-primary: #7c3aed;    /* Violeta */
    --color-secondary: #06b6d4;  /* Cian */
    --color-accent: #6366f1;     /* Índigo */
    --color-success: #10b981;    /* Esmeralda */
    --color-warning: #f59e0b;    /* Ámbar */
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --sidebar-width: 280px;
    --border-radius: 16px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-subtext {
    font-size: 0.65rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -4px;
    font-weight: 600;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item button {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-secondary);
    padding: 0.85rem 1rem;
    border-radius: 10px;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-normal);
}

.nav-item button:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 1.25rem;
}

.nav-item.active button {
    color: white;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.05));
    border-left: 3px solid var(--color-primary);
    box-shadow: inset 0 0 10px rgba(124, 58, 237, 0.05);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.sidebar-footer a {
    color: var(--color-secondary);
    text-decoration: none;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 3rem 4rem;
    max-width: 1200px;
}

.header-meta {
    margin-bottom: 2.5rem;
}

.header-meta h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-meta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.tab-panel.active {
    display: block;
}

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

/* General Layout Elements */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 968px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.card-title i {
    color: var(--color-secondary);
}

/* Badges and Highlights */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-secondary {
    background: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Callouts / Alerts */
.callout {
    border-left: 4px solid var(--color-primary);
    background: rgba(124, 58, 237, 0.05);
    padding: 1.25rem 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 1.5rem 0;
}

.callout-warning {
    border-left-color: var(--color-warning);
    background: rgba(245, 158, 11, 0.05);
}

.callout-success {
    border-left-color: var(--color-success);
    background: rgba(16, 185, 129, 0.05);
}

.callout h4 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.callout p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Tables styling */
.responsive-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
    background: rgba(17, 24, 39, 0.4);
}

th, td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: rgba(31, 41, 55, 0.6);
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Steps lists */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    margin: 1.5rem 0;
}

.steps-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.3);
}

/* Interactive Calculator Elements */
.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

@media (max-width: 968px) {
    .calc-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-addon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.75rem 1rem 0.75rem 2.2rem;
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
    background: rgba(31, 41, 55, 0.8);
}

.preset-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-sans);
}

.btn-preset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--color-secondary);
}

.results-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.75rem;
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.result-value.highlight {
    font-size: 1.8rem;
    background: linear-gradient(to right, #22d3ee, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.currency-toggle {
    display: flex;
    background: rgba(31, 41, 55, 0.6);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.4rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: var(--transition-fast);
}

.toggle-btn.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* Interactive Checklist (QA Block) */
.checklist-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(31, 41, 55, 0.3);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-fast);
}

.checklist-item:hover {
    background: rgba(31, 41, 55, 0.5);
    border-color: rgba(6, 182, 212, 0.2);
}

.checklist-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin-top: 3px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.checklist-checkbox:checked {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.checklist-checkbox:checked::after {
    content: "✓";
    position: absolute;
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checklist-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.checklist-item.checked .checklist-text {
    color: var(--text-muted);
    text-decoration: line-through;
}

.progress-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    height: 24px;
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Bullet list optimization */
.feature-list {
    list-style: none;
    margin: 1rem 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* Multi-provider section layout */
.provider-box {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.2);
    margin-bottom: 1rem;
}

/* Responsive Nav Toggle (Hamburger) for mobile screens */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .logo-container {
        margin-bottom: 1.5rem;
    }
    
    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.5rem;
        scrollbar-width: none;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item button {
        white-space: nowrap;
        padding: 0.6rem 1rem;
    }
    
    .nav-item.active button {
        border-left: none;
        border-bottom: 3px solid var(--color-primary);
    }
    
    .main-content {
        margin-left: 0;
        padding: 2rem 1.5rem;
    }
    
    .header-meta h1 {
        font-size: 2rem;
    }
}
