

/* === BRANDING COLORS === */
:root {
    --jiaec-blue: #0073E6;
    --jiaec-blue-light: #4D94FF;
    --jiaec-blue-dark: #004BA6;
    --jiaec-red: #E63946;
    --jiaec-red-light: #FF6B7A;
    --bg-gray: #F8F9FB;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --white: #ffffff;
    
    --spacing-4: 4px;
    --spacing-8: 8px;
    --spacing-12: 12px;
    --spacing-16: 16px;
    --spacing-20: 20px;
    --spacing-24: 24px;
    --spacing-28: 28px;
    --spacing-32: 32px;
    --spacing-40: 40px;
    --spacing-48: 48px;
    --spacing-56: 56px;
    --spacing-64: 64px;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-gray);
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* === LOGIN PAGE STYLES === */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0073E6 0%, #004BA6 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 6s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.login-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 950px;
    width: 90%;
    display: flex;
    position: relative;
    z-index: 1;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-left {
    flex: 1;
    background: linear-gradient(180deg, #0073E6 0%, #004BA6 100%);
    padding: var(--spacing-48) var(--spacing-40);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: 20px;
    right: 20px;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-24);
    box-shadow: 0 var(--spacing-8) var(--spacing-32) rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.logo-circle:hover {
    transform: scale(1.05);
}

.logo-circle .logo-img {
    max-width: 80px;
    height: auto;
}

.login-logo div {
    font-size: 2rem;
    margin-top: var(--spacing-8);
    color: var(--white);
    font-weight: 700;
}

.login-logo .aquaviva {
    color: var(--jiaec-red-light);
    display: block;
    font-size: 1.3rem;
    letter-spacing: 1px;
    margin-top: var(--spacing-8);
}

.login-tagline {
    font-size: 1rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.8;
}

.login-illustration {
    width: 100%;
    max-width: 280px;
    margin-top: 20px;
}

.login-illustration i {
    font-size: 180px;
    opacity: 0.2;
    color: var(--white);
}

.login-right {
    flex: 1;
    padding: var(--spacing-48) var(--spacing-40);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 1.8rem;
    color: var(--jiaec-blue);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-light);
    margin-bottom: var(--spacing-32);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: var(--spacing-24);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: var(--spacing-12) var(--spacing-16);
    height: var(--spacing-48);
    border: 2px solid #e0e0e0;
    border-radius: var(--spacing-12);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--jiaec-blue);
    box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

.form-control::placeholder {
    color: #bbb;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.input-icon .form-control {
    padding-left: 45px;
}

.btn-login {
    width: 100%;
    padding: var(--spacing-12);
    height: var(--spacing-48);
    background: linear-gradient(135deg, #0073E6 0%, #0066CC 100%);
    color: var(--white);
    border: none;
    border-radius: var(--spacing-12);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 230, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.alert {
    padding: var(--spacing-12) var(--spacing-16);
    border-radius: var(--spacing-12);
    margin-bottom: var(--spacing-24);
    border: none;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.alert-danger {
    background-color: #ffebee;
    color: var(--jiaec-red);
    border-left: 4px solid var(--jiaec-red);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 400px;
    }
    
    .login-left {
        padding: 40px 30px;
        min-height: 300px;
    }
    
    .login-logo {
        font-size: 2rem;
    }
    
    .login-logo .aquaviva {
        font-size: 1.5rem;
    }
    
    .login-illustration i {
        font-size: 120px;
    }
    
    .login-right {
        padding: 40px 30px;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

/* === NAVBAR & SIDEBAR (untuk halaman dashboard) === */
.bg-jiaec-blue {
    background: linear-gradient(180deg, #0073E6 0%, #004BA6 100%);
    color: var(--white);
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.8);
    transition: 0.3s;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-left: 4px solid var(--jiaec-red);
    text-decoration: none;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

/* === WHITE SIDEBAR LINKS === */
.sidebar-link-white {
    color: #666;
    transition: 0.3s;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

.sidebar-link-white:hover,
.sidebar-link-white.active {
    color: #0073E6;
    background-color: rgba(0, 115, 230, 0.05);
    border-left: 4px solid #0073E6;
    text-decoration: none;
}

.sidebar-link-white i {
    width: 20px;
    text-align: center;
}

/* === CARDS === */
.card-custom {
    border: none;
    border-radius: var(--spacing-16);
    box-shadow: 0 var(--spacing-4) var(--spacing-16) rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 var(--spacing-8) var(--spacing-24) rgba(0, 0, 0, 0.1);
}

.card-clickable {
    transition: all 0.3s ease;
}

.card-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 var(--spacing-12) var(--spacing-32) rgba(0, 115, 230, 0.15);
    border: 2px solid rgba(0, 115, 230, 0.2);
}

/* === BUTTONS === */
.btn-jiaec-blue {
    background: linear-gradient(135deg, #0073E6 0%, #0066CC 100%);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-jiaec-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.3);
    color: var(--white);
}

.btn-jiaec-red {
    background: linear-gradient(135deg, #E63946 0%, #D62828 100%);
    color: var(--white);
    border-radius: 50px;
    padding: 10px 24px;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-jiaec-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
    color: var(--white);
}

/* === STATUS BADGES === */
.badge-market-leader {
    background-color: #E63946;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-challenger {
    background-color: #0073E6;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-portal {
    background-color: #ff9800;
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* === UTILITIES === */
.text-jiaec-blue {
    color: var(--jiaec-blue) !important;
}

.text-jiaec-red {
    color: var(--jiaec-red) !important;
}

.bg-jiaec-light {
    background-color: rgba(0, 64, 128, 0.05);
}

/* === SEARCH INPUT === */
#searchInput {
    border-radius: var(--spacing-8);
    font-size: 0.95rem;
    transition: 0.3s;
    padding: var(--spacing-12) var(--spacing-16) !important;
}

#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.1);
    border-color: #0073E6 !important;
}

#searchInput::placeholder {
    color: #aaa;
}
/* === UTILITY CLASSES === */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }

/* Button enhancements */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-jiaec-blue {
    background-color: var(--jiaec-blue);
    border-color: var(--jiaec-blue);
    color: white;
}

.btn-jiaec-blue:hover {
    background-color: var(--jiaec-blue-dark);
    border-color: var(--jiaec-blue-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 230, 0.3);
}

/* Export button styles */
.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success i {
    margin-right: 6px;
}

/* Filter section improvements */
.custom-control {
    padding-left: 1.5rem;
}

.custom-control-label {
    cursor: pointer;
    user-select: none;
    color: #666;
    font-weight: 500;
}

.custom-control-input:checked ~ .custom-control-label {
    color: var(--jiaec-blue);
    font-weight: 600;
}

/* Improved spacing for filter options */
.filter-section {
    background-color: #f8f9fb;
    padding: var(--spacing-20);
    border-radius: var(--spacing-8);
    margin-bottom: var(--spacing-20);
}