:root {
	--primary: #0e64a3;
	--secondary: #f7941e;
	--tertiary: #25aae1;
}

/* Common Styles */
body {
    background-color: #f8f9fa;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo img {
    max-width: 150px;  /* Mengubah dari 200px menjadi 150px */
    height: auto;
}

/* Dashboard Layout Styles */
.dashboard-layout {
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
	background: linear-gradient(180deg, #387d2a 0%, var(--primary) 100%);
    min-height: 100vh;
    width: 220px;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.content-wrapper {
    margin-left: 220px;
    transition: all 0.3s ease;
    width: calc(100% - 220px);
}

/* Collapsed state */
body.sidebar-collapsed .sidebar {
    width: 0;
    overflow: hidden;
}

body.sidebar-collapsed .content-wrapper {
    margin-left: 0;
    width: 100%;
}

/* Logo Container */
.logo-container {
    text-align: center;
    margin: 1rem 0 2rem 0;
    padding: 1rem 0.5rem;
    position: relative;
}

.logo-container img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

.logo-container:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
}

/* Navigation */
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.8rem 1rem;
    margin: 0.2rem 0;
    border-radius: 0.25rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.active {
    background-color: var(--secondary);
    color: white;
}

/* Toggle button */
.sidebar-toggle {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    color: var(--secondary);
}

/* Header Styles */
.main-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Content Area */
.main-content {
    padding: 2rem;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #3a8a2d;
    border-color: #3a8a2d;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #e88a1b;
    border-color: #e88a1b;
}

/* Table Styles */
.table-hover tbody tr:hover {
    background-color: rgba(14, 100, 163, 0.05);
}

/* Form Styles */
.form-control:focus {
    border-color: var(--tertiary);
    box-shadow: 0 0 0 0.25rem rgba(37, 170, 225, 0.25);
}

/* Search Form Specific Styles */
.search-step {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.search-progress {
    margin-bottom: 2rem;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 1rem;	
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    right: -40%;
    height: 3px;
    background-color: #e9ecef;
    z-index: 1;
    border-radius: 2px;
}

.step-item.active:not(:last-child)::after,
.step-item.completed:not(:last-child)::after {
    background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    z-index: 2;
    position: relative;
    transition: all 0.4s ease;
    border: 3px solid #e9ecef;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color:white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(14, 100, 163, 0.3);
    transform: scale(1.1);
}

.step-item.completed .step-number {
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: #25aae1;
    border-color: var(--success);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.step-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: #6c757d;
    transition: all 0.3s ease;
    margin: 0;
}

.step-item.active .step-title {
    color: var(--primary);
    font-weight: 700;
}

.step-item.completed .step-title {
    color: var(--success);
    font-weight: 600;
}

/* Program Cards for Selection */
.program-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.program-card .card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
}

.program-card .card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(14, 100, 163, 0.15);
    transform: translateY(-3px);
}

.program-card .card.border-primary {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(14, 100, 163, 0.2);
}

.program-card .card.bg-light {
    background-color: rgba(14, 100, 163, 0.05) !important;
}

/* Filter Cards */
.filter-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.filter-card:hover {
    border-color: var(--primary);
    background-color: rgba(14, 100, 163, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 100, 163, 0.1);
}

.filter-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(14, 100, 163, 0.1) 0%, rgba(37, 170, 225, 0.05) 100%);
    box-shadow: 0 6px 20px rgba(14, 100, 163, 0.15);
}

/* Comparison Table */
.comparison-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: white;
    text-align: center;
    padding: 1.2rem 1rem;
    font-weight: 700;
    border: none;
	vertical-align:middle;
}

.comparison-table th h6, .comparison-table th small {
	color:white !important;
} 

.comparison-table td {
    text-align: center;
    padding: 1rem;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
}

.comparison-table tbody tr:hover {
    background-color: rgba(14, 100, 163, 0.03);
}

/* Lead Form Styles */
.lead-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lead-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary);
}

.program-summary {
    transition: all 0.3s ease;
}

.program-summary:hover {
    background-color: rgba(14, 100, 163, 0.08) !important;
    transform: translateX(5px);
}

/* Selected Programs Counter */
#selectionCounter {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Search Tips and Information Cards */
.search-tips .card {
    border: none;
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: white;
    font-size: 1.5rem;
}

/* Process Information Cards */
.process-step {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

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

.process-step .step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Budget Range Slider Styles */
.budget-range {
    position: relative;
    margin: 1rem 0;
}

.budget-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Responsive Step Indicator */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-item {
        flex-direction: row;
        width: 100%;
        text-align: left;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        margin-bottom: 0;
        margin-right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-title {
        text-align: left;
        font-size: 1rem;
    }
    
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .program-card .card-body {
        padding: 1rem;
    }
    
    .lead-summary {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .process-step .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
    }
    
    .filter-card {
        padding: 1rem;
    }
}

/* Animation for program cards */
.program-card {
    animation: slideInUp 0.6s ease-out;
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }

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

/* Success message enhancements */
.alert-success {
    border-left: 4px solid var(--success);
    background: linear-gradient(135deg, #d1eddf 0%, #f8fff9 100%);
}

.alert-danger {
    border-left: 4px solid var(--danger);
    background: linear-gradient(135deg, #f8d7da 0%, #fff5f5 100%);
}

/* Form enhancements for search steps */
.search-form .form-control,
.search-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: white;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    border-color: var(--tertiary);
    box-shadow: 0 0 0 0.25rem rgba(37, 170, 225, 0.15);
    background: white;
}

.search-form .form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

/* Quick actions buttons */
.quick-actions .btn {
    margin: 0.25rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}