:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #7c4dff;
    --accent-hover: #651fff;
    --danger: #cf6679;
    --success: #4caf50;
    --border: #333;
    --font-family: 'Inter', sans-serif;
    --radius: 12px;
}

/* Light theme variables */
:root[data-theme="light"] {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #6200ee;
    --accent-hover: #3700b3;
    --danger: #d32f2f;
    --success: #2e7d32;
    --border: #e0e0e0;
}

body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
}

/* Save Loading Overlay */
.save-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.save-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.save-loading-content p {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.save-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(124, 77, 255, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Auth */
.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.auth-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    background: #2c2c2c;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: white;
    font-size: 16px !important;
    box-sizing: border-box;
    touch-action: manipulation;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.app-header .btn-primary,
.detail-header .btn-primary {
    width: auto;
    margin-top: 0;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    white-space: nowrap;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--accent);
    text-decoration: none;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
    min-height: 1rem;
}

/* Header */
.app-header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.filters-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.filter-group select {
    padding: 6px 8px;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    background-image: none;
    color: var(--text-primary);
    padding-right: 8px;
}

.app-header h1 {
    margin: 0;
    font-size: 1.4rem;
}

.search-bar {
    position: relative;
    flex: 1;
}

.search-bar ion-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-bar input {
    padding-left: 35px;
    padding-right: 35px;
    border-radius: 20px;
}

.btn-clear {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    transition: color 0.2s;
}

.btn-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.btn-add {
    flex: 1;
}

.btn-add-compact {
    padding: 8px 12px;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: auto;
}

/* Hamburger Menu */
.menu-container {
    position: relative;
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #2c2c2c;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 10px;
    min-width: 150px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 0.95rem;
    text-align: left;
    transition: background 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item ion-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

#search-clear {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.btn-icon-small {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-icon-small:hover {
    background: var(--border);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-danger:hover {
    background: #b71c1c;
    transform: translateY(-1px);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    margin-left: 10px;
}

/* Inventory List */
.inventory-grid {
    padding: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.filament-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.filament-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.card-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-sample-image {
    flex-shrink: 0;
    width: 0;
    overflow: hidden;
    transition: width 0.2s ease;
}

.card-header-with-image .card-sample-image {
    width: 30%;
    margin-left: 1rem;
}

.card-sample-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.card-color-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.4);
}

.card-main-info {
    flex: 1;
    margin-left: 1rem;
}

.brand-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.material-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2px 0;
}

.color-label {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.card-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: #000;
    padding: 2px 5px;
    border-radius: 4px;
    margin-top: 5px;
    display: inline-block;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Detail View */
.detail-container {
    padding-bottom: 2rem;
}

.detail-header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-content {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon input,
.input-with-icon select {
    padding-right: 40px;
}

.input-with-icon button,
.input-with-icon .color-picker-wrapper {
    position: absolute;
    right: 5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.color-picker-wrapper {
    width: 32px;
    height: 32px;
    overflow: hidden;
    cursor: pointer;
}

.color-picker-wrapper input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-picker-wrapper ion-icon {
    font-size: 1.2rem;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.8));
}

.counter-input {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-counter {
    background: #333;
    color: white;
    border: none;
    width: 30px;
    height: 38px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.link-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #2c2c2c;
    margin-bottom: 5px;
    border-radius: 4px;
    align-items: center;
    font-size: 0.9rem;
}

.link-item a {
    color: white;
    text-decoration: underline;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 85%;
}

.add-link-group {
    display: flex;
    gap: 5px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .filter-controls {
        gap: 10px;
    }
    
    .filter-group {
        min-width: 100px;
    }
    
    .btn-add-compact {
        align-self: flex-end;
        margin-top: 5px;
    }
}

@media (max-width: 600px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Compact header for mobile */
    .app-header {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .header-bottom {
        gap: 5px;
    }
    
    .search-container {
        gap: 5px;
    }
    
    .search-bar input {
        font-size: 14px;
        padding: 8px 35px 8px 30px;
    }
    
    .btn-clear {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .filters-container {
        padding: 3px 0;
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .filter-controls {
        gap: 4px;
        flex: 1;
        min-width: 0;
    }
    
    .filter-group {
        min-width: 55px;
        flex: 1;
    }
    
    .filter-group label {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }
    
    .filter-group select {
        padding: 3px 4px;
        font-size: 0.75rem;
        min-width: 0;
        width: 100%;
    }
    
    .btn-add-compact {
        padding: 4px 8px;
        font-size: 0.75rem;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: auto;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }
    
    .setting-label {
        order: 1;
    }
    
    .theme-toggle {
        order: 2;
        align-self: flex-start;
    }
}

/* Admin Styles */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.btn-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-tab.active {
    background: var(--accent);
    color: white;
}

.add-ref-form {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.ref-list {
    list-style: none;
    padding: 0;
}

.ref-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    background: #2c2c2c;
    margin-bottom: 5px;
    border-radius: 4px;
}

.ref-item-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.ref-item-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-logo-preview-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-preview {
    width: 60px;
    height: 60px;
    background-color: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.ref-item-edit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.ref-edit-input {
    flex: 1;
    padding: 0.5rem;
    background: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
}

.ref-edit-input:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-save-footer {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Admin Tab Content */
.admin-content {
    display: flex;
    flex-direction: column;
}

.admin-tab-content {
    display: none;
}

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

/* Settings Styles */
.settings-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.settings-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.setting-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.setting-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    cursor: pointer;
}

.setting-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.setting-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Theme Toggle Switch */
.theme-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.theme-toggle input:checked + .toggle-slider {
    background-color: var(--accent);
}

.theme-toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Light theme specific overrides */
:root[data-theme="light"] .toggle-slider {
    background-color: #ccc;
}

:root[data-theme="light"] .toggle-slider:before {
    background-color: #fff;
}

/* Light theme input and form overrides */
:root[data-theme="light"] input,
:root[data-theme="light"] select,
:root[data-theme="light"] textarea {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border);
}

:root[data-theme="light"] .ref-edit-input {
    background: #ffffff;
    color: var(--text-primary);
}

:root[data-theme="light"] .ref-item {
    background: #f8f8f8;
    border: 1px solid var(--border);
}

:root[data-theme="light"] .brand-logo-preview {
    background-color: #ffffff;
}

:root[data-theme="light"] select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Remove arrows from filter dropdowns in both themes */
.filter-group select,
:root[data-theme="light"] .filter-group select {
    background-image: none !important;
}

/* Remove arrows from all form dropdowns and QR modal dropdowns */
.detail-content select,
.control-group select,
.qr-top-controls .control-group select,
:root[data-theme="light"] .detail-content select,
:root[data-theme="light"] .control-group select,
:root[data-theme="light"] .qr-top-controls .control-group select {
    background-image: none !important;
    padding-right: 0.5rem !important;
}

/* Light theme header overrides */
:root[data-theme="light"] .app-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .detail-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
}

:root[data-theme="light"] .filters-container {
    border-top: 1px solid var(--border);
}

:root[data-theme="light"] .label-preview-container {
    background: #f8f8f8;
}

/* Light theme card code contrast fix */
:root[data-theme="light"] .card-code {
    color: #ffffff;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content-small {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin: 0;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 1.5rem;
}

.label-preview-container {
    display: flex;
    justify-content: center;
    background: #f0f0f0;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.label-preview {
    width: 300px;
    /* 4:3 Ratio approx */
    height: 225px;
    background: white;
    /* Simulate paper */
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
    color: black;
    /* Always black text on label */
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Specific Label Styles inside SVG/Div */
.label-svg {
    width: 100%;
    height: 100%;
}

.qr-top-controls {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 1rem;
    padding: 1rem;
    background: rgba(98, 0, 238, 0.1);
    border: 1px solid var(--accent);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.qr-top-controls .control-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qr-top-controls .control-group label {
    font-size: 0.9em;
    color: var(--text-secondary);
    font-weight: 500;
}

.qr-top-controls .control-group select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: var(--bg);
    color: var(--text);
}

.qr-top-controls button {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
    min-width: auto;
    width: auto;
}

.qr-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-control-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.qr-control-section h4 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.9em;
    color: var(--text-secondary);
}

.control-group select {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #444;
    background: var(--bg);
    color: var(--text);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}