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

body {
    font-family: 'Inter', Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
    padding: 20px;
}

.container, .login-container {
    width: 100%;
    max-width: 700px;
    text-align: center;
    z-index: 1;
    margin-top: 60px;
}

.login-container {
    background-color: #fff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.section {
    margin-bottom: 30px;
}

.section h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.add-user-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.add-user-form input,
.add-user-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.add-user-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #f8f8f8;
    font-weight: 500;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table a {
    color: #007BFF;
    text-decoration: none;
}

.data-table a:hover {
    text-decoration: underline;
}

.toggle-status-btn, .edit-user-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.toggle-status-btn {
    background-color: #dc3545;
    color: white;
}

.toggle-status-btn[data-is-active="1"] {
    background-color: #28a745;
}

.toggle-status-btn:hover {
    background-color: #c82333;
}

.toggle-status-btn[data-is-active="1"]:hover {
    background-color: #218838;
}

.edit-user-btn {
    background-color: #007BFF;
    color: white;
}

.edit-user-btn:hover {
    background-color: #0056b3;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background-color: #0056b3;
}

.pagination span {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #333;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0056b3;
}

.login-form, .input-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 400;
}

input[type="text"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.5;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

button:hover {
    background-color: #0056b3;
}

.error {
    color: red;
    margin: 10px 0;
    text-align: center;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.answer-box {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-top: 20px;
    width: 100%;
    max-height: 600px;
    overflow-y: auto;
    text-align: left;
}

.answer-box h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.query-text, .answer-content {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.answer-content strong {
    font-weight: 700;
}

.references {
    margin-top: 20px;
    text-align: left;
    width: 100%;
}

.references h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.references ul {
    list-style-type: none;
    padding: 0;
}

.references li {
    margin: 10px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logout-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    z-index: 1002;
}

/* Hamburger Menu */
.hamburger {
    position: fixed;
    top: 15px;
    right: 15px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background-color: transparent;
    padding: 5px;
    transition: all 0.3s ease;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

.hamburger:hover span {
    background-color: #007BFF;
}

.menu {
    display: none;
    position: fixed;
    top: 50px;
    right: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    padding: 10px 0;
    min-width: 150px;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 10px 0;
    padding: 0 20px;
}

.menu a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    display: block;
    width: 100%;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #007BFF;
    background-color: #f1f1f1;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    text-align: center;
}

.popup-content h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.popup-content input[type="text"],
.popup-content input[type="password"],
.popup-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.popup-content select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 10px center;
    background-size: 20px;
}

.popup-content .error {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: red;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.popup-content button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.popup-content button[type="submit"] {
    background-color: #007BFF;
    color: white;
}

.popup-content button[type="submit"]:hover {
    background-color: #0056b3;
}

.popup-content button[type="button"] {
    background-color: #dc3545;
    color: white;
}

.popup-content button[type="button"]:hover {
    background-color: #c82333;
}

/* Tips Link dan Popup */
.tips-link {
    margin-top: 20px;
    text-align: center;
}

.tips-link a {
    color: #007BFF;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-decoration: none;
}

.tips-link a:hover {
    text-decoration: underline;
}

.tips-content {
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.tips-content p {
    margin-bottom: 10px;
}

.tips-content strong {
    font-weight: 700;
}

/* Media Queries for Responsiveness */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 20px;
        max-width: 350px;
        width: 90%;
    }

    .login-container h2 {
        font-size: 20px;
    }

    .login-form, .input-group, .add-user-form {
        gap: 10px;
    }

    input[type="text"], input[type="password"], textarea, .add-user-form select {
        font-size: 14px;
        padding: 8px;
    }

    button, .button, .toggle-status-btn, .edit-user-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .error {
        font-size: 12px;
    }

    .container {
        max-width: 100%;
        padding: 15px;
        margin-top: 50px;
    }

    .container h2 {
        font-size: 20px;
        word-wrap: break-word;
    }

    .section {
        margin-bottom: 20px;
    }

    .section h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .data-table th, .data-table td {
        font-size: 12px;
        padding: 8px 10px;
    }

    .toggle-status-btn, .edit-user-btn {
        padding: 5px 10px;
        font-size: 12px;
    }

    textarea {
        height: 80px;
    }

    .answer-box {
        padding: 15px;
        max-height: 400px;
    }

    .answer-box h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .query-text, .answer-content {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .references h3 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .references li {
        font-size: 14px;
        margin: 8px 0;
    }

    .hamburger {
        top: 10px;
        right: 10px;
        z-index: 1002;
    }

    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .menu {
        top: 40px;
        right: 10px;
        min-width: 120px;
    }

    .menu a {
        font-size: 14px;
    }

    .pagination button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .pagination span {
        font-size: 12px;
    }

    .tips-link a {
        font-size: 14px;
    }

    .tips-content {
        font-size: 14px;
    }
}

@media (min-width: 601px) {
    .input-group, .add-user-form {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    textarea, .add-user-form input, .add-user-form select {
        flex: 1;
        margin-right: 10px;
    }

    button {
        flex-shrink: 0;
    }
}