/* @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap'); */
/* @import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap"); */
@import "./pallete.css";

body {
    background-color: var(--primary-color);
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar {
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    padding: 10px 20px;
    box-sizing: border-box;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-section {
    display: flex;
    align-items: center;
}

.left-section .brand {
    font-weight: bold;
    font-size: 18px;
    margin-right: 30px;
}

.left-section ul {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.left-section ul li a {
    text-decoration: none;
    color: var(--font-color);
    font-weight: 500;
    padding: 6px 10px;
    transition: all 0.2s ease-in-out;
    border-radius: 4px;
}

.left-section ul li a:hover,
.left-section ul li a.active {
    background-color: var(--third-color);
    color: var(--secondary-color);
}

.right-section {
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 120%;
    background-color: var(--secondary-color);
    min-width: 150px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu li a {
    display: block;
    padding: 10px;
    color: var(--font-color);
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-container label {
    margin-right: 5px;
    color: var(--font-color);
}

.theme-container select {
    padding: 4px 8px;
    border-radius: 4px;
}

.profile-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    background-color: var(--secondary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    max-width: 100%;
}


table thead {
    background-color: var(--third-color);
    align-items: center;
    justify-content: center;
}

table th {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table tbody tr:nth-child(even) {
    background-color: var(--primary-color);
}

.container {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 70%;
    margin: auto;
    max-width: 100%;
    min-width: 300px;
}

h1.title {
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

h2.title {
  font-size: 20px;
  font-weight: 600;
  color: #444;
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 5px;
}

.header-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.qris-logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-70%);
    width: 80px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    margin-top: 1rem;
    margin-bottom: 10px;
}

.center-title {
    text-align: center;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.form-group {
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 14px;
    font-weight: bold;
}

input {
    width: 97.5%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid var(--third-color);
    background-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--accent-color);
    font-size: 12px;
}

.input-disabled {
    background-color: #f0f0f0 !important;
    /* Abu-abu */
    color: #888888 !important;
    /* Abu gelap */
    cursor: not-allowed !important;
    /* Tanda tidak bisa diubah */
}

.hint {
    font-size: 10px;
    color: var(--accent-color);
    margin-top: 5px;
}

.input-method-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.input-method-group label {
    display: inline-flex;
    align-items: center;
    margin-right: 20px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
}

.input-method-group input[type="radio"] {
    margin-right: 8px;
    accent-color: black;
}

.nominal-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.nominal {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    flex: 1 0 30%;
    text-align: center;
    /* min-width: 80px;  */
}

.manual-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.manual-input label {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    white-space: nowrap;
    font-weight: bold;
}

.manual-input input {
    flex: 1;
    padding: 8px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.nominal:hover {
    background-color: var(--third-color);
    color: var(--secondary-color);
}

.nominal.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: bold;
}

.info-confirm {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-info {
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
}

.value-info {
    text-align: left;
    word-break: break-word;
}

.total {
    padding: 10px;
    border-radius: 5px;
    color: var(--accent-color);
    margin: 15px 0;
    font-size: 18px;
    text-align: left;
}

.submit {
    /* background: linear-gradient(to right, #121231, #182e52); */
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 12px;
    width: 100%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.submit:hover {
    opacity: 0.9;
    background-color: var(--third-color);
    color: var(--secondary-color);
}

.submit:disabled {
    background-color: var(--secondary-color);
    cursor: not-allowed;
}

.qrcode img,
.qrcode canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

.qrcode {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 10px;
    border: 5px solid black;
    display: inline-block;
    width: fit-content;
    max-width: 300px;
}

.message-container {
    background-color: var(--primary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

.message-container h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    color: var(--font-color);
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .nominal {
        flex: 1 0 45%;
    }
}

@media screen and (max-width: 550px) {
    .nominal {
        flex: 1 0 100%;
    }

    .header-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .qris-logo {
        position: static;
        transform: none;
        margin-top: 10px;
        width: 60px;
    }

    .center-title {
        text-align: center;
    }
}