/* TextWait.io - Global Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
}

a {
    color: #1a73e8;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #555;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, opacity 0.15s;
    text-align: center;
    line-height: 1.5;
}
.btn:hover {
    opacity: 0.9;
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-primary {
    background: #1a73e8;
    color: #fff;
}
.btn-success {
    background: #0d9f6e;
    color: #fff;
}
.btn-warning {
    background: #e67e22;
    color: #fff;
}
.btn-danger {
    background: #dc3545;
    color: #fff;
}
.btn-secondary {
    background: #6c757d;
    color: #fff;
}
.btn-block {
    display: block;
    width: 100%;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Card */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #333;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e8eaed;
    color: #555;
    vertical-align: middle;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
.status-waiting       { background: #dbeafe; color: #1e40af; }
.status-almost_ready  { background: #fef3c7; color: #92400e; }
.status-ready         { background: #d1fae5; color: #065f46; }
.status-seated        { background: #e5e7eb; color: #374151; }
.status-no_show       { background: #fee2e2; color: #991b1b; }
.status-cancelled     { background: #f3f4f6; color: #6b7280; }
.status-opted_out     { background: #f3f4f6; color: #6b7280; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    background: #fafafa;
}
table tbody tr:hover {
    background: #f8f9fa;
}
.empty-row td {
    text-align: center;
    color: #999;
    padding: 2rem;
}
.row-completed {
    opacity: 0.7;
}

/* Admin form helpers */
.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.form-section:last-of-type {
    border-bottom: none;
}
.form-section h4 {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.75rem;
}
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.form-row-3col {
    display: grid;
    grid-template-columns: 1fr 80px 100px;
    gap: 0.75rem;
}
.form-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.form-inline label {
    min-width: 100px;
    margin-bottom: 0;
}
.form-inline input {
    flex: 1;
}
.form-help {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}
.form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.card-header-row h3 {
    margin-bottom: 0;
}
.text-muted {
    color: #999;
}
textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}
textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

@media (max-width: 768px) {
    .form-row-2col,
    .form-row-3col {
        grid-template-columns: 1fr;
    }
}
