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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mainContent {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    position: relative;
    z-index: 0;
}

.header {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.header p {
    font-size: 1.2rem;
    color: #d1d8e0;
}

#logoutBtn {
    margin-top: 15px;
    background: #ff6b6b;
}

/* Input Section */
.input-section {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 20;
}

.input-group {
    display: flex;
    flex-direction: column; /* Ubah ke kolom */
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 400px; /* Lebar lebih kecil karena vertikal */
    align-items: stretch; /* Elemen melebar penuh */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-group:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.input-field {
    padding: 12px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    color: #2c3e50;
}

.input-field:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.6);
    background: #ffffff;
}

.input-field::placeholder {
    color: #7f8c8d;
    font-weight: 500;
}

.btn {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; /* Pusatkan ikon dan teks */
    gap: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(79, 172, 254, 0.4);
    background: linear-gradient(135deg, #00f2fe, #4facfe);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b81, #ff4757);
}

.btn-secondary {
    background: linear-gradient(135deg, #a4b0be, #747d8c);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #747d8c, #a4b0be);
}

.table-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    padding: 20px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background: rgba(52, 73, 94, 0.8);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 11;
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d8e0;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

tr:hover {
    background: rgba(255, 255, 255, 0.15);
}

.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #4facfe;
    border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #00f2fe;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4facfe;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow: auto;
    padding: 0;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modern-modal {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    max-width: 450px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease;
    margin: 0 auto;
    box-sizing: border-box;
    position: relative;
}

.modal.active .modern-modal {
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    color: #ffffff;
}

.modal-header i {
    font-size: 2.5rem;
    color: #ff4757;
}

.modal-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body {
    margin-bottom: 20px;
    text-align: center;
}

.confirm-message {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.confirm-description {
    color: #d1d8e0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modern-btn {
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-danger.modern-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #ffffff;
}

.btn-danger.modern-btn:hover {
    background: linear-gradient(135deg, #ff6b81, #ff4757);
}

.btn-secondary.modern-btn {
    background: linear-gradient(135deg, #a4b0be, #747d8c);
    color: #ffffff;
}

.btn-secondary.modern-btn:hover {
    background: linear-gradient(135deg, #747d8c, #a4b0be);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 500;
    color: #ffffff;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.form-group label:hover {
    color: #4facfe;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.6);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #7f8c8d;
    font-weight: 400;
}

.password-group {
    position: relative;
}

.password-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.password-wrapper input {
    flex: 1;
}

.toggle-password {
    font-size: 1.6rem;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #4facfe;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(79, 172, 254, 0.4);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.6);
    background: linear-gradient(135deg, #00f2fe, #4facfe);
}

.error-message {
    color: #ff4757;
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.custom-dropdown {
    position: relative;
    width: 100%;
    z-index: 30;
}

.dropdown-header {
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-header:hover {
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.dropdown-title {
    color: #2c3e50;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 31;
    max-height: 200px;
    overflow-y: auto;
    color: #2c3e50;
}

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

.dropdown-content label {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
}

.dropdown-content input[type="checkbox"] {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .input-group {
        padding: 15px;
    }

    .input-field, .custom-dropdown, .btn {
        width: 100%;
    }

    .header h1 {
        font-size: 2rem;
    }

    .modern-modal {
        padding: 20px;
        max-width: 90%;
        margin: 0 50px;
    }

    .modal-header i {
        font-size: 2rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }

    .confirm-message {
        font-size: 1rem;
    }

    .confirm-description {
        font-size: 0.8rem;
    }

    .modal-buttons {
        gap: 10px;
    }

    .modern-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .input-group {
        padding: 15px;
    }

    .input-field, .custom-dropdown, .btn {
        width: 100%;
    }

    .header h1 {
        font-size: 2rem;
    }
    
    .modal {
        padding: 0;
    }

    .modern-modal {
        padding: 15px;
        border-radius: 15px;
        max-width: 95%;
        width: 95%;
        margin: 0 50px;
    }

    .modal-header {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 15px;
    }

    .modal-header i {
        font-size: 1.8rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .confirm-message {
        font-size: 0.9rem;
    }

    .confirm-description {
        font-size: 0.75rem;
    }

    .modal-buttons {
        gap: 10px;
    }

    .modern-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}