
:root {
    --navbar-height: 76px;
    --sidebar-width: 240px;
    --sidebar-width-hide: -240px;
    /*--primary-color: #297db5;*/
    --primary-color: #1E3A8A;
    --primary-color-darker: #1c347d;
    --primary-color-light: #3B82F6;
    --primary-purple: #3d2b6b;
    --secondary-dark: #2c3e50;
    --light-bg: #f8f9fa;
    --biru-prabowo: linear-gradient(135deg, #ADD8E6, #87CEEB);
    --biru-gelap: #1E40AF;
    --biru-terang: #3B82F6;
    --putih-indonesia: #FFFFFF;
    --abu-gelap: #2C3E50;
    --abu-terang: #ECF0F1;
    --secondary-color: #afddfc;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
}

/* Color schemes for different modules */
.color-abu {background: linear-gradient(to right, #f0f0f0, #d3d3d3);}
.color-blue { background: linear-gradient(135deg, #3498db, #2980b9); color: white;}
.color-biru-prabowo {background: var(--biru-prabowo);}
.color-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.color-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); color: white;}
.color-green { background: linear-gradient(135deg, #27ae60, #229954); color:white;}
.color-green-light { background: linear-gradient(135deg, #87ed9f, #499c5d); color:black;}
.color-teal { background: linear-gradient(135deg, #1abc9c, #16a085); }
.color-red { background: linear-gradient(135deg, #e74c3c, #c0392b); color: white;}
.color-dark { background: linear-gradient(135deg, #34495e, #2c3e50); color: white;}
.color-yellow { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.color-yellow-light { background: linear-gradient(135deg, #f9e79f, #edd368); }
.color-yellow-dark { background: linear-gradient(135deg, #d68910, #b7950b); }
.color-yellow-gold { background: linear-gradient(135deg, #ffd700, #ffb347); }
.color-yellow-amber { background: linear-gradient(135deg, #ffc107, #ff8f00); }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 12pt;
}
.table thead tr th{
    background: var(--biru-prabowo);
    color: black;
    text-align: left;
}
.card {
    /* transform: translateY(-3px); */
    box-shadow: 0 15px 15px -3px rgba(0, 0, 0, 0.1), 0 15px 15px 3px rgba(0, 0, 0, 0.05);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.card-header{
    font-weight: bold;
    font-family: 'Tahoma';
    font-size: 12pt;
}

/* Navbar */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-darker) 100%);
    padding: 0.2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}
.header-right {
    display: flex;
    align-items: center;
}
.navbar-brand {
    color: white !important;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    /*width: 40px;*/
    height: 60px;
    /*background: linear-gradient(135deg, #4fc3f7 0%, #2196f3 100%);*/
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    width: auto;
    object-fit: contain;
}
.logo-icon:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    margin: 0 10px;
    font-weight: 500;
    transition: all 0.3s;
}
.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.message-notif-dropdown {
    position: relative;
}
.message-notif-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    /*background: rgba(255, 255, 255, 0.1);*/
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}
.message-notif-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-profile-dropdown {
    position: relative;
}
.profile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.profile-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}
.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}
.profile-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.2;
}
.profile-arrow {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}
.profile-toggle[aria-expanded="true"] .profile-arrow {
    transform: rotate(180deg);
}

.profile-menu {
    width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 12px;
    margin-top: 8px;
    background: #ffffff;
}
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
}
.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}
.dropdown-user-info {
    flex: 1;
}
.dropdown-user-info strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
}
.dropdown-user-info small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    word-break: break-all;
}
.profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    /*padding: 10px 12px;*/
    border-radius: 8px;
    color: #374151;
    font-size: 14px;
    transition: all 0.3s ease;
}
.profile-menu .dropdown-item:hover {
    background: #f3f4f6;
    color: #1f2937;
}
.profile-menu .dropdown-item.text-danger {
    color: #dc2626;
}
.profile-menu .dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
/*  end navbar */

/*  Sidebar Styles */
.sidebar {
    /* background-color: var(--light-bg); */
    background-color:#1c347d;
    color: #b1c8ce;
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    padding: 0px 0px 0px 0px;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 999;
}
.sidebar-hidden {
    left: var(--sidebar-width-hide);
}
.sidebar-menu {
    list-style: none;
    margin: 0 5px 0 5px;
    padding: 0 0 0 0;
    font-size: 11pt;
}
.sidebar-menu-sub {
    list-style: none;
    margin: 0 0 0 5px;
    padding: 0 0 0 0;
    font-size: 11pt;
}
.sidebar-item {
    /*     margin-bottom: 5px; */
    /*border-left: ;*/
}
.sidebar-link {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    color:#b1c8ce;
    text-decoration: none;
    transition: all 0.3s ease;
}
.sidebar-link.active {
    background-color: var(--secondary-color);
    color: rgb(29, 28, 28);
    border-left: 4px solid var(--primary-color);
    font-weight: bold; 
}
.sidebar-link:hover, .sidebar-link.active:hover, .nav-link:hover, .dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    font-weight: bold;
}
.sidebar-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
.sidebar-dropdown {
    overflow: hidden;
    /* max-height: 0; */
    transition: max-height 0.3s ease;
}
.sidebar-dropdown.show {
    max-height: 1000px;
}
.sidebar-dropdown .sidebar-link {
    padding-left: 50px;
}
.sidebar-dropdown .sidebar-link.active {
    background-color: rgba(52, 152, 219, 0.2);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.has-dropdown {
  position: relative;
}
.dropdown-arrow {
  position: absolute;
  right: 20px;
  transition: transform 0.3s ease;
}
.dropdown-arrow.active {
  transform: rotate(180deg);
}
/*  end sidebar */

/* Main Content */
.main-content {
    padding: 20px 0;
    background: var(--light-bg);
    min-height: 60vh;
}
.main-content-fluid {
  margin-left: var(--sidebar-width);
  /* margin-top: var(--navbar-height); */
  padding: 20px;
  width: calc(100% - var(--sidebar-width));
  transition: all 0.3s ease;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    border: 2px solid transparent;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #4fc3f7;
}
.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ADD8E6, #87CEEB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.service-icon i {
    font-size: 3rem;
    color: white;
}
.service-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}
.badge-covid {
    position: absolute;
    top: 0;
    right: -10px;
    background: #ff5252;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}
.service-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}
.service-subtitle {
    font-size: 0.85rem;
    color: #7f8c8d;
    line-height: 1.4;
}
/*  end service card */

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 50px 0px 0px 0px;
    /*padding: 0px 0px 0px 0px;*/
    /*margin-bottom: 0px;*/
    /*clear: both;*/
    /*position:absolute;*/
    /*bottom:0;*/
    /*width:100%;*/
    /*position: relative;*/
    /*height: 200px;*/
    /*margin-top: -200px;*/
}
.footer h5 {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 1.2rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}
.map-container {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}
.map-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.address-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}
.footer-bottom {
    background: #1a252f;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
}
.footer-logo {
    width: 100px;
    margin-bottom: 10px;
}
/*  end footer */

/*  tambahan */
.password-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    border: 2px solid #e9ecef;
}
.password-section h5 {
    color: #007bff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .top-header {
        padding: 0 15px;
    }
    .profile-info {
        display: none;
    }
    .profile-arrow {
        display: none;
    }

    .service-card {
        margin-bottom: 20px;
    }
  
    .sidebar {
        left: var(--sidebar-width-hide);
    }
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        padding: 20px 0;
    }
    .main-content-fluid {
        margin-left: 0;
        width: 100%;
        /*padding: 20px 0;*/
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* riwayat perjalanan naskah */
ul.timeline {
    list-style-type: none;
    position: relative;
}
ul.timeline:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}
ul.timeline > li {
    margin: 20px 0;
    padding-left: 20px;
}
ul.timeline > li:before {
    content: ' ';
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #22c0e8;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}
/* end riwayat */


        .map-container-presensi {
            position: relative;
            height: calc(100vh - 270px);
            min-height: 500px;
        }
        #map {
            width: 100%;
            height: 100%;
            border: none;
        }
        #div_map {
            width: 100%;
            height: 100%;
            border: none;
        }

        .bottom-panel {
            position: fixed;
            bottom: 70px;
            left: 0;
            right: 0;
            background: white;
            border-radius: 20px 20px 0 0;
            box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
            z-index: 1000;
            transition: transform 0.3s ease;
        }
        .bottom-panel.collapsed {
            transform: translateY(calc(100% - 60px));
        }

        .bottom-handle {
            width: 40px;
            height: 4px;
            background: #ddd;
            border-radius: 2px;
            margin: 12px auto 16px;
            cursor: pointer;
        }

        .info-input {
            padding: 0 20px 20px;
        }

        .info-text {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 12px;
            /*padding: 12px 16px;*/
            padding: 5px;
            font-size: 14px;
            color: #6c757d;
            margin-bottom: 16px;
        }

        /* tombol absen start/stop */
        .absent-start-btn {
            background: linear-gradient(135deg, #198754 0%, #157347 100%);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        }
        .absent-start-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        }

        .absent-stop-btn {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 12px;
            font-weight: 600;
            font-size: 16px;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
        }
        .absent-stop-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
        }

        .map-controls {
            position: absolute;
            right: 16px;
            top: 16px;
            z-index: 999;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .control-btn {
            background: white;
            border: none;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        .control-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        }

        /* Bottom Navigation */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #e9ecef;
            padding: 8px 0;
            padding-bottom: calc(8px + env(safe-area-inset-bottom));
            z-index: 1001;
            box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
        }
        .nav-container {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 600px;
            margin: 0 auto;
            padding: 0 16px;
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #6c757d;
            padding: 8px 12px;
            border-radius: 12px;
            transition: all 0.3s ease;
            cursor: pointer;
            min-width: 60px;
        }
        .nav-item.active {
            color: #3498db;
            background: rgba(52, 152, 219, 0.1);
        }
        .nav-item:hover {
            color: #3498db;
            background: rgba(52, 152, 219, 0.05);
            text-decoration: none;
        }
        .nav-item i {
            font-size: 20px;
            margin-bottom: 4px;
        }
        .nav-item span {
            font-size: 11px;
            font-weight: 500;
            text-align: center;
        }

        .search-overlay {
            position: absolute;
            top: 5px;
            left: 16px;
            right: 16px;
            z-index: 999;
        }
        /*#text_info {
            top: 5px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 2px 20px rgba(0,0,0,0.1);
            padding: 12px 16px;
            border: none;
            font-size: 14px;
            width: 100%;
        }*/
        /*.search-box:focus {
            outline: none;
            box-shadow: 0 4px 25px rgba(0,0,0,0.15);
        }*/
        /*  end presensi */