/* Main CSS for Complementos de Pago */
:root {
    --bg-gradient: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --primary-blue: #2563eb;
    --deep-blue: #1e3a8a;
    --royal-blue: #3b82f6;
    --soft-blue: #bfdbfe;
    --shadow-soft: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    --shadow-inset: inset 6px 6px 12px #bebebe, inset -6px -6px 12px #ffffff;
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.login-container {
    perspective: 1000px;
    width: 100%;
    max-width: 420px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.logo-section {
    margin-bottom: 30px;
}

.logo-section h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(to right, var(--deep-blue), var(--royal-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

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

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

.input-field {
    width: 100%;
    padding: 14px 18px;
    background: #f0f4f8;
    border: 1px solid transparent;
    border-radius: 12px;
    box-shadow: var(--shadow-inset);
    outline: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.input-field:focus {
    border-color: var(--royal-blue);
    background: #ffffff;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #1e3a8a, #3b82f6);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.footer-text {
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-text a {
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 500;
}

/* Dashboard Styles */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient);
}

.sidebar {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.main-content {
    padding: 40px;
    overflow-y: auto;
}

.nav-item {
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--primary-blue);
}

.nav-item.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.section-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    padding: 30px;
    margin-bottom: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--deep-blue);
}

.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-draft {
    background: #e2e8f0;
    color: #475569;
}

.badge-stamped {
    background: #dcfce7;
    color: #166534;
}

/* Form improvements */
.input-field.small {
    padding: 10px 14px;
    font-size: 14px;
}

.table-glass {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table-glass th {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid var(--glass-border);
    font-size: 14px;
    color: var(--text-muted);
}

.table-glass td {
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 14px;
}