/* ==========================================================================
   PROJECT SIMANIS - CUSTOM CSS
   Tema Warna: #247291 (Ocean Blue)
   ========================================================================== */

/* ==========================================================================
   1. ANIMASI & WELCOME CARD (Dashboard)
   ========================================================================== */

/* Animasi Fade In Up untuk card */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient Header (Ocean Blue) */
.welcome-header {
    background: linear-gradient(135deg, #3289ac 0%, #247291 50%, #164f6a 100%);
    border-radius: .75rem .75rem 0 0 !important;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}
.welcome-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: floatBubble 6s ease-in-out infinite;
}
.welcome-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite reverse;
}
@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Ikon Wrapper */
.welcome-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}
.welcome-icon {
    font-size: 1.75rem;
    color: #fff;
    animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Status Box (tint biru laut) */
.status-box {
    background: linear-gradient(135deg, #f4fafc 0%, #e8f3f8 100%);
    border: 1px dashed #b9d9e6;
}
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}
/* Dot online tetap hijau (warna semantik "online") */
.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}
.pulse-dot::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Card Hover Effect */
.welcome-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}
.welcome-card:hover {
    box-shadow: 0 8px 30px rgba(36, 114, 145, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. ROADMAP MODAL & TIMELINE
   ========================================================================== */

/* --- Base Modal Styles (deep ocean navy) --- */
.roadmap-modal-header {
    background-color: #123c4f !important;
}
.roadmap-modal-header .modal-title {
    color: #ffffff !important;
}
.roadmap-modal-body {
    background-color: #f8f9fa;
}
.roadmap-alert {
    border-color: #123c4f !important;
    color: #123c4f;
}
.roadmap-alert-icon {
    color: #123c4f;
}

/* --- Timeline Structure --- */
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48px;
    flex-shrink: 0;
}
.timeline-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.timeline-connector {
    width: 2px;
    flex-grow: 1;
    background-color: rgba(36, 114, 145, 0.15);
    margin-top: 8px;
    margin-bottom: 0;
    border-radius: 2px;
}
.timeline-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* --- Global Hover Effect --- */
.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}

/* --- Phase 1: Foundation (Ocean Light) --- */
.phase-1 .timeline-icon { background-color: #4a94b3; }
.phase-1 .timeline-badge { background-color: #4a94b3; color: #fff; }
.phase-1 .timeline-title { color: #4a94b3; }
.phase-1 .timeline-card:hover { border-color: #4a94b3; }
.phase-1 .timeline-card:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(74, 148, 179, 0.4); }

/* --- Phase 2: Core Module (Ocean Mid) --- */
.phase-2 .timeline-icon { background-color: #3585a6; }
.phase-2 .timeline-badge { background-color: #3585a6; color: #fff; }
.phase-2 .timeline-title { color: #3585a6; }
.phase-2 .timeline-card:hover { border-color: #3585a6; }
.phase-2 .timeline-card:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(53, 133, 166, 0.4); }

/* --- Phase 3: Integration (Primary #247291) --- */
.phase-3 .timeline-icon { background-color: #247291; }
.phase-3 .timeline-badge { background-color: #247291; color: #fff; }
.phase-3 .timeline-title { color: #247291; }
.phase-3 .timeline-card:hover { border-color: #247291; }
.phase-3 .timeline-card:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(36, 114, 145, 0.4); }

/* --- Phase 4: Rollout (Ocean Deep) --- */
.phase-4 .timeline-icon { background-color: #1d5f7c; }
.phase-4 .timeline-badge { background-color: #1d5f7c; color: #fff; }
.phase-4 .timeline-title { color: #1d5f7c; }
.phase-4 .timeline-card:hover { border-color: #1d5f7c; }
.phase-4 .timeline-card:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(29, 95, 124, 0.4); }
.phase-4 .timeline-badge-sub { background-color: rgba(29, 95, 124, 0.1); color: #1d5f7c; border-color: rgba(29, 95, 124, 0.3); }

/* --- Phase 5: QA Stage (Ocean Dark) --- */
.phase-5 .timeline-icon { background-color: #174d66; }
.phase-5 .timeline-badge { background-color: #174d66; color: #fff; }
.phase-5 .timeline-title { color: #174d66; }
.phase-5 .timeline-card:hover { border-color: #174d66; }
.phase-5 .timeline-card:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(23, 77, 102, 0.4); }

/* --- Phase 6: Go-Live (Sea Green / sukses) --- */
.phase-6 .timeline-icon { background-color: #1f8a70; }
.phase-6 .timeline-badge { background-color: #1f8a70; color: #fff; }
.phase-6 .timeline-title { color: #1f8a70; }
.phase-6 .timeline-card { border-color: rgba(31, 138, 112, 0.3); }
.phase-6 .timeline-card:hover { border-color: #1f8a70; }
.phase-6 .timeline-card:hover .timeline-icon { transform: scale(1.1); box-shadow: 0 0 15px rgba(31, 138, 112, 0.4); }

/* --- Footer Button --- */
.roadmap-footer-btn {
    background-color: #123c4f;
    color: #ffffff;
    transition: all 0.2s ease;
}
.roadmap-footer-btn:hover {
    background-color: #0c2b3a;
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   3. LOGIN PAGE - OCEAN BLUE BACKGROUND (Minimal, desain asli tetap)
   ========================================================================== */

/* Ganti background ungu dengan gradasi ocean blue */
.app-wrapper.d-block {
    min-height: 100vh;
    background: linear-gradient(135deg, #3289ac 0%, #247291 55%, #164f6a 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Bubble dekoratif proporsional (di belakang kartu) */
.app-wrapper.d-block::before,
.app-wrapper.d-block::after,
.app-wrapper.d-block .main-container::before,
.app-wrapper.d-block .main-container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    animation: floatBubble 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Bubble 1 - kiri atas (besar, soft) */
.app-wrapper.d-block::before {
    width: 220px;
    height: 220px;
    top: -70px;
    left: -70px;
}

/* Bubble 2 - kanan bawah (sedang, gerak terbalik) */
.app-wrapper.d-block::after {
    width: 140px;
    height: 140px;
    bottom: -50px;
    right: 8%;
    background: rgba(255, 255, 255, 0.08);
    animation-duration: 10s;
    animation-direction: reverse;
}

/* Bubble 3 - kanan atas (kecil) */
.app-wrapper.d-block .main-container::before {
    width: 90px;
    height: 90px;
    top: 15%;
    right: -30px;
    background: rgba(255, 255, 255, 0.12);
    animation-duration: 7s;
}

/* Bubble 4 - kiri bawah (paling kecil, gerak terbalik) */
.app-wrapper.d-block .main-container::after {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 5%;
    background: rgba(255, 255, 255, 0.10);
    animation-duration: 9s;
    animation-direction: reverse;
}

/* Pastikan kartu login tetap di atas bubble */
.app-wrapper.d-block .container {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   4. MODAL INFORMASI - OCEAN BLUE VIBE
   ========================================================================== */

/* Kartu modal: bulat lembut + bayangan dalam */
.modal-ocean {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(12, 43, 58, 0.35);
}

/* Header: gradasi ocean blue (pengganti dark navy lama) */
.modal-ocean .ocean-modal-header {
    background: linear-gradient(135deg, #3289ac 0%, #247291 55%, #164f6a 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

/* Bubble kecil dekoratif di header (halus, reuse keyframes floatBubble) */
.modal-ocean .ocean-modal-header::before {
    content: '';
    position: absolute;
    top: -45px;
    right: -25px;
    width: 110px;
    height: 110px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    animation: floatBubble 6s ease-in-out infinite;
    pointer-events: none;
}
.modal-ocean .ocean-modal-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -20px;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite reverse;
    pointer-events: none;
}

/* Judul header putih */
.modal-ocean .ocean-modal-header .modal-title {
    color: #ffffff;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Ikon info: lingkaran tint ocean (pengganti text-danger) */
.ocean-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background: #e8f3f8;
    border: 1px solid #b9d9e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ocean-icon-wrapper i {
    font-size: 2rem;
    color: #247291;
}

/* Tipografi body modal */
.ocean-modal-title {
    color: #123c4f;
}
.modal-ocean .modal-body p {
    color: #5f7684;
}

/* --- Responsive Adjustments --- */
@media (max-width: 576px) {
    .timeline-node,
    .timeline-icon {
        width: 40px !important;
    }
    .timeline-icon {
        height: 40px !important;
        font-size: 0.9rem;
    }
    .timeline-card {
        padding: 1rem;
    }
}
