/* 
    Styling UI Manajemen Keperawatan
    Author: Aria Rahman, Siddiq Ahmad Anshori
    Title: styles
    Description: Styling UI untuk Aplikasi Manajemen Keperawatan

*/

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #f5f9ff;
    color: #1a2b4c;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.gradient-orb {
    position: fixed;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle at 30% 30%, rgba(0, 202, 255, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    top: -20vh;
    right: -10vw;
    animation: float 30s infinite alternate;
}

.gradient-orb2 {
    position: fixed;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle at 70% 70%, rgba(67, 0, 255, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    z-index: -2;
    bottom: -20vh;
    left: -10vw;
    animation: float2 35s infinite alternate;
}

.gradient-orb3 {
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 222, 0.1), transparent 70%);
    border-radius: 50%;
    filter: blur(90px);
    z-index: -2;
    top: 30vh;
    left: 30vw;
    animation: float3 25s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(100px, 100px) scale(1.3); opacity: 0.8; }
}

@keyframes float2 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(-80px, -80px) scale(1.4); opacity: 0.8; }
}

@keyframes float3 {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(60px, -60px) scale(1.2); opacity: 0.6; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 101, 248, 0.2);
    border-radius: 60px;
    padding: 16px 32px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px -10px rgba(67, 0, 255, 0.15);
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4300FF, #0065F8, #00CAFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.1;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Burger Button */
.burger-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-btn span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    margin: 3px 0;
    transition: 0.4s;
    border-radius: 3px;
}

.burger-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-btn.active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-links {
    display: flex;
    gap: 5px;
}

.nav-links a {
    color: #2d4a7c;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 40px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(0, 101, 248, 0.4);
}

/* Main Content */
.page {
    display: none;
    min-height: 100vh;
    padding: 120px 24px 60px;
    max-width: 1300px;
    margin: 0 auto;
    margin-top: 20px;
}

.page.active {
    display: block;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #1a2b4c;
}

.section-title i {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #4300FF, #0065F8, #00CAFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: #3d5a7c;
    margin-bottom: 30px;
}

/* Hospital Badge with Image */
.hospital-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(67, 0, 255, 0.1), rgba(0, 202, 255, 0.1));
    padding: 12px 24px;
    border-radius: 50px;
    border: 1px solid rgba(0, 101, 248, 0.3);
    margin-bottom: 20px;
    font-weight: 600;
    color: #4300FF;
}

.hospital-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.stats-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: white;
    padding: 20px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.1);
    border: 1px solid rgba(0, 202, 255, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: #4d6a8c;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 50px 0;
}

.feature-item {
    background: white;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(0, 202, 255, 0.2);
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.1);
    transition: transform 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: #00CAFF;
}

.feature-item i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.feature-item h3 {
    color: #1a2b4c;
    margin-bottom: 10px;
}

.feature-item p {
    color: #4d6a8c;
}

/* Marquee - Fixed */
.marquee-container {
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(67, 0, 255, 0.05), rgba(0, 202, 255, 0.05));
    padding: 20px 0;
    margin-bottom: 15px;
    border-radius: 50px;
}

.marquee-wrapper.reverse {
    margin-bottom: 0;
}

.marquee {
    display: flex;
    white-space: nowrap;
}

.left-marquee {
    animation: scrollLeft 35s linear infinite;
}

.right-marquee {
    animation: scrollRight 35s linear infinite;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
}

.marquee-content span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 30px;
    font-size: 1.1rem;
    color: #2d4a7c;
    font-weight: 500;
    white-space: nowrap;
}

.marquee-content i {
    background: linear-gradient(135deg, #4300FF, #00CAFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.9rem;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.news-item {
    background: white;
    border-radius: 30px;
    padding: 25px;
    border-left: 4px solid #4300FF;
    transition: 0.3s;
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.1);
}

.news-item:hover {
    transform: translateX(5px);
    border-left-color: #00CAFF;
}

.news-date {
    color: #0065F8;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a2b4c;
}

.news-item p {
    color: #4d6a8c;
    line-height: 1.5;
}

/* Announcements */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.announcement-item {
    background: white;
    border-radius: 30px;
    padding: 25px;
    border: 1px solid rgba(0, 101, 248, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.announcement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -10px rgba(67, 0, 255, 0.15);
}

.announcement-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: #00CAFF;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* FAQ */
.faq-container {
    margin: 50px 0;
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 202, 255, 0.2);
    box-shadow: 0 5px 15px -5px rgba(67, 0, 255, 0.1);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1a2b4c;
}

.faq-question i {
    color: #0065F8;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    background: rgba(0, 202, 255, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    color: #3d5a7c;
}

.faq-answer.active {
    max-height: 200px;
    padding: 20px 25px;
}

/* Page Intro */
.page-intro {
    background: white;
    border-radius: 30px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #4300FF;
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.1);
}

.page-intro h3 {
    font-size: 1.8rem;
    color: #1a2b4c;
    margin-bottom: 15px;
}

.page-intro h3 i {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-intro p {
    color: #3d5a7c;
    font-size: 1.1rem;
}

/* Tabs - Centered */
.tabs-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
}

.tabs {
    display: flex;
    gap: 15px;
    background: white;
    padding: 8px;
    border-radius: 60px;
    box-shadow: 0 5px 20px rgba(67, 0, 255, 0.1);
    border: 1px solid rgba(0, 101, 248, 0.1);
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    color: #4d6a8c;
    font-family: inherit;
}

.tab-btn.active {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 0, 255, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border: 1px solid rgba(0, 202, 255, 0.2);
    border-radius: 30px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.1);
}

.category-card:hover {
    transform: scale(1.05);
    border-color: #4300FF;
    box-shadow: 0 20px 40px -10px rgba(67, 0, 255, 0.2);
}

.category-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #4300FF, #0065F8, #00CAFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.category-card h4 {
    color: #1a2b4c;
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.category-card p {
    color: #4d6a8c;
    font-size: 0.9rem;
}

/* Back button */
.back-btn {
    background: transparent;
    border: 1px solid #4300FF;
    color: #4300FF;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.back-btn:hover {
    background: rgba(67, 0, 255, 0.1);
    transform: translateX(-5px);
}

/* Search Box */
.page-search {
    margin: 30px 0;
    display: flex;
    justify-content: flex-end;
}

.page-search .search-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 40px;
    padding: 12px 25px;
    border: 1px solid rgba(0, 101, 248, 0.2);
    width: 300px;
    box-shadow: 0 5px 15px -5px rgba(67, 0, 255, 0.1);
}

.page-search .search-box i {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-right: 10px;
}

.page-search .search-box input {
    background: transparent;
    border: none;
    color: #1a2b4c;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}

.page-search .search-box input::placeholder {
    color: #7a94b5;
}

/* SOP Grid */
.sop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sop-card {
    background: white;
    border: 1px solid rgba(0, 202, 255, 0.2);
    border-radius: 30px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.1);
}

.sop-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #4300FF;
    box-shadow: 0 30px 50px -20px rgba(67, 0, 255, 0.3);
}

.sop-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #4300FF, #0065F8, #00CAFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.sop-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1a2b4c;
}

.sop-card p {
    color: #4d6a8c;
    margin-bottom: 20px;
}

.sop-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sop-tag {
    background: rgba(0, 202, 255, 0.1);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 101, 248, 0.2);
    color: #2d4a7c;
}

.sop-empty-state {
    grid-column: 1 / -1;
    background: white;
    border: 1px dashed rgba(0, 101, 248, 0.35);
    border-radius: 30px;
    padding: 42px 28px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(67, 0, 255, 0.08);
}

.sop-empty-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #4300FF, #0065F8, #00CAFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sop-empty-state h3 {
    color: #1a2b4c;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.sop-empty-state p {
    color: #4d6a8c;
    max-width: 560px;
    margin: 0 auto;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border: 1px solid rgba(0, 202, 255, 0.3);
    border-radius: 50px;
    padding: 40px;
    max-width: 1000px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 50px 80px -20px rgba(67, 0, 255, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 101, 248, 0.2);
}

.modal-header h2 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.close-modal {
    background: none;
    border: none;
    color: #7a94b5;
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #4300FF;
    transform: rotate(90deg);
}

/* SOP Detail Sections */
.sop-detail-section {
    background: rgba(0, 202, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #4300FF;
}

.sop-detail-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2b4c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sop-detail-title i {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tujuan-list {
    margin: 8px 0 0 20px;
    padding-left: 6px;
    color: #2d4a7c;
}

.tujuan-list li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.pengertian-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #2d4a7c;
}

.pengertian-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pengertian-title {
    margin: 0;
}

.pengertian-sublist {
    margin: 0 0 0 24px;
    padding-left: 6px;
}

.pengertian-sublist li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.sop-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(0, 202, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 0.9rem;
    color: #4d6a8c;
    font-weight: 500;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a2b4c;
}

/* Prosedur Visual */
.prosedur-visual {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prosedur-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(0, 101, 248, 0.2);
    transition: transform 0.3s;
    position: relative;
}

.prosedur-step:hover {
    transform: translateX(10px);
    border-color: #4300FF;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: #1a2b4c;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.step-content.has-items .step-item-group {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 101, 248, 0.04);
    border: 1px solid rgba(0, 101, 248, 0.12);
    margin-bottom: 10px;
}

.step-content.has-items .step-item-group:last-child {
    margin-bottom: 0;
}

.step-desc {
    color: #4d6a8c;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 600;
}

.step-content.has-items .step-desc {
    font-size: 0.96rem;
    line-height: 1.65;
    font-weight: 600;
}

.step-desc-indexed {
    display: grid;
    grid-template-columns: minmax(2ch, max-content) 1fr;
    column-gap: 8px;
    align-items: start;
}

.step-desc-marker {
    color: inherit;
    font-weight: inherit;
    text-align: right;
}

.step-desc-text {
    min-width: 0;
}

.step-detail-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.step-detail-entry {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-detail-item {
    color: #7a94b5;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
}

.step-detail-item-indexed {
    display: grid;
    grid-template-columns: minmax(2.5ch, max-content) 1fr;
    column-gap: 8px;
    align-items: start;
}

.step-detail-marker {
    color: inherit;
    font-weight: 500;
    text-align: center;
    padding-left: 5px;
}

.step-detail-text {
    min-width: 0;
}

.step-subdetail-list {
    margin-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-subdetail-item {
    color: #7a94b5;
    font-size: 0.88rem;
    line-height: 1.55;
}

.step-subdetail-item.is-formula {
    grid-template-columns: 1fr;
    background: rgba(67, 0, 255, 0.06);
    border: 1px solid #4300FF;
    border-radius: 8px;
    padding: 8px 10px;
    margin: 4px 0;
    color: #1a2b4c;
    font-family: 'JetBrains Mono', monospace;
}

.formula-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.formula-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.formula-inline-marker {
    min-width: 1.8ch;
    font-weight: 600;
}

.step-detail {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #7a94b5;
    font-style: normal;
    font-weight: 400;
}

.step-arrow {
    position: absolute;
    bottom: -25px;
    left: 40px;
    color: #00CAFF;
    font-size: 1.2rem;
    opacity: 0.5;
}

.prosedur-step:last-child .step-arrow {
    display: none;
}

.related-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.related-tag {
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 101, 248, 0.2);
    color: #2d4a7c;
    transition: all 0.2s;
}

.related-tag:hover {
    background: rgba(0, 202, 255, 0.1);
    border-color: #4300FF;
}

/* Footer */
.footer {
    background: white;
    border-top: 1px solid rgba(0, 202, 255, 0.2);
    padding: 60px 24px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #1a2b4c;
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4300FF, #00CAFF);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #4d6a8c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #4300FF;
    transform: translateX(5px);
}

.footer-links i {
    width: 20px;
    color: #00CAFF;
}

/* Partnership Section */
.partnership {
    max-width: 1300px;
    margin: 40px auto 30px;
    text-align: center;
    padding: 25px 24px;
    border-top: 1px solid rgba(0, 101, 248, 0.2);
    border-bottom: 1px solid rgba(0, 101, 248, 0.2);
    background: linear-gradient(90deg, rgba(67, 0, 255, 0.02), rgba(0, 202, 255, 0.02));
}

.partnership-divider {
    position: relative;
    margin-bottom: 25px;
}

.partnership-divider span {
    background: white;
    padding: 0 20px;
    color: #4d6a8c;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.partnership-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4300FF, #00CAFF, #4300FF, transparent);
    z-index: -1;
}

.partnership-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.upi-logo-full {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.rsud-logo-full {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.upi-logo-icon {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.partnership-text {
    color: #4d6a8c;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.partnership-text i {
    color: #00CAFF;
    font-size: 1.1rem;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    color: #7a94b5;
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        gap: 20px;
    }
    .tabs {
        width: 100%;
        border-radius: 40px;
    }
    .tab-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 1280px) {
    .burger-btn {
        display: flex;
    }
    .desktop-spacer {
        display: none;
    }
    .navbar {
        padding: 12px 20px;
    }
    .logo {
        font-size: 1.8rem;
    }
    .logo img {
        height: 32px;
    }
    .nav-links {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: white;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 30px 20px;
        border-radius: 30px;
        box-shadow: 0 20px 40px rgba(67, 0, 255, 0.15);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        border: 1px solid rgba(0, 101, 248, 0.2);
    }
    .nav-links.active {
        transform: translateY(0);
    }
    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
    }
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .stats-container {
        justify-content: center;
    }
    .section-title {
        font-size: 2rem;
    }
    .page-search {
        justify-content: center;
    }
    .page-search .search-box {
        width: 100%;
    }
    .modal-content {
        padding: 30px 20px;
    }
    .modal-header h2 {
        font-size: 1.8rem;
    }
    .tabs-container {
        padding: 0 10px;
    }
    .tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 30px;
        padding: 10px;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .marquee-content span {
        padding: 0 20px;
        font-size: 0.9rem;
    }
    .prosedur-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .step-arrow {
        left: 20px;
        transform: rotate(90deg);
    }
    .hospital-badge {
        font-size: 0.9rem;
        padding: 8px 16px;
        gap: 8px;
    }
    .hospital-logo {
        height: 24px;
    }
    .partnership-logos {
        display: flex;
    align-items: center;
    justify-content: center;
        gap: 20px;
    }
    .upi-logo-full {
        height: 40px;
    }
    .rsud-logo-full {
        height: 80px;
    }
    .upi-logo-icon {
        height: 35px;
    }
    .partnership-text {
        font-size: 0.8rem;
    }
    .footer-col h4::after {
        width: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    .stat-value {
        font-size: 2rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .stat-item {
        padding: 15px 20px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .announcements-grid {
        grid-template-columns: 1fr;
    }
    .sop-grid {
        grid-template-columns: 1fr;
    }
    .category-grid {
        grid-template-columns: 1fr;
    }
    .marquee-content span {
        padding: 0 15px;
        font-size: 0.8rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .logo img {
        height: 28px;
    }
    .partnership-logos {
        display: flex;
    align-items: center;
    justify-content: center;
        gap: 15px;
    }
    .upi-logo-full {
        height: 35px;
    }
    .rsud-logo-full {
        height: 70px;
    }
    .upi-logo-icon {
        height: 30px;
    }
    .partnership-text {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 5px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links a {
        justify-content: center;
    }
}

/* Login Modal Styles */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f9ff 0%, #e8f0fe 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 30px 60px rgba(67, 0, 255, 0.2);
    border: 1px solid rgba(0, 202, 255, 0.2);
    animation: fadeInUp 0.5s ease;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    height: 80px;
    width: auto;
    margin-bottom: 20px;
}

.login-header h2 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.login-header p {
    color: #4d6a8c;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    background: #f5f9ff;
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 101, 248, 0.2);
    transition: all 0.3s;
}

.input-group:focus-within {
    border-color: #4300FF;
    box-shadow: 0 0 0 3px rgba(67, 0, 255, 0.1);
}

.input-group i {
    color: #0065F8;
    font-size: 1.2rem;
    margin-right: 12px;
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    flex: 1;
    font-size: 1rem;
    color: #1a2b4c;
}

.input-group input::placeholder {
    color: #9aaec9;
}

.login-btn {
    background: linear-gradient(135deg, #4300FF, #0065F8);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(67, 0, 255, 0.3);
}

.login-error {
    color: #e74c3c;
    font-size: 0.85rem;
    text-align: center;
    margin-top: -10px;
}

.demo-credentials {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 101, 248, 0.1);
    text-align: center;
}

.demo-credentials p {
    font-size: 0.8rem;
    color: #7a94b5;
    margin-bottom: 5px;
}

.demo-credentials strong {
    color: #4300FF;
}

/* User Info in Navbar */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(0, 101, 248, 0.2);
}

.user-info i {
    font-size: 1.4rem;
    color: #4300FF;
}

.user-info span {
    font-weight: 600;
    color: #1a2b4c;
}

.logout-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

/* Responsive untuk Login Modal */
@media (max-width: 1280) {
    .login-card {
        padding: 30px 25px;
        margin: 0 15px;
    }
    
    .login-logo {
        height: 60px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .user-info {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 101, 248, 0.2);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 20px;
    }
    
    .login-logo {
        height: 50px;
    }
    
    .input-group {
        padding: 10px 16px;
    }
    
    .login-btn {
        padding: 12px;
    }
}

/* Data Loader Overlay */
.data-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    padding: 30px 40px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(67, 0, 255, 0.15);
    border: 1px solid rgba(0, 101, 248, 0.2);
}

.loader-content i {
    font-size: 3rem;
    background: linear-gradient(135deg, #4300FF, #0065F8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: spin 1s linear infinite;
}

.loader-content p {
    margin-top: 15px;
    color: #4d6a8c;
    font-size: 0.9rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}