/* Custom styles for sunat_subdominio/index.php */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #0f172a;
    --accent-color: #10b981;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e1b4b 100%);
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Hero */
.sunat-hero {
    background: var(--bg-gradient);
    color: #ffffff;
    padding: 65px 0 85px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.sunat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #38bdf8;
    margin-bottom: 18px;
}

.sunat-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sunat-hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Nav Pills / Tabs */
.nav-tabs-custom {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -30px;
    margin-bottom: 35px;
    position: relative;
    z-index: 10;
}

.nav-tabs-custom .tab-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-tabs-custom .tab-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-tabs-custom .tab-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px -3px rgba(37, 99, 235, 0.35);
}

/* Container & Cards */
.main-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.05);
    padding: 32px;
    margin-bottom: 40px;
}

/* COMPONENTE BUSCADOR SUNAT */
.sunat-selector-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 25px;
}

.sunat-selector-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sunat-search-input {
    width: 100%;
    height: 44px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #cbd5e1;
    border-right: none;
    padding: 10px 16px;
    font-size: 14px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.sunat-search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sunat-results-dropdown {
    position: absolute;
    z-index: 9999;
    width: 95%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    max-height: 240px;
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.sunat-results-dropdown .list-group-item {
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
}

.sunat-results-dropdown .list-group-item:hover {
    background: #f1f5f9;
    color: var(--primary-color);
}

.sunat-divider {
    text-align: center;
    margin: 16px 0;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.sunat-select-group label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
}

.sunat-select-control {
    width: 100%;
    height: 38px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    font-size: 13px;
    color: #1e293b;
    background-color: #ffffff;
}

.sunat-select-control:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.sunat-assigned-banner {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.sunat-assigned-input {
    font-weight: 700;
    color: #1d4ed8;
    background-color: #ffffff;
    text-align: center;
    font-size: 16px;
    letter-spacing: 1.5px;
    width: 150px;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    padding: 6px 12px;
}

.result-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: none;
}

.result-detail-card.active {
    display: block;
}

.badge-valid {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.badge-invalid {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.btn-copy-sunat {
    transition: all 0.3s ease;
}
