:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc !important;
    color: #1f2937;
    min-height: 100vh;
}

main {
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
}

.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand-icon {
    font-size: 1.5rem;
}

.navbar-brand-text,
.navbar-brand-text-short {
    white-space: nowrap;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem !important;
}

.nav-link-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-link-text,
.nav-link-text-short {
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.4);
}

.badge-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0;
    /* margin-top: 4rem; */
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-icon {
    font-size: 1.25rem;
}

.footer-title-text {
    white-space: nowrap;
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-link i {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.footer-features i {
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-divider {
    opacity: 0.2;
    margin: 2rem 0 !important;
}

.footer-copyright {
    font-size: 0.875rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer a:hover::after {
    width: 100%;
}

/* Dropdown menu links hover effect */
.dropdown-item {
    position: relative;
    transition: all 0.3s;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.dropdown-item:hover::after {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    border-radius: 0 0 50px 50px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

/* Responsive Styles */

/* Tablet dan Handphone Medium (<1024px) */
@media (max-width: 1023.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-brand-icon {
        font-size: 1.3rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 0.6rem !important;
    }

    .nav-link-icon {
        font-size: 1rem;
    }

    .dropdown-menu {
        font-size: 0.9rem;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .dropdown-item i {
        font-size: 0.95rem;
    }

    .footer {
        padding: 2.5rem 0;
    }

    .footer-title {
        font-size: 1.15rem;
        margin-bottom: 0.875rem;
    }

    .footer-icon {
        font-size: 1.15rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-features li {
        font-size: 0.9rem;
    }

    .footer-copyright {
        font-size: 0.85rem;
    }
}

/* Mobile (<768px) */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0;
        border-radius: 0 0 30px 30px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-brand-icon {
        font-size: 1.2rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.5rem !important;
    }

    .nav-link-icon {
        font-size: 0.95rem;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .display-1 {
        font-size: 4rem !important;
    }

    .trust-badge {
        padding: 15px;
        margin-bottom: 10px;
    }

    .footer {
        padding: 2rem 0;
        text-align: center;
    }

    .footer .col-md-4 {
        margin-bottom: 2rem;
    }

    .footer-title {
        font-size: 1.1rem;
        justify-content: center;
    }

    .footer-icon {
        font-size: 1.1rem;
    }

    .footer-description {
        font-size: 0.875rem;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-link {
        font-size: 0.875rem;
        justify-content: center;
    }

    .footer-features {
        text-align: center;
    }

    .footer-features li {
        font-size: 0.875rem;
        justify-content: center;
    }

    .footer-divider {
        margin: 1.5rem 0 !important;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn-lg {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .display-4 {
        font-size: 1.5rem !important;
    }

    .display-1 {
        font-size: 3rem !important;
    }

    .trust-badge {
        padding: 10px;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand-icon {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.875rem;
        padding: 0.45rem 0.4rem !important;
    }

    .nav-link-icon {
        font-size: 0.9rem;
    }

    .dropdown-menu {
        font-size: 0.875rem;
        min-width: 200px;
    }

    .dropdown-item {
        padding: 0.45rem 0.875rem;
        font-size: 0.875rem;
    }

    .dropdown-item i {
        font-size: 0.9rem;
    }

    .footer {
        padding: 1.75rem 0;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-icon {
        font-size: 1rem;
    }

    .footer-description {
        font-size: 0.8rem;
    }

    .footer-link {
        font-size: 0.8rem;
    }

    .footer-features li {
        font-size: 0.8rem;
    }

    .footer-divider {
        margin: 1.25rem 0 !important;
    }

    .footer-copyright {
        font-size: 0.75rem;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 6px 12px;
        font-size: 0.875rem;
    }

    .table {
        font-size: 0.875rem;
    }

    h1, .h1 {
        font-size: 1.5rem;
    }

    h2, .h2 {
        font-size: 1.25rem;
    }

    h3, .h3 {
        font-size: 1.125rem;
    }

    .breadcrumb {
        font-size: 0.875rem;
    }

    .small-md-normal {
        font-size: 0.875rem;
    }

    .h-md-1 {
        font-size: 1.75rem !important;
    }

    .h-md-2 {
        font-size: 1.5rem !important;
    }
}

/* HP Kecil (<321px) */
@media (max-width: 320.98px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 0.95rem;
    }

    .navbar-brand-icon {
        font-size: 0.95rem;
    }

    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }

    .navbar-toggler-icon {
        width: 1.25rem;
        height: 1.25rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.35rem !important;
        gap: 0.35rem;
    }

    .nav-link-icon {
        font-size: 0.85rem;
    }

    .nav-link-text,
    .nav-link-text-short {
        font-size: 0.8rem;
    }

    .dropdown-menu {
        font-size: 0.8rem;
        min-width: 180px;
        padding: 0.5rem 0;
    }

    .dropdown-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .dropdown-item i {
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 0.625rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-icon {
        font-size: 0.95rem;
    }

    .footer-title-text {
        font-size: 0.95rem;
    }

    .footer-description {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-link {
        font-size: 0.75rem;
        gap: 0.4rem;
    }

    .footer-link i {
        font-size: 0.85rem;
    }

    .footer-features li {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        gap: 0.4rem;
    }

    .footer-features i {
        font-size: 0.85rem;
    }

    .footer-divider {
        margin: 1rem 0 !important;
    }

    .footer-copyright {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .btn-lg {
        padding: 5px 10px;
        font-size: 0.8rem;
    }

    h1, .h1 {
        font-size: 1.35rem;
    }

    h2, .h2 {
        font-size: 1.15rem;
    }

    h3, .h3 {
        font-size: 1rem;
    }

    .card-body {
        padding: 0.875rem;
    }
}

@media (min-width: 576px) {
    .small-md-normal {
        font-size: 1rem;
    }

    .h-md-1 {
        font-size: 2.5rem !important;
    }

    .h-md-2 {
        font-size: 2rem !important;
    }
}

/* Tablet Specific Styles */
@media (min-width: 577px) and (max-width: 991px) {
    .trust-badge {
        flex: 1 1 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }

    .container {
        max-width: 720px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Mobile-friendly tables */
@media (max-width: 768px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.875rem;
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}