/* =====================================================
   SISTEM MANAJEMEN LOA JURNAL
   CSS Utama - Halaman Publik
   ===================================================== */

/* Import Font */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 0.5rem;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    --shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,0.175);
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: #f8f9fa;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, #0d6efd 0%, #0a3d8f 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
}

.hero-section .display-5 {
    line-height: 1.2;
}

.hero-illustration {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* =====================================================
   STAT CARDS (Halaman Publik)
   ===================================================== */
.stat-card-mini {
    text-align: center;
    padding: 1rem;
}

.stat-card-mini .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card-mini .stat-label {
    color: var(--secondary);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* =====================================================
   TIMELINE
   ===================================================== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #dee2e6;
}

.timeline-content {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

/* =====================================================
   JOURNAL ICON
   ===================================================== */
.journal-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* =====================================================
   STEP CARDS (Cara Kerja)
   ===================================================== */
.step-card {
    padding: 1.5rem 1rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* =====================================================
   VALIDATION PAGE
   ===================================================== */
.info-item {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.info-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,0.1);
}

.input-group-text {
    background-color: #f8f9fa;
}

/* =====================================================
   PASSWORD STRENGTH
   ===================================================== */
.password-strength {
    height: 4px;
    border-radius: 2px;
    transition: all 0.3s;
}

.strength-weak   { background: #dc3545; width: 33%; }
.strength-medium { background: #ffc107; width: 66%; }
.strength-strong { background: #198754; width: 100%; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    font-weight: 500;
    border-radius: 0.375rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    border-radius: var(--border-radius);
}

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

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border-radius: var(--border-radius);
    border: none;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* =====================================================
   DETAIL LABELS (Admin)
   ===================================================== */
.detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #6c757d;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: #212529;
}

/* =====================================================
   UTILITY
   ===================================================== */
.min-vh-80 {
    min-height: 80vh;
}

.text-nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
        text-align: center;
    }

    .hero-section .d-flex {
        justify-content: center !important;
    }

    .stat-card-mini .stat-number {
        font-size: 1.5rem;
    }
}

@media print {
    .navbar, .footer, .btn { display: none !important; }
}
