/* Modern UI Enhancements - Rounded, Clean, Contemporary */

/* Cards & Containers */
.card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    border-radius: 8px !important;
    transition: all 0.2s ease;
    font-weight: 500;
    border: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    border-radius: 6px !important;
}

/* Inputs & Selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="file"],
select,
textarea {
    border-radius: 8px !important;
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    transition: all 0.2s ease;
    background: var(--bg-primary);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Tables */
table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

table thead tr {
    background: var(--bg-tertiary);
}

table tbody tr {
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Tabs */
.tab {
    border-radius: 8px 8px 0 0 !important;
    transition: all 0.2s ease;
    border: none;
}

.tab.active {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Modals */
.modal {
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-radius: 16px 16px 0 0;
}

/* Badges */
.badge {
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Bike Cards */
.bike-card {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bike-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.bike-card-header {
    border-radius: 12px 12px 0 0 !important;
}

.bike-card-image {
    border-radius: 0 !important;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 !important;
}

.nav-brand img {
    border-radius: 8px !important;
}

/* Close buttons */
.close-btn {
    border-radius: 50% !important;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

/* Filter section */
.filter-bar,
.card > div[style*="grid-template-columns"] {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Image thumbnails */
.bike-image-thumb {
    border-radius: 8px !important;
    transition: transform 0.2s ease;
}

.bike-image-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Action button groups */
td > div {
    gap: 6px;
}

/* Smooth transitions everywhere */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Profile image in header */
.dashboard-header img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.dashboard-header img:hover {
    transform: scale(1.05);
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success/Error messages */
.success,
.error {
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0;
}

.success {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
}

.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
}

/* Section headers */
.section-header {
    margin-bottom: 20px;
}

/* Admin section */
.admin-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Select styling */
select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* Scrollbar in selects */
select[size] {
    border-radius: 8px;
    padding: 8px;
}

select[size] option {
    padding: 8px;
    border-radius: 4px;
    margin: 2px 0;
}

select[size] option:hover {
    background: var(--primary);
    color: white;
}

/* Auth pages */
.auth-card {
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-logo img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

