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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c2c 100%);
    color: white;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.header h1 {
    font-size: 28px;
}

.header p {
    opacity: 0.9;
    font-size: 14px;
}

.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #ddd;
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: #f5f5f5;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    transition: all 0.3s;
}

.tab:hover {
    background: #e8e8e8;
}

.tab.active {
    background: white;
    color: #4a7c2c;
    border-bottom: 3px solid #4a7c2c;
}

.content {
    min-height: 20px;
    padding: 30px;
}

.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #4a7c2c;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    background: linear-gradient(135deg, #4a7c2c 0%, #2d5016 100%);
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    transform: translateY(0);
    text-align: center;
    vertical-align: middle;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 124, 44, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 10px;
}

.buttons-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qr-container {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.qrcode-display {
    display: inline-block;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

#qrcode {
    padding: 10px;
}

.batch-info {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4a7c2c;
}

.batch-info h3 {
    color: #2d5016;
    margin-bottom: 10px;
}

.batch-info p {
    margin: 5px 0;
    color: #555;
}

.status-message {
    background: #cce5ff;
    color: #004085;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid blue;
    display: none;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
    display: none;
    animation: fadeOut 5.1s ease-in;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc3545;
    display: none;
    animation: fadeOut 5.1s ease-in;
}

@keyframes fadeOut {
    from {opacity: 1; }
    to { opacity: 0; }
}

#otpForm label {
    font-size: 20px;
    text-align: center;
}

.otp-input {
    font-size: 24px;
    text-align: center;
    letter-spacing: 20px;
}

.info-card {
    background: #f9f9f9;
    padding: 2px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    gap: 35px;
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

.hidden {
    display: none !important;
}

.page-content {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 5px;
}

.header-image-row {
    display: flex;
    flex-direction: row;
    gap: 36px;
    justify-content: center;
    margin-bottom: 10px;
}

.header-image {
    height: 50px;
    width: auto;
}

.image-divider {
    border: solid #444 1px;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .container {
        border-radius: 10px;
    }

    .header {
        padding: 20px;
    }
    .header h1 {
        font-size: 24px;
    }

    .tabs {
        flex-direction: column;
    }
    .tab {
        padding: 16px;
        font-size: 18px;
    }

    .content {
        padding: 20px;
    }

    .page-content {
        max-height: 38vh;
    }

    label {
        font-size: 14px;
    }

    .header-image-row {
        gap: 24px;
        margin-bottom: 5px;
    }
    .header-image {
        height: 38px;
    }

}

#qr-reader {
    padding: 20px !important;
    /* border: 1.5px solid #b2b2b2 !important; */
    border: none !important;
    border-radius: 8px;
}

#qr-reader img[alt="Info icon"] {
    display: none;
}

#qr-reader img[alt="Camera based scan"] {
    width: 100px !important;
    height: 100px !important;
}

#html5-qrcode-anchor-scan-type-change {
    text-decoration: none !important;
    color: #1d9bf0;
}

video {
    width: 100% !important;
    /* border: 1px solid #b2b2b2 !important; */
    border-radius: 0.25em;
}

#qr-reader__dashboard_section {
    /* display: none; */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-heading {
    margin-bottom: 16px;
    color: #2d5016;
}

.info-card.mini {
    padding: 0 20px;
    margin-bottom: 20px;
    gap: 0;
    cursor: pointer;
}

.info-card.mini:active {
    background-color: #d4edda;
}

.info-card.mini:active .info-row {
    border-bottom-color: #28a745;
}

.loading-message {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loadingMessage {
    background: #2d5016;
    color: white;
    position: absolute;
    top: 30vh;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.close-button {
    /* position: absolute;
    top: calc(20px + 60px + 28px + 10px + 14px + 40px + 16px + 30px + 20px + 33px + 10px);
    left: calc(50vw); */
    /* + 370px - 15px); */
    position: relative;
    top: 50px;
    left: 710px;
    background-color: red;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 20px;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.close-button:active {
    border: solid 1px black;
}

#formSuccess {
    font-size: 20px;
}

.icon {
    color: white;
    display: inline-block;
    height: 27px;
    width: 27px;
    margin-right: 10px;
    border-radius: 20px;
}

.success {
    background-color: green;
    padding-left: 5px;
    font-size: 18px;
}

.warning {
    background-color: orange;
    padding-left: 11px;
    font-size: 20px;
    font-weight: bold;
}

.country-code-select {
    width: 100px;
    background-color: white;
}

.country-code-phone {
    width: calc(100% - 105px);
}

.location-input {
    width: 49%;
}

#pictureDisplay {
    height: 250px;
    margin-top: 20px;
    border-radius: 10px;
    align-self: center;
}

.picture-input {
    display: flex;
    flex-direction: column;
}

.plot-container {
    display: flex;
    justify-content: center;
}

table {
  font-family: Arial, Helvetica, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

td, th {
  border: 1px solid #ddd;
  padding: 8px;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

th {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
  background-color: #2d5016;
  color: white;
}
