body {
    font-family: "Inter", Arial, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 30px;
    color: #2d2d2d;
}

h2 {
    margin-bottom: 20px;
    font-size: 26px;
    font-weight: 700;
    color: #1a73e8;
}

label {
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    color: #333;
}

input[type="file"] {
    padding: 12px;
    background: #fff;
    border: 2px solid #dce3ec;
    border-radius: 10px;
    width: 350px;
    cursor: pointer;
    transition: 0.2s ease;
    margin-bottom: 12px;
}

input[type="file"]:hover {
    border-color: #1a73e8;
    background: #eef5ff;
}

button {
    margin-top: 20px;
    padding: 12px 22px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0px 4px 8px rgba(26, 115, 232, 0.25);
}

button:hover {
    background: #0d5fcc;
    box-shadow: 0px 6px 12px rgba(26, 115, 232, 0.35);
}

#result {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.08);
}

h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 22px;
    border-left: 5px solid #1a73e8;
    padding-left: 10px;
    font-weight: 700;
}

h4 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #444;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 3px 10px rgba(0,0,0,0.07);
}

th {
    background: #1a73e8;
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid #e6e6e6;
    font-size: 14px;
}

tr:nth-child(even) {
    background: #f9fbff;
}

tr:hover td {
    background: #eef5ff;
}

p i {
    color: #777;
}

#info-elb {
    position: absolute;
    top: 15px;
    right: 20px;
    background: #1a73e8;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    opacity: 0.95;
}

/* ========== POPUP HELP ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
}

.modal-content {
    background: white;
    width: 500px;
    max-width: 90%;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-height: 80vh;
    overflow-y: auto;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.close:hover {
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========== STYLE TOMBOL DOWNLOAD ========== */
button[onclick*="downloadDepositExcel"] {
    background: #28a745 !important;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    margin-left: 15px;
}

button[onclick*="downloadDepositExcel"]:hover {
    background: #218838 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

button[onclick*="downloadDepositExcel"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Tombol Download Semua Data */
button[onclick*="All_Anomalies"] {
    background: #17a2b8 !important;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
    margin: 20px auto 0 auto;
    display: block;
}

button[onclick*="All_Anomalies"]:hover {
    background: #138496 !important;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

/* Tombol Download IDN */
button[onclick*="IDN_Tidak_Di_Motion"] {
    background: #28a745 !important;
}

/* Tombol Download Motion */
button[onclick*="Motion_Tidak_Di_IDN"] {
    background: #28a745 !important;
}

@media (max-width: 768px) {
    button[onclick*="downloadDepositExcel"] {
        padding: 8px 12px;
        font-size: 12px;
        margin-left: 10px;
    }
    
    .download-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .download-header h4 {
        margin-bottom: 0;
    }
}

/* ========== FOOTER STYLES ========== */
.footer {
    margin-top: 50px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 10px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.footer-creator {
    color: #1a73e8;
    font-weight: 600;
    font-size: 15px;
    margin-top: 5px;
}

/* ========== FLOATING BUTTON STYLES ========== */
#floating-button-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#floating-button {
    width: 70px;
    height: 70px;
    background: transparent !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    overflow: hidden;
    position: relative;
    padding: 0;
}

#floating-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#floating-button:active {
    transform: scale(0.95);
}

.floating-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

#floating-button:hover .floating-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) brightness(1.05);
}

/* Efek glow pada logo saat hover */
#floating-button:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: logoGlow 2s infinite;
}

@keyframes logoGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Floating menu */
.floating-menu {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 12px 0;
    border: 1px solid #e0e0e0;
    z-index: 1001;
}

.floating-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu-item {
    padding: 14px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    position: relative;
}

.floating-menu-item:hover {
    background: linear-gradient(to left, #eef5ff, #ffffff);
    color: #1a73e8;
    padding-right: 25px;
}

.floating-menu-item span {
    white-space: nowrap;
    flex-grow: 1;
}

.floating-menu-item::before {
    content: "•";
    color: #1a73e8;
    font-size: 20px;
    margin-right: 10px;
    font-weight: bold;
}

.floating-menu-item::after {
    content: "←";
    color: #999;
    font-size: 14px;
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.floating-menu-item:hover::after {
    opacity: 1;
}

/* Animasi untuk menu items */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-menu.show .floating-menu-item {
    animation: slideInRight 0.3s ease forwards;
}

.floating-menu.show .floating-menu-item:nth-child(1) { animation-delay: 0.05s; }
.floating-menu.show .floating-menu-item:nth-child(2) { animation-delay: 0.1s; }
.floating-menu.show .floating-menu-item:nth-child(3) { animation-delay: 0.15s; }
.floating-menu.show .floating-menu-item:nth-child(4) { animation-delay: 0.2s; }

/* Badge notifikasi (opsional) */
#floating-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-size: 11px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 1.5s infinite;
    z-index: 1002;
    border: 2px solid white;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 5px rgba(255, 71, 87, 0);
    }
}

/* Efek border untuk logo (opsional) */
.logo-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(26, 115, 232, 0.5);
    border-radius: 50%;
    animation: borderRotate 3s linear infinite;
    pointer-events: none;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
        border-color: rgba(26, 115, 232, 0.5);
    }
    50% {
        border-color: rgba(26, 115, 232, 0.8);
    }
    100% {
        transform: rotate(360deg);
        border-color: rgba(26, 115, 232, 0.5);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #floating-button-container {
        bottom: 20px;
        right: 20px;
    }
    
    #floating-button {
        width: 60px;
        height: 60px;
    }
    
    .floating-menu {
        min-width: 180px;
        bottom: 75px;
    }
    
    .floating-menu-item {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    #floating-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}
