/* Basic container styling */
#ticket-app-container {
    font-family: sans-serif;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background-color: #fff;
    border-radius: 8px;
}

/* Tabs styling */
.ts-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.ts-tab-link {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 15px;
    transition: 0.3s;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.ts-tab-link:hover {
    background-color: #ddd;
}

.ts-tab-link.active {
    background-color: #0073aa; /* WordPress primary blue */
    color: white;
    border-bottom: 1px solid #0073aa;
}

/* Tab content styling */
.ts-tab-content {
    display: none;
    padding: 10px 0;
}

.ts-tab-content.active {
    display: block;
}

/* Section headings */
#scanner-section h3, #manual-tab h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Form styling */
.ts-form-group {
    margin-bottom: 15px;
}

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

.ts-form-group input[type="text"],
.ts-form-group input[type="date"],
.ts-form-group input[type="time"] {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

/* Buttons */
.ts-check-manual-btn, #ts-scan-next-btn {
    background-color: #28a745; /* Green for action */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    display: block; /* Make it a block element to take full width or center */
    margin: 15px auto 0 auto; /* Center button */
}

.ts-check-manual-btn:hover, #ts-scan-next-btn:hover {
    background-color: #218838;
}

/* Message boxes */
.ts-message-box {
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}
.ts-message-box strong {
    font-weight: bold;
}
.ts-message-box strong[style="color:green"] { color: #28a745; }
.ts-message-box strong[style="color:orange"] { color: #ffc107; }
.ts-message-box strong[style="color:red"] { color: #dc3545; }

/* Scanner reader area */
#reader {
    width: 100% !important; /* Override inline style */
    max-width: 300px;
    margin: 0 auto; /* Center the reader */
}

/* Optional: Hide Html5Qrcode's default styling buttons if desired */
/* .html5-qrcode-button-camera-start,
.html5-qrcode-button-camera-stop {
    display: none !important;
} */