/* ============================================
   KESMASINDO - Custom Styles
   Color Palette from Logo:
   - Primary Green:  #1a6b2c
   - Medium Green:   #2e7d32
   - Light Green:    #4caf50
   - Yellow/Gold:    #fdd835
   - Blue Accent:    #1976d2
   - Cream BG:       #fef9e7
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --green-dark: #1a6b2c;
    --green-mid: #2e7d32;
    --green-light: #4caf50;
    --green-pale: #e8f5e9;
    --yellow: #fdd835;
    --yellow-light: #fff9c4;
    --gold: #f9a825;
    --blue: #1976d2;
    --cream: #fef9e7;
    --cream-dark: #f5f0dc;
    --white: #ffffff;
    --dark: #1a2e1a;
    --gray: #6c757d;
    --gray-light: #f8f9fa;
    --shadow: 0 4px 20px rgba(26, 107, 44, 0.12);
    --shadow-hover: 0 8px 32px rgba(26, 107, 44, 0.2);
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--cream);
    color: var(--dark);
    overflow-x: hidden;
}

/* ============ NAVBAR ============ */
.navbar-kesmasindo {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--green-light) 100%);
    padding: 12px 0;
    box-shadow: 0 4px 24px rgba(26, 107, 44, 0.3);
    position: sticky;
    top: 0;
    z-index: 1050;
    backdrop-filter: blur(10px);
}

.navbar-kesmasindo .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-kesmasindo .navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--green-dark);
    font-size: 1.1rem;
}

.navbar-kesmasindo .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.navbar-kesmasindo .nav-link:hover,
.navbar-kesmasindo .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.15);
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* ============ HERO ============ */
.hero-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 40%, var(--blue) 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.1;
    animation: floatBubble 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 250px;
    height: 250px;
    background: var(--green-light);
    border-radius: 50%;
    opacity: 0.15;
    animation: floatBubble 8s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content h1 span {
    color: var(--yellow);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    line-height: 1.7;
}

.hero-decoration {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-decoration .hero-icon {
    width: 280px;
    height: 280px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.2);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(253, 216, 53, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 0 40px 10px rgba(253, 216, 53, 0.15); }
}

.hero-icon i {
    font-size: 6rem;
    color: var(--yellow);
}

/* ============ BUTTONS ============ */
.btn-kesmasindo {
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    border: none;
    color: var(--white);
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-kesmasindo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-kesmasindo:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-kesmasindo:hover::before {
    left: 100%;
}

.btn-kesmasindo-outline {
    background: transparent;
    border: 2px solid var(--green-mid);
    color: var(--green-mid);
    padding: 10px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-kesmasindo-outline:hover {
    background: var(--green-mid);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-yellow {
    background: linear-gradient(135deg, var(--yellow), var(--gold));
    border: none;
    color: var(--dark);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 168, 37, 0.35);
    color: var(--dark);
}

/* ============ CARDS ============ */
.seminar-card {
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

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

.seminar-card .card-header-custom {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    padding: 20px 24px;
    position: relative;
    overflow: hidden;
}

.seminar-card .card-header-custom::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.seminar-card .card-header-custom h5 {
    color: var(--white);
    font-weight: 700;
    margin: 0;
    font-size: 1.1rem;
}

.seminar-card .card-body {
    padding: 24px;
}

.seminar-card .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--gray);
    font-size: 0.9rem;
}

.seminar-card .info-item i {
    color: var(--green-mid);
    width: 18px;
    text-align: center;
}

.seminar-card .price-tag {
    background: linear-gradient(135deg, var(--yellow-light), #fff9c4);
    color: var(--green-dark);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 8px;
}

/* ============ BADGES ============ */
.badge-buka {
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-tutup {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-pending {
    background: linear-gradient(135deg, var(--yellow), var(--gold));
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-disetujui {
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-ditolak {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ============ SECTION TITLE ============ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-dark);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), var(--green-mid));
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    margin-top: 20px;
    font-size: 1.05rem;
}

/* ============ FORM ============ */
.form-kesmasindo {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.form-kesmasindo .form-label {
    font-weight: 600;
    color: var(--green-dark);
    font-size: 0.9rem;
}

.form-kesmasindo .form-control,
.form-kesmasindo .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-kesmasindo .form-control:focus,
.form-kesmasindo .form-select:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.step-indicator .step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-indicator .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: var(--gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition);
}

.step-indicator .step.active .step-number {
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.step-indicator .step.completed .step-number {
    background: var(--green-light);
    color: var(--white);
}

.step-indicator .step-label {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.step-indicator .step.active .step-label {
    color: var(--green-dark);
}

.step-indicator .step-line {
    width: 60px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 16px;
    align-self: center;
    border-radius: 2px;
    transition: var(--transition);
}

.step-indicator .step-line.active {
    background: var(--green-mid);
}

/* File Upload */
.upload-area {
    border: 2px dashed var(--green-mid);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    background: var(--green-pale);
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    background: rgba(76, 175, 80, 0.15);
    border-color: var(--green-dark);
}

.upload-area i {
    font-size: 3rem;
    color: var(--green-mid);
    margin-bottom: 10px;
}

.upload-area p {
    color: var(--gray);
    font-size: 0.9rem;
}

.upload-preview {
    max-width: 300px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 16px;
}

/* ============ SUCCESS PAGE ============ */
.success-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.success-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 50px;
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--green-light), var(--green-mid));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.success-icon i {
    font-size: 3rem;
    color: var(--white);
}

/* ============ FOOTER ============ */
.footer-kesmasindo {
    background: linear-gradient(135deg, var(--green-dark) 0%, #153d1b 100%);
    color: rgba(255,255,255,0.8);
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-kesmasindo h5 {
    color: var(--yellow);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-kesmasindo a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-kesmasindo a:hover {
    color: var(--yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.85rem;
}

/* ============ NEW HOME SECTIONS ============ */
.transition-hover {
    transition: var(--transition);
}

.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(26, 107, 44, 0.15) !important;
}

.service-card-new {
    border: 1px solid rgba(0,0,0,0.05) !important;
}

.service-card-new .icon-box {
    width: 60px;
    height: 60px;
    background: var(--green-pale);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.service-card-new:hover .icon-box {
    background: var(--green-mid);
    color: white !important;
}

html {
    scroll-behavior: smooth;
}

#team .bi-person-circle {
    opacity: 0.8;
    transition: var(--transition);
}

#team .col-md-4:hover .bi-person-circle {
    opacity: 1;
    transform: scale(1.1);
}

#clients .bg-white:hover {
    border-color: var(--green-mid) !important;
    background: var(--green-pale) !important;
}

/* ============ ADMIN STYLES ============ */
.admin-sidebar {
    background: linear-gradient(180deg, var(--green-dark) 0%, #153d1b 100%);
    min-height: 100vh;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 1040;
    transition: var(--transition);
    overflow-y: auto;
}

.admin-sidebar .sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-sidebar .sidebar-brand h4 {
    color: var(--white);
    font-weight: 800;
    margin: 0;
    font-size: 1.2rem;
}

.admin-sidebar .sidebar-brand .brand-dot {
    width: 10px;
    height: 10px;
    background: var(--yellow);
    border-radius: 50%;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7) !important;
    padding: 14px 24px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-size: 0.9rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--white) !important;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--yellow);
}

.admin-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.admin-content {
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
    background: #f0f4e8;
}

.admin-topbar {
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-card .stat-icon.green {
    background: var(--green-pale);
    color: var(--green-mid);
}

.stat-card .stat-icon.yellow {
    background: var(--yellow-light);
    color: var(--gold);
}

.stat-card .stat-icon.blue {
    background: #e3f2fd;
    color: var(--blue);
}

.stat-card .stat-icon.red {
    background: #ffebee;
    color: #e53935;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Admin table */
.table-kesmasindo {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-kesmasindo .table {
    margin: 0;
}

.table-kesmasindo .table thead {
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
}

.table-kesmasindo .table thead th {
    color: var(--white);
    font-weight: 600;
    padding: 16px;
    border: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-kesmasindo .table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.table-kesmasindo .table tbody tr:hover {
    background: var(--green-pale);
}

/* Login page */
.login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.08;
}

.login-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    padding: 50px 40px;
    max-width: 440px;
    width: 100%;
}

.login-card h3 {
    color: var(--green-dark);
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.login-card .login-subtitle {
    color: var(--gray);
    text-align: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--green-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-dark);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-decoration {
        display: none;
    }

    .admin-sidebar {
        width: 0;
        overflow: hidden;
    }

    .admin-sidebar.show {
        width: 260px;
    }

    .admin-content {
        margin-left: 0;
    }

    .form-kesmasindo {
        padding: 24px;
    }

    .step-indicator .step-label {
        display: none;
    }

    .step-indicator .step-line {
        width: 30px;
    }
}

/* ============ ANIMATIONS ============ */
.fade-in {
    animation: fadeIn 0.6s ease;
}

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

.slide-up {
    animation: slideUp 0.5s ease;
}

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