/* shared/style.css — Base styles used across admin and scanner */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f5f5f5;
    color: #333;
}

h1 {
    text-align: center;
    color: white;
    background-color: #d32f2f;
    padding: 12px;
    margin: 0 0 20px 0;
    font-size: 20px;
}

h2 {
    text-align: center;
    color: #333;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background-color: #b71c1c;
}

.btn-secondary {
    background-color: #757575;
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

.btn-success {
    background-color: #388e3c;
    color: white;
}

.btn-success:hover {
    background-color: #2e7d32;
}

.btn-danger {
    background-color: #c62828;
    color: white;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background-color: white;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    word-break: break-word;
}

th {
    background-color: #f2f2f2;
    font-size: 14px;
    font-weight: bold;
}

td {
    font-size: 14px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #e0e0e0;
    color: #555;
}

.badge-in_progress {
    background-color: #bbdefb;
    color: #1565c0;
}

.badge-ready_for_review {
    background-color: #fff9c4;
    color: #f57f17;
}

.badge-completed {
    background-color: #c8e6c9;
    color: #2e7d32;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.modal-content h3 {
    margin: 0 0 15px 0;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 10px 0;
    font-size: 14px;
}

.alert-success {
    background-color: #c8e6c9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background-color: #ffcdd2;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-warning {
    background-color: #fff9c4;
    color: #f57f17;
    border: 1px solid #fff176;
}

/* Navigation */
.nav {
    text-align: center;
    margin-bottom: 20px;
}

.nav a {
    color: #d32f2f;
    text-decoration: none;
    font-size: 14px;
}

.nav a:hover {
    text-decoration: underline;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Clickable rows */
tr.clickable {
    cursor: pointer;
}

tr.clickable:hover {
    background-color: #f5f5f5;
}
