/* ==========================================================================
   Bäckerei Brücklmaier – Filial-Bestell-App Admin Styles
   ========================================================================== */

/* Basis-Styles laden */
@import url('/public/styles.css');

/* Admin-spezifische Anpassungen */
body {
    padding-bottom: 40px; /* Kein Sticky Footer nötig */
}

/* Tabs Navigation */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    gap: 8px;
    overflow-x: auto;
}

.tab-link {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tab-link:hover {
    color: var(--primary);
}

.tab-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Contents */
.tab-content {
    display: none;
}

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

/* Tables & Lists */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card-bg);
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: #f1f5f9;
    color: var(--text-main);
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background-color: #f8fafc;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-staff {
    background-color: #e2e8f0;
    color: #475569;
}

.badge-manager {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-admin {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-active {
    background-color: #dcfce7;
    color: #15803d;
}

.badge-inactive {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Actions Bar */
.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.search-bar {
    display: flex;
    flex: 1;
    min-width: 250px;
}

/* Modal Specifics */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Audit Log Layout */
.log-row {
    font-family: monospace;
    font-size: 0.85rem;
}

.log-time {
    color: var(--text-muted);
}

.log-action {
    font-weight: 600;
}

.log-details {
    color: #475569;
}
