:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 23, 42, 0.5);
    --success-color: #10b981;
    --error-color: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.2);
    --danger-border: rgba(239, 68, 68, 0.5);
    --danger-text: #fca5a5;
    --danger-hover: rgba(239, 68, 68, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Changed from center to move content up */
    padding: 40px 20px;
    /* Increased top padding */
}

.container {
    width: 100%;
    max-width: 1400px;
    /* Increased from 1000px */
}

/* ... existing styles ... */

.full-width {
    max-width: 1400px;
    /* Increased from 1000px */
    margin: 0 auto;
}

/* ... existing styles ... */

th,
td {
    padding: 0.5rem 0.75rem;
    /* Reduced padding */
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
    /* Prevent line breaks */
}

/* Allow Remarks to wrap if really long, or keep it nowrap and scroll? 
   User said "in one line", usually implies they don't want vertical expansion.
   But we can specificy max-width for remarks if needed. For now global nowrap is safest for "one line". 
*/

.glass-panel.full-width {
    padding: 1rem;
    /* Compact padding for the panel */
}

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    /* Increased spacing to nav */
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-secondary);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
}

.row {
    display: flex;
    gap: 1rem;
}

.row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

input,
textarea,
select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

textarea {
    resize: vertical;
}

select option {
    background: var(--bg-gradient-end);
    color: var(--text-color);
}

.btn-primary {
    width: auto;
    padding: 0.6rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: auto;
    padding: 0.6rem 1.2rem;
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0;
}

.btn-danger {
    width: auto;
    padding: 0.6rem 1.2rem;
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
}

.mb-2 {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.mb-4 {
    margin-bottom: 2rem;
}

.divider {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-right: 5px;
    transition: transform 0.2s;
}

.btn-edit {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.action-btn:hover {
    transform: scale(1.05);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    position: relative;
    border: 1px solid var(--glass-border);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
    cursor: pointer;
}

/* Notification Styles */
#notification,
.notification-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.5s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Styles */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.nav-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Section visibility */
.hidden-section {
    display: none;
    animation: fadeOut 0.3s ease-out;
}

.active-section {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Table Styles */
.full-width {
    max-width: 1400px;
    margin: 0 auto;
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

/* Scrollable container for Warenausgang & Recent entries table */
#outgoingEntriesContainer .table-container,
#recentEntriesContainer .table-container {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
}

/* Keep table header sticky while scrolling */
#outgoingEntriesTable thead,
#recentEntriesTable thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--glass-bg);
}

/* Fixed layout for BOTH tables */
#outgoingEntriesTable,
#recentEntriesTable {
    table-layout: fixed;
    width: 100%;
}

/* Shared column styles for BOTH tables */
#outgoingEntriesTable th,
#outgoingEntriesTable td,
#recentEntriesTable th,
#recentEntriesTable td {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Warenausgang table - fixed layout with optimized widths */
#outgoingEntriesTable {
    table-layout: fixed;
    /* Fixiert Spaltenbreiten */
    width: 100%;
}

#outgoingEntriesTable th,
#outgoingEntriesTable td {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Datum - +30% */
#outgoingEntriesTable th:nth-child(1),
#outgoingEntriesTable td:nth-child(1) {
    width: 110px;
}

/* RP - +30% */
#outgoingEntriesTable th:nth-child(2),
#outgoingEntriesTable td:nth-child(2) {
    width: 105px;
}

/* Serial - +30% */
#outgoingEntriesTable th:nth-child(3),
#outgoingEntriesTable td:nth-child(3) {
    width: 145px;
}

/* Partnumber - +30% */
#outgoingEntriesTable th:nth-child(4),
#outgoingEntriesTable td:nth-child(4) {
    width: 145px;
}

/* Failure TF - +30% */
#outgoingEntriesTable th:nth-child(5),
#outgoingEntriesTable td:nth-child(5) {
    width: 130px;
}

/* Priority - +30% */
#outgoingEntriesTable th:nth-child(6),
#outgoingEntriesTable td:nth-child(6) {
    width: 145px;
}

/* Menge - +30% */
#outgoingEntriesTable th:nth-child(7),
#outgoingEntriesTable td:nth-child(7) {
    width: 65px;
    text-align: center;
}

/* Status - +30% */
#outgoingEntriesTable th:nth-child(8),
#outgoingEntriesTable td:nth-child(8) {
    width: 105px;
}

/* Bemerkung - nimmt den Rest */
#outgoingEntriesTable th:nth-child(9),
#outgoingEntriesTable td:nth-child(9) {
    width: auto;
    white-space: normal;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-color);
}

th,
td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

th {
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.glass-panel.full-width {
    padding: 1rem;
}

/* Recent Entries Specifics */
#recentEntriesTable tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

#recentEntriesTable tr:hover {
    background: rgba(79, 70, 229, 0.15);
}

#recentEntriesTable tr.selected-row {
    background: rgba(79, 70, 229, 0.3);
    border-left: 3px solid var(--primary-color);
}

#recentEntriesTable th {
    font-size: 0.85rem;
    padding: 0.5rem;
}

#recentEntriesTable td {
    font-size: 0.9rem;
    padding: 0.5rem;
}

/* Clickable row styling */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.clickable-row:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Force hover visibility over status colors */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Edit mode form indication */
.edit-mode-active {
    /* border: 2px solid var(--primary-color); */
    /* box-shadow: 0 0 20px rgba(79, 70, 229, 0.3); */
}

/* Part Info Cards Grid */
.part-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.part-info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.part-info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.part-info-card.selected {
    border: 2px solid var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.part-info-card-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
}

.part-info-card-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 2rem;
}

.part-info-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.part-info-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.part-info-empty {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
}

#partinfo_image_preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================
   LOGIN OVERLAY
   ========================================== */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-box {
    max-width: 400px;
    width: 90%;
    text-align: center;
    padding: 2rem;
}

.login-box h2 {
    margin-bottom: 1rem;
}

.login-box p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.login-error {
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 8px;
    color: #f87171;
}

.logout-btn {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.4) !important;
}

/* Lockout Overlay Styles */
.lockout-overlay {
    z-index: 10000;
}

.lockout-box {
    border: 2px solid rgba(239, 68, 68, 0.5);
    background: rgba(30, 41, 59, 0.95);
}

.lockout-box h2 {
    color: #f87171;
}

.lockout-message {
    color: #fca5a5;
    font-weight: 500;
    padding: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem !important;
}

/* Login Attempts Info */
.login-attempts-info {
    margin-top: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(234, 179, 8, 0.15);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 8px;
    color: #facc15;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.login-attempts-info #attemptsRemaining {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ==========================================
   STATISTICS CARDS
   ========================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.7;
}

.stat-card-primary {
    border-color: rgba(79, 70, 229, 0.5);
    background: rgba(79, 70, 229, 0.1);
}

.stat-card-primary .stat-value {
    color: #818cf8;
}

.stat-card-success {
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(34, 197, 94, 0.1);
}

.stat-card-success .stat-value {
    color: #4ade80;
}

.stat-card-warning {
    border-color: rgba(234, 179, 8, 0.5);
    background: rgba(234, 179, 8, 0.1);
}

.stat-card-warning .stat-value {
    color: #facc15;
}

.stat-card-danger {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.1);
}

.stat-card-danger .stat-value {
    color: #f87171;
}

.stat-card-info {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

.stat-card-info .stat-value {
    color: #60a5fa;
}

.stat-card-secondary {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.1);
}

.stat-card-secondary .stat-value {
    color: #c084fc;
}

/* ==========================================
   STATUS ROW COLORS (Warenausgang)
   ========================================== */
.status-offen {
    border-left: 4px solid #ef4444 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a2e !important;
}

.status-in-bearbeitung {
    border-left: 4px solid #eab308 !important;
    background: rgba(234, 179, 8, 0.08) !important;
}

.status-versendet {
    border-left: 4px solid #3b82f6 !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

.status-erledigt {
    border-left: 4px solid #22c55e !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge-offen {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.status-badge-in-bearbeitung {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.status-badge-versendet {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.status-badge-abgeschlossen {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

/* ==========================================
   PART INFO DISPLAY (in Warenausgang form)
   ========================================== */
.part-info-display {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
}

.part-info-header {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #818cf8;
}

.part-info-display .part-desc {
    white-space: pre-wrap;
    margin-bottom: 0.5rem;
}

.part-info-display img {
    max-width: 150px;
    max-height: 100px;
    border-radius: 6px;
    margin-top: 0.5rem;
}

/* ==========================================
   ADMIN SECTION STYLES
   ========================================== */
#sectionAdmin .glass-panel h2 {
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#sectionAdmin h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

#sectionAdmin p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

#sectionAdmin .divider {
    margin: 1.25rem 0;
}

/* Compact Admin Buttons */
#sectionAdmin .btn-primary,
#sectionAdmin .btn-secondary,
#sectionAdmin .btn-danger {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

#sectionAdmin .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
}

#sectionAdmin .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#sectionAdmin .btn-danger {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
}

#sectionAdmin .btn-danger:hover {
    transform: translateY(-1px);
}

#sectionAdmin .btn-secondary {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Compact form inputs in Admin */
#sectionAdmin .form-group {
    margin-bottom: 0.75rem;
}

#sectionAdmin input[type="file"] {
    padding: 8px;
    font-size: 0.85rem;
}

/* Admin table container */
#adminTableContainer {
    margin-top: 1rem;
}

#adminTableContainer h4 {
    font-size: 0.95rem;
    color: #818cf8;
}

/* ==========================================
   STATISTICS SECTION COMPACT BUTTONS
   ========================================== */
#sectionStats .btn-primary,
#sectionStats .btn-secondary {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    margin-top: 0;
}

#sectionStats .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
}

#sectionStats .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

#sectionStats .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.05);
}

/* Compact search inputs in Statistics section */
#sectionStats input[type="text"],
#sectionStats select {
    width: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

/* ==========================================
   COMPACT SEARCH INPUT CLASS
   ========================================== */
.search-input {
    width: auto !important;
    min-width: 150px;
    max-width: 200px;
    padding: 0.4rem 0.75rem !important;
    font-size: 0.85rem !important;
    border-radius: 6px !important;
}

/* Specific fix for Stats section alignment */
#sectionStats .search-input {
    width: 300px !important;
    /* Wider for placeholder */
    max-width: 100%;
    padding: 0.6rem 0.75rem !important;
    /* Match button height */
    font-size: 0.9rem !important;
}

#sectionStats select {
    padding: 0.6rem 2.5rem 0.6rem 0.75rem;
    /* Match button height + arrow space */
    font-size: 0.9rem;
}

/* Backup List Styles */
.backup-item {
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.backup-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.backup-list::-webkit-scrollbar {
    width: 6px;
}

.backup-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.backup-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.backup-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}