/* =====================================================
   ALUR PELACAKAN ADMINISTRASI - Green Theme
   ===================================================== */

:root {
    --green-primary: #1cc88a;
    --green-dark:    #17a673;
    --green-darker:  #128b5e;
    --green-light:   #d1f5e8;
    --green-50:      rgba(28,200,138,.1);
}

/* ---- Override SB Admin primary to green ---- */
.bg-gradient-primary, .btn-primary, .badge-primary {
    background: linear-gradient(180deg, #1cc88a 0%, #17a673 100%) !important;
    border-color: #17a673 !important;
}
.btn-primary:hover { background: linear-gradient(180deg,#17a673 0%,#128b5e 100%) !important; }

.bg-gradient-green {
    background: linear-gradient(180deg, #1cc88a 0%, #17a673 100%) !important;
}

/* Sidebar */
.sidebar .nav-item .nav-link { color: rgba(255,255,255,.8); }
.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item.active .nav-link { color: #fff; }
.sidebar .nav-item.active .nav-link { background: rgba(255,255,255,.15); border-radius:6px; }
.sidebar .sidebar-brand { background: rgba(0,0,0,.1); }
.sidebar hr.sidebar-divider { border-top: 1px solid rgba(255,255,255,.15); }
.sidebar .sidebar-heading { color: rgba(255,255,255,.5); font-size:.65rem; }

/* Topbar search button */
.navbar-search .btn-primary { background: #1cc88a !important; border-color: #17a673 !important; }

/* Cards Stats */
.card { border: none; border-radius: 10px; }
.card-header { border-radius: 10px 10px 0 0 !important; }
.border-left-primary { border-left: 4px solid #1cc88a !important; }
.border-left-success { border-left: 4px solid #28a745 !important; }
.border-left-info    { border-left: 4px solid #36b9cc !important; }
.border-left-warning { border-left: 4px solid #f6c23e !important; }
.border-left-danger  { border-left: 4px solid #e74a3b !important; }
.text-primary { color: #1cc88a !important; }

/* Progress Steps Tracker */
.tracker-wrapper { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin: 30px 0; }
.tracker-step { flex: 1; text-align: center; position: relative; }
.tracker-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
    transition: background .4s;
}
.tracker-step.completed:not(:last-child)::after { background: #1cc88a; }
.tracker-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 18px;
    color: #aaa;
    border: 3px solid #e0e0e0;
    position: relative; z-index: 1;
    transition: all .4s;
}
.tracker-step.completed .tracker-icon { background: #1cc88a; border-color: #1cc88a; color: #fff; }
.tracker-step.active .tracker-icon   { background: #fff; border-color: #1cc88a; color: #1cc88a; box-shadow: 0 0 0 4px rgba(28,200,138,.2); }
.tracker-step.rejected .tracker-icon { background: #e74a3b; border-color: #e74a3b; color: #fff; }
.tracker-label { font-size: .72rem; font-weight: 600; color: #888; margin-top: 4px; }
.tracker-step.completed .tracker-label { color: #1cc88a; }
.tracker-step.active .tracker-label   { color: #1cc88a; font-weight: 700; }
.tracker-step.rejected .tracker-label { color: #e74a3b; }
.tracker-date { font-size:.65rem; color:#aaa; margin-top:2px; }

/* Timeline Riwayat */
.timeline-item { display: flex; gap: 16px; margin-bottom: 20px; }
.timeline-icon { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.timeline-content { flex: 1; background: #f8f9fc; border-radius: 8px; padding: 12px 16px; border-left: 3px solid #1cc88a; }
.timeline-content h6 { margin: 0 0 4px; font-size: .85rem; font-weight: 700; }
.timeline-content p  { margin: 0; font-size: .8rem; color: #666; }
.timeline-content .time { font-size: .72rem; color: #aaa; }

/* Login page */
.login-wrapper { min-height: 100vh; background: linear-gradient(135deg, #1cc88a 0%, #128b5e 100%); display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 430px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.login-header { background: linear-gradient(135deg, #17a673, #0f7a54); padding: 40px 30px 30px; text-align: center; color: #fff; }
.login-header .icon-wrap { width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 30px; }
.login-header h4 { font-weight: 800; margin-bottom: 4px; }
.login-header p  { opacity: .8; font-size: .85rem; margin: 0; }
.login-body { background: #fff; padding: 30px; }
.login-body .form-control { border-radius: 8px; border: 2px solid #e0e0e0; padding: 10px 14px; transition: border-color .3s; }
.login-body .form-control:focus { border-color: #1cc88a; box-shadow: 0 0 0 3px rgba(28,200,138,.15); }
.login-body .btn-login { background: linear-gradient(135deg, #1cc88a, #17a673); border: none; border-radius: 8px; padding: 12px; font-weight: 700; font-size: 1rem; width: 100%; color: #fff; transition: opacity .3s; }
.login-body .btn-login:hover { opacity: .9; }
.icon-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Scroll-to-top green */
.scroll-to-top { background: #1cc88a; }

/* Table hover */
.table-hover tbody tr:hover { background: #f0fff8; }

/* Badge override */
.badge-success { background: #1cc88a !important; }

/* Form focus green */
.form-control:focus { border-color: #1cc88a; box-shadow: 0 0 0 .2rem rgba(28,200,138,.25); }

/* Button outline green */
.btn-outline-success { color: #1cc88a !important; border-color: #1cc88a !important; }
.btn-outline-success:hover { background: #1cc88a !important; color: #fff !important; }

/* Stat card number */
.h5.mb-0 { font-size: 1.5rem; }

/* Avatar placeholder */
.avatar-circle { width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#1cc88a,#17a673);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:15px; }

/* Page Header */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5rem; font-weight: 800; color: #333; }
.page-header p   { color: #888; margin: 0; }
