/* ==========================================================================
   Koperasi Simpan Pinjam - Mobile First Responsive Styles
   ========================================================================== */

/* Custom CSS Variables */
:root {
    --primary-color: #2c5282;
    --secondary-color: #4a5568;
    --success-color: #38a169;
    --warning-color: #d69e2e;
    --danger-color: #e53e3e;
    --info-color: #3182ce;
    --light-color: #f8f9fa;
    --dark-color: #2d3748;
    --sidebar-width: 250px;
    --transition-speed: 0.3s;
    --box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 5px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
}

/* Tema Warna berdasarkan Logo: Biru Cyan dan Kuning Emas */
:root {
    --primary-blue: #4A90C2;      /* Biru dari logo */
    --primary-cyan: #5BC0DE;      /* Cyan dari logo */
    --primary-gold: #F1C40F;      /* Kuning emas dari logo */
    --secondary-gold: #E67E22;    /* Emas lebih gelap */
    --light-blue: #E8F4FD;        /* Biru muda untuk background */
    --light-gold: #FEF9E7;        /* Kuning muda untuk background */
    --dark-blue: #2C3E50;         /* Biru gelap untuk teks */
}

/* =============================================================================
   BASE STYLES - MOBILE FIRST (360px and up)
   ============================================================================= */

/* Body & Typography - Mobile */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    font-size: 14px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

/* Bootstrap Overrides - Mobile */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 144, 194, 0.3);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
}

/* Text & Background Colors */
.text-primary { color: var(--primary-blue) !important; }
.bg-primary { background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan)) !important; }

/* =============================================================================
   LANDING PAGE STYLES - MOBILE FIRST
   ============================================================================= */

/* Hero Section - Mobile */
.welcome-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.welcome-section .container {
    position: relative;
    z-index: 2;
}

.welcome-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.welcome-section p.lead {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Section Headers - Mobile */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

/* Product Cards - Mobile */
.product-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 144, 194, 0.1);
    height: auto;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(74, 144, 194, 0.15);
    border-color: var(--primary-blue);
}

.product-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1rem;
}

.product-card-header .product-icon {
    margin-bottom: 0.75rem;
}

.product-card-header .product-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
}

.product-card-header h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.interest-badge {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(241, 196, 15, 0.3);
}

.product-card-body {
    padding: 0;
}

.product-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(74, 144, 194, 0.05);
    border-radius: 8px;
}

.product-feature:last-child {
    margin-bottom: 0;
}

.product-feature i {
    color: var(--primary-blue);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

/* Stats Cards - Mobile */
.stats-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 194, 0.2);
}

.stats-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stats-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.stats-card i {
    font-size: 2rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 1rem;
}

/* Feature Cards - Mobile */
.feature-card {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    height: auto;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 194, 0.15);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h6 {
    color: var(--dark-blue);
    margin: 0;
    font-size: 0.9rem;
}

/* Benefits Section - Mobile */
.benefits-section {
    background: var(--light-blue);
    padding: 3rem 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 144, 194, 0.1);
}

.benefit-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(74, 144, 194, 0.3);
    flex-shrink: 0;
}

.benefit-item h5 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.benefit-item p {
    color: #6c757d;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Vision Mission Section - Mobile */
.vision-mission-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 144, 194, 0.1);
}

.vision-mission-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(74, 144, 194, 0.15);
    border-color: var(--primary-blue);
}

.vision-mission-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
}

.vision-mission-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(74, 144, 194, 0.3);
}

.vision-mission-header h3 {
    color: var(--dark-blue);
    margin: 0;
    font-size: 1.3rem;
}

.vision-mission-body p.lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Vision Points - Mobile */
.vision-points .vision-point {
    background: var(--light-blue);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.vision-points .vision-point:hover {
    background: rgba(74, 144, 194, 0.15);
    transform: translateX(5px);
}

.vision-points .vision-point i {
    color: var(--primary-blue);
    margin-right: 0.75rem;
    font-size: 1rem;
}

.vision-points .vision-point span {
    font-size: 0.9rem;
    color: var(--dark-blue);
}

/* Mission List - Mobile */
.mission-list {
    list-style: none;
    padding: 0;
}

.mission-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid var(--primary-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.mission-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(241, 196, 15, 0.15);
    border-left-color: var(--secondary-gold);
}

.mission-number {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.3);
}

.mission-content h6 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mission-content p {
    color: #6c757d;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* OrgChart Custom Styling */
#orgchart-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Ensure OrgChart itself is centered */
#orgchart-container .orgchart {
    margin: 0 auto;
    text-align: center;
}

.org-node {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(74, 144, 194, 0.1);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 250px;
}

.org-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.org-node.chairman {
    border-color: var(--primary-gold);
    background: linear-gradient(135deg, #fefefe, #faf8f0);
    transform: scale(1.05);
}

.org-node.secretary,
.org-node.treasurer {
    border-color: var(--primary-cyan);
    background: linear-gradient(135deg, #ffffff, #f8fbfd);
}

.org-node-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(74, 144, 194, 0.3);
}

.org-node.chairman .org-node-icon {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.org-node-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.org-node-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    line-height: 1.3;
}

/* OrgChart responsive adjustments */
@media (max-width: 768px) {
    #orgchart-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .org-node {
        min-width: 180px;
        max-width: 200px;
        padding: 1rem;
    }
    
    .org-node-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .org-node.chairman .org-node-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Organizational Values - Mobile */
.org-values {
    padding-top: 2rem;
    border-top: 3px solid var(--light-blue);
}

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 144, 194, 0.1);
    margin-bottom: 1rem;
    height: auto;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(74, 144, 194, 0.15);
    border-color: var(--primary-blue);
}

.value-icon {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    box-shadow: 0 6px 15px rgba(241, 196, 15, 0.3);
}

.value-card h6 {
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.value-card p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
    font-size: 0.85rem;
}

/* Contact Section - Mobile */
.contact-section {
    background: var(--light-blue);
    padding: 3rem 0;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(74, 144, 194, 0.1);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(74, 144, 194, 0.15);
    border-color: var(--primary-blue);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* CTA Section - Mobile */
.cta-section {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.cta-section .btn-light {
    background: white;
    color: var(--dark-blue);
    border: none;
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background: var(--light-gold);
    color: var(--dark-blue);
    transform: translateY(-2px);
}

.cta-section .btn-outline-light {
    border: 2px solid white;
    color: white;
}

.cta-section .btn-outline-light:hover {
    background: white;
    color: var(--dark-blue);
}

/* =============================================================================
   GENERAL COMPONENT STYLES - MOBILE FIRST
   ============================================================================= */

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan));
    color: white;
    border-bottom: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1rem;
}

.card-header h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Utilities */
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

/* Forms - Mobile */
.form-control {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 194, 0.25);
}

/* Tables - Mobile */
.table {
    font-size: 0.85rem;
}

.table th {
    background: var(--light-blue);
    color: var(--dark-blue);
    border: none;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    font-size: 0.8rem;
}

.table td {
    border: none;
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
}

.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Navbar - Mobile */
.navbar {
    position: relative;
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 700;
    color: white !important;
    flex: 1;
}

.navbar-brand img {
    height: 30px;
    margin-right: 0.5rem;
}

/* Hamburger Menu - Mobile First */
.navbar-toggler {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
}

/* Navbar Collapse */
.navbar-collapse {
    margin-top: 1rem;
}

.navbar-nav {
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: white !important;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

/* Footer - Mobile */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
}

footer a {
    color: var(--primary-cyan);
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-gold);
    text-decoration: underline;
}

/* =============================================================================
   TABLET RESPONSIVE STYLES (576px and up)
   ============================================================================= */

@media (min-width: 576px) {
    /* Typography */
    body { font-size: 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    /* Hero Section */
    .welcome-section {
        padding: 80px 0;
    }
    
    .welcome-section h1 {
        font-size: 2.5rem;
    }
    
    .welcome-section p.lead {
        font-size: 1.1rem;
    }
    
    /* Product Cards */
    .product-card {
        padding: 2rem;
    }
    
    .product-card-header {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .product-card-header .product-icon {
        margin-bottom: 0;
        margin-right: 1rem;
    }
    
    .product-card-header h5 {
        font-size: 1.2rem;
        flex: 1;
    }
    
    /* Vision Mission */
    .vision-mission-header {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .vision-mission-icon {
        margin-bottom: 0;
        margin-right: 1.5rem;
    }
    
    .vision-mission-body p.lead {
        text-align: left;
        font-size: 1rem;
    }
    
    /* Mission Items */
    .mission-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .mission-number {
        margin-bottom: 0;
        margin-right: 1.5rem;
        flex-shrink: 0;
    }
    

    
    /* Benefits */
    .benefit-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .benefit-item h5 {
        font-size: 1.1rem;
    }
    
    .benefit-item p {
        font-size: 0.9rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 300px;
    }
    
    /* Navbar - Tablet */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-toggler {
        right: 20px;
        padding: 0.375rem 0.75rem;
    }
    
    .navbar-toggler-icon {
        width: 24px;
        height: 24px;
    }
}

/* =============================================================================
   DESKTOP RESPONSIVE STYLES (768px and up)
   ============================================================================= */

@media (min-width: 768px) {
    /* Typography */
    body { font-size: 16px; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.7rem; }
    
    /* Container */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Hero Section */
    .welcome-section {
        padding: 100px 0;
        text-align: left;
    }
    
    .welcome-section h1 {
        font-size: 3rem;
    }
    
    .welcome-section p.lead {
        font-size: 1.25rem;
    }
    
    /* Section Headers */
    .section-header .section-subtitle {
        font-size: 1rem;
        max-width: 600px;
    }
    
    /* Product Cards - Grid Layout */
    .product-card {
        height: 100%;
        padding: 2.5rem;
    }
    
    .product-card-header h5 {
        font-size: 1.3rem;
    }
    
    /* Stats Cards */
    .stats-card {
        padding: 2rem;
    }
    
    .stats-card h3 {
        font-size: 2.2rem;
    }
    
    .stats-card p {
        font-size: 1rem;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 2rem;
        height: 100%;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
    
    .feature-card h6 {
        font-size: 1rem;
    }
    
    /* Benefits Section */
    .benefits-section {
        padding: 4rem 0;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
        margin-right: 1.5rem;
    }
    
    .benefit-item h5 {
        font-size: 1.2rem;
    }
    
    .benefit-item p {
        font-size: 1rem;
    }
    
    /* Vision Mission Cards */
    .vision-mission-card {
        padding: 2.5rem;
        height: 100%;
    }
    
    .vision-mission-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .vision-mission-header h3 {
        font-size: 1.5rem;
    }
    
    .vision-mission-body p.lead {
        font-size: 1.1rem;
    }
    
    /* Mission Items */
    .mission-item {
        padding: 1.5rem;
    }
    
    .mission-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .mission-content h6 {
        font-size: 1.1rem;
    }
    
    .mission-content p {
        font-size: 0.95rem;
    }
    

    
    /* Value Cards */
    .value-card {
        padding: 2rem;
        height: 100%;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
    
    .value-card h6 {
        font-size: 1.1rem;
    }
    
    .value-card p {
        font-size: 0.95rem;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-card {
        padding: 2rem;
        height: 100%;
    }
    
    .contact-card i {
        font-size: 2.5rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 400px;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 4rem 0;
    }
    
    /* Navbar - Desktop */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }
    
    .navbar-toggler {
        display: none !important;
    }
    
    .navbar-collapse {
        display: block !important;
        margin-top: 0;
    }
    
    .navbar-nav {
        padding: 0;
        flex-direction: row;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        margin: 0 0.25rem;
        background: transparent;
        border-radius: 20px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }
    
    /* Tables */
    .table {
        font-size: 0.9rem;
    }
    
    .table th {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .table td {
        padding: 1rem;
    }
}

/* =============================================================================
   LARGE DESKTOP RESPONSIVE STYLES (992px and up)
   ============================================================================= */

@media (min-width: 992px) {
    /* Typography */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }
    
    /* Hero Section */
    .welcome-section h1 {
        font-size: 3.5rem;
    }
    
    .welcome-section p.lead {
        font-size: 1.4rem;
    }
    
    /* Section Headers */
    .section-header .section-subtitle {
        font-size: 1.1rem;
        max-width: 700px;
    }
    

}

/* =============================================================================
   EXTRA LARGE DESKTOP RESPONSIVE STYLES (1200px and up)
   ============================================================================= */

@media (min-width: 1200px) {
    /* Hero Section */
    .welcome-section h1 {
        font-size: 4rem;
    }
    
    /* Enhanced spacing and typography for large screens */
    .section-header .section-subtitle {
        max-width: 800px;
    }
    
    .product-card {
        padding: 3rem;
    }
    
    .vision-mission-card {
        padding: 3rem;
    }
    
    .benefit-item {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 2.5rem;
    }
    
    /* Map */
    .map-container iframe {
        height: 450px;
    }
}

/* =============================================================================
   ANIMATIONS & TRANSITIONS
   ============================================================================= */

.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* =============================================================================
   LEGACY SYSTEM SUPPORT (Existing Classes)
   ============================================================================= */

/* Keep existing utility classes for backwards compatibility */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

/* Legacy button styles */
.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #2f855a;
    border-color: #2f855a;
}

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

.btn-danger:hover {
    background-color: #c53030;
    border-color: #c53030;
}

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

.btn-warning:hover {
    background-color: #b7791f;
    border-color: #b7791f;
}

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

.btn-info:hover {
    background-color: #2c5aa0;
    border-color: #2c5aa0;
}

/* Legacy form and table styles for admin panels */
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    transition: all var(--transition-speed) ease;
}

.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 194, 0.25);
}

.input-group-text {
    background: var(--light-blue);
    border: 2px solid #e2e8f0;
    color: var(--dark-blue);
    font-weight: 500;
}

.is-invalid {
    border-color: var(--danger-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 500;
}

/* DataTables styling */
.dataTables_wrapper {
    font-size: 0.9rem;
}

.dataTables_length select,
.dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
}

.dataTables_info {
    color: #6c757d;
    font-size: 0.875rem;
}

.dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: var(--primary-blue);
}

.dataTables_paginate .paginate_button:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.dataTables_paginate .paginate_button.current {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

/* Badge styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Modal styles */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: var(--light-blue);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
}

/* Alert styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(56, 161, 105, 0.1);
    color: #2f855a;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: rgba(229, 62, 62, 0.1);
    color: #c53030;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: rgba(214, 158, 46, 0.1);
    color: #b7791f;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: rgba(49, 130, 206, 0.1);
    color: #2c5aa0;
    border-left: 4px solid var(--info-color);
}

/* Sidebar styles for admin */
.sidebar {
    background: var(--dark-blue);
    color: white;
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: -var(--sidebar-width);
    top: 0;
    transition: left var(--transition-speed) ease;
    z-index: 1000;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 0;
    transition: all var(--transition-speed) ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(74, 144, 194, 0.2);
    color: white;
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
}

.content-wrapper {
    margin-left: 0;
    transition: margin-left var(--transition-speed) ease;
    min-height: 100vh;
}

.main-content {
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 4rem);
}

/* Utility classes */
.shadow { box-shadow: var(--box-shadow); }
.shadow-lg { box-shadow: var(--box-shadow-hover); }
.rounded { border-radius: var(--border-radius); }
.text-gray-800 { color: #2d3748; }
.text-muted { color: #6c757d; }

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */

@media print {
    .no-print { display: none !important; }
    .sidebar { display: none !important; }
    .content-wrapper { margin-left: 0 !important; }
    .card { 
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
} 

/* Sidebar Styles */
.sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 20px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
    position: relative;
}

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

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    text-align: center;
    padding: 12px 0;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
}

/* Indikator untuk menu dengan sub-menu saat collapsed */
.sidebar.collapsed .nav-item:has(.collapsed-submenu) .nav-link::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: block;
}

.sidebar.collapsed .nav-item:has(.collapsed-submenu) .nav-link:hover::after {
    background: rgba(255, 255, 255, 0.9);
}

.sidebar.collapsed .float-end {
    display: none;
}

.sidebar.collapsed .sub-menu {
    display: none;
}

/* Hide collapsed submenu by default */
.collapsed-submenu {
    display: none;
}

/* Show collapsed submenu when sidebar is collapsed */
.sidebar.collapsed .collapse {
    display: none !important;
}

.sidebar.collapsed .collapsed-submenu {
    display: none;
    position: absolute;
    left: 80px;
    top: 0;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    margin: 0;
    padding: 8px 0;
    list-style: none;
}

.sidebar.collapsed .nav-item:hover .collapsed-submenu {
    display: block;
    animation: slideIn 0.2s ease-out;
}

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

.sidebar.collapsed .collapsed-submenu::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 5px 0;
    border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
}

.sidebar.collapsed .collapsed-submenu li a {
    margin: 0;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0;
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar.collapsed .collapsed-submenu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar.collapsed .collapsed-submenu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.sidebar.collapsed h4 {
    text-align: center;
}

.sidebar.collapsed h4 span {
    display: none;
}

.sidebar.collapsed h4 img {
    width: 30px;
    height: 30px;
}

/* Content Wrapper */
.content-wrapper {
    margin-left: 250px;
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.content-wrapper.sidebar-collapsed {
    margin-left: 80px;
}

.main-content {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 70px);
}

/* Toggle Button */
#sidebarToggle {
    border: none;
    background: transparent;
    color: #495057;
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

#sidebarToggle:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

#sidebarToggle:active {
    transform: scale(0.95);
}

#sidebarToggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-link {
    position: relative;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.sidebar.collapsed .nav-link::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 5px 0;
    border-color: transparent rgba(0, 0, 0, 0.9) transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1001;
}

.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(5px);
}

.sidebar.collapsed .nav-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design */
/* Mobile Only - Phone */
@media (max-width: 576px) {
    .sidebar {
        width: 0;
        left: -250px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.collapsed {
        width: 0;
        left: -250px;
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        width: 250px;
        left: 0;
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0;
    }
    
    .content-wrapper.sidebar-collapsed {
        margin-left: 0;
    }
    
    /* Overlay for mobile */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

/* Sub-menu styles */
.sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 5px 16px;
}

.sub-menu li a {
    padding: 8px 20px 8px 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 2px 8px;
}

.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sub-menu li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Top navbar adjustments */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .btn-outline-secondary {
    border-color: #dee2e6;
}

.navbar .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Dropdown menu styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.dropdown-item {
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Card styles for better appearance */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

/* Button styles */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
}

/* Table styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

/* Form styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badge styles */
.badge {
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Breadcrumb styles */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Statistics cards */
.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.stat-card p {
    margin: 0;
    opacity: 0.9;
}

/* Scrollbar styles */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
} 