/* Apply Onest font to all text */
body {
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
}

/* Headings with proper font weights */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

/* Custom styles to complement Bootstrap */
.card {
    border-radius: 1rem;
    border: 1px solid var(--bs-border-color);
    transition: border-color 0.2s ease;
}

.form-control {
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.btn {
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
    font-weight: 500;
}

#copySuccess {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Recent codes table styling */
.recent-codes-table {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bs-primary) var(--bs-border-color);
}

.recent-codes-table::-webkit-scrollbar {
    width: 8px;
}

.recent-codes-table::-webkit-scrollbar-track {
    background: var(--bs-border-color);
    border-radius: 4px;
}

.recent-codes-table::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary);
    border-radius: 4px;
}

.recent-codes-table table {
    margin-bottom: 0;
}

.recent-codes-table th {
    position: sticky;
    top: 0;
    background-color: var(--bs-body-bg);
    z-index: 1;
    font-weight: 600;
}

.recent-codes-table td {
    vertical-align: middle;
    font-weight: 400;
}

.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.actions-cell {
    white-space: nowrap;
    width: 1%;
}

/* Form validation styling */
.invalid-feedback {
    font-weight: 500;
}

.form-text {
    font-size: 0.875rem;
}

/* Alert styling */
.alert {
    font-weight: 500;
    border-radius: 0.5rem;
}

/* Mobile responsiveness improvements */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card {
        border-radius: 0.5rem;
    }
    
    .url-cell {
        max-width: 200px;
    }
}

/* Dark mode specific styles */
[data-bs-theme="dark"] .recent-codes-table th {
    background-color: var(--bs-dark);
}

[data-bs-theme="light"] .recent-codes-table th {
    background-color: var(--bs-light);
}
