/* ==================== VARIABLES ==================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    --text-dark: #0f172a;
    --text: #334155;
    --text-light: #64748b;
    
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --light: #f1f5f9;
    --border: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    --transition: all 0.3s ease;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--bg-gray);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

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

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--light);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--light);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    background: var(--light);
}

.btn-icon:hover {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== LANDING PAGE ==================== */
.landing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-light);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
}

/* ==================== SIDEBAR - CSS COMPLET ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: white;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Logo Sidebar */
.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    color: var(--text-dark);
}

.sidebar .logo-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.sidebar .logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Navigation */
.nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--primary);
    color: white;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: white;
    border-radius: 0 2px 2px 0;
}

.nav-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
    flex-shrink: 0;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8125rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    background: var(--bg-gray);
}

/* ==================== DASHBOARD HEADER ==================== */
.dashboard-header {
    background: white;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.breadcrumb {
    font-size: 0.875rem;
    color: var(--text-light);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.dashboard-content {
    padding: 2rem;
}

/* ==================== CARDS ==================== */
.card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-content {
    padding: 1.5rem;
}

/* ==================== STATS ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-icon.info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-help {
    display: block;
    color: var(--text-light);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==================== SEARCH & FILTERS ==================== */
.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filters select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    background: white;
    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='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

/* ==================== TABS ==================== */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

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

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

.tab-count {
    background: var(--light);
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.tab-btn.active .tab-count {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.badge-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.badge-primary {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.piece-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.piece-badge.available {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.piece-badge.borrowed {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.piece-badge.reserved {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

/* ==================== PIECES LIST ==================== */
.pieces-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.piece-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
}

.piece-card:hover {
    box-shadow: var(--shadow-md);
}

.piece-image {
    width: 4rem;
    height: 4rem;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.piece-info {
    flex: 1;
    min-width: 0;
}

.piece-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.piece-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.piece-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.piece-actions {
    display: flex;
    gap: 0.5rem;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ==================== EXCHANGES ==================== */
.exchange-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.exchange-card:hover {
    box-shadow: var(--shadow-md);
}

.exchange-header {
    padding: 1.25rem 1.5rem;
    background: var(--bg-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.exchange-id {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.exchange-body {
    padding: 1.5rem;
}

.exchange-piece-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.exchange-piece-image {
    width: 4rem;
    height: 4rem;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.exchange-piece-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.exchange-piece-details p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.exchange-parties {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.party {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.party-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.party-info strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
}

.party-info span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.exchange-arrow {
    font-size: 1.5rem;
    color: var(--text-light);
}

.exchange-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text);
}

.timeline-dot {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.exchange-footer {
    padding: 1rem 1.5rem;
    background: var(--bg-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==================== ORDERS PAGE ==================== */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.order-card.highlight {
    border: 2px solid var(--primary);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.02), transparent);
}

.order-card.completed {
    opacity: 0.8;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.order-title-section h3 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.order-organizer {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.order-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.info-icon {
    font-size: 1.5rem;
}

.order-description {
    margin: 20px 0;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.progress-container {
    margin: 20px 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    transition: width 0.3s ease;
}

.participants-avatars {
    display: flex;
    gap: 8px;
    margin: 20px 0;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.avatar:hover {
    transform: scale(1.1);
}

.avatar-more {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.order-summary {
    padding: 16px;
    background: var(--success-light);
    border-radius: 8px;
    margin: 20px 0;
}

.order-summary p {
    margin: 8px 0;
}

.order-footer {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Modal Large */
.modal-large {
    max-width: 700px;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .order-footer {
        flex-direction: column;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
}


/* ==================== NETWORK PAGE ==================== */
.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.garage-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.garage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.garage-card-avatar {
    width: 5rem;
    height: 5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.garage-card-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.garage-card-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.garage-card-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
}

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

.garage-card-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
}

.garage-card-actions .btn {
    flex: 1;
}

/* Invitations */
.invitation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    transition: var(--transition);
    background: white;
}

.invitation-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.invitation-info {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}

.invitation-details h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.invitation-details p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.125rem;
}

.invitation-date {
    font-size: 0.8125rem;
    color: var(--text-light);
    font-style: italic;
}

.invitation-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-invitations {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.empty-invitations-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Discover Garages */
.discover-filters {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

/* ==================== SETTINGS PAGE ==================== */
.settings-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
    flex-wrap: wrap;
}

.settings-tabs::-webkit-scrollbar {
    height: 4px;
}

.settings-tabs::-webkit-scrollbar-track {
    background: var(--bg-gray);
}

.settings-tabs::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.settings-tab-btn {
    flex: 1 1 auto;
    min-width: 160px;
    padding: 1rem 1.25rem;
    border: none;
    background: transparent;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    white-space: nowrap;
    cursor: pointer;
}

.settings-tab-btn:hover {
    background: var(--bg-gray);
    color: var(--text-dark);
}

.settings-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.settings-tab-btn .nav-icon {
    font-size: 1.125rem;
}

.settings-tab {
    display: none;
    animation: fadeInUp 0.3s ease;
}

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

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

.settings-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.settings-card:last-child {
    margin-bottom: 0;
}

.settings-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

/* Avatar Upload */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.avatar-preview {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.avatar-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Stat Row */
.stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Specialties Grid */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-card {
    position: relative;
    cursor: pointer;
}

.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card-content {
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-align: center;
    background: white;
}

.checkbox-card input[type="checkbox"]:checked + .checkbox-card-content {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.checkbox-card-content .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.checkbox-card-content strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

/* Opening Hours */
.opening-hours-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.opening-hour-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
}

.day-label {
    min-width: 100px;
    font-weight: 500;
    color: var(--text-dark);
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-inputs input[type="time"] {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9375rem;
}

.time-inputs input[type="time"]:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

/* Notification Toggle */
.notification-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
    cursor: pointer;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.notification-toggle:hover {
    background: #e5e7eb;
}

.notification-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.notification-content span {
    display: block;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.theme-option {
    position: relative;
}

.theme-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.theme-card {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.theme-option input[type="radio"]:checked + .theme-card {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.theme-card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.theme-card strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.theme-card span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* Security Feature */
.security-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.security-feature-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.security-feature-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Session Item */
.session-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.session-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.session-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Subscription Card */
.subscription-card {
    padding: 2rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 1.5rem;
}

.subscription-card.current {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.subscription-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.subscription-period {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.subscription-features {
    text-align: left;
    margin-bottom: 1.5rem;
}

.subscription-features ul {
    list-style: none;
}

.subscription-features ul li {
    padding: 0.5rem 0;
    color: var(--text);
}

.subscription-features ul li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* Invoice Item */
.invoice-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.invoice-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.invoice-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Payment Method */
.payment-method {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--bg-gray);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.payment-info h4 {
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.payment-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Danger Action */
.danger-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.danger-info h4 {
    color: var(--danger);
    margin-bottom: 0.25rem;
}

.danger-info p {
    font-size: 0.875rem;
    color: var(--text);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Divider */
.divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

.alert p {
    margin: 0;
    font-size: 0.9375rem;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
    color: var(--text-dark);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success);
    color: var(--text-dark);
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

.modal-large {
    max-width: 800px;
}

.modal-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.close:hover {
    background: var(--light);
    color: var(--text-dark);
}

/* Piece Details Modal */
.piece-details-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.piece-details-image {
    width: 200px;
    height: 200px;
    background: var(--light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.piece-details-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    width: 150px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.info-value {
    flex: 1;
    color: var(--text-dark);
}

.garage-details-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.garage-details-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.garage-details-avatar {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.garage-details-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.garage-details-info p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.125rem 0;
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
}

.pagination-page {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--border);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.pagination-page:hover {
    background: var(--light);
}

.pagination-page.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 999;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    background: white;
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .network-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-2-cols,
    .grid-3-cols {
        grid-template-columns: 1fr;
    }
    
    .piece-details-grid {
        grid-template-columns: 1fr;
    }
    
    .piece-details-image {
        margin: 0 auto;
    }
    
    .settings-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .settings-tab-btn {
        flex: 0 0 auto;
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .piece-card {
        flex-direction: column;
        text-align: center;
    }
    
    .piece-info {
        text-align: center;
    }
    
    .piece-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .piece-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .piece-actions .btn {
        width: 100%;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select {
        width: 100%;
    }
    
    .exchange-parties {
        flex-direction: column;
        text-align: center;
    }
    
    .exchange-arrow {
        transform: rotate(90deg);
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .order-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-footer .btn {
        width: 100%;
    }
    
    .network-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
    }
    
    .stat-row {
        grid-template-columns: 1fr;
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-selector {
        grid-template-columns: 1fr;
    }
    
    .security-feature,
    .session-item,
    .invoice-item,
    .payment-method,
    .danger-action {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .security-feature .btn,
    .session-item .btn,
    .invoice-item .btn,
    .payment-method .btn {
        width: 100%;
    }
    
    .opening-hour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .time-inputs {
        width: 100%;
        justify-content: space-between;
    }
    
    .avatar-upload {
        flex-direction: column;
        text-align: center;
    }
    
    .avatar-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .avatar-buttons .btn {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 1rem;
    }
    
    .piece-image {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.75rem;
    }
    
    .stat-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
    
    .settings-tabs {
        padding: 0.375rem;
        gap: 0.375rem;
    }
    
    .settings-tab-btn {
        min-width: 120px;
        padding: 0.75rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .settings-card {
        padding: 1rem;
    }
    
    .settings-card h3 {
        font-size: 1.125rem;
    }
    
    .avatar-preview {
        width: 5rem;
        height: 5rem;
        font-size: 1.75rem;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .exchange-piece-image {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    .party-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .garage-card-avatar {
        width: 4rem;
        height: 4rem;
        font-size: 1.5rem;
    }
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .sidebar,
    .dashboard-header,
    .btn,
    .modal,
    .mobile-menu-toggle,
    .sidebar-overlay {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--border);
        page-break-inside: avoid;
    }
}

/* ==================== UTILITY CLASSES ==================== */
.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-between {
    justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

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

.text-danger {
    color: var(--danger);
}

.text-success {
    color: var(--success);
}

.text-primary {
    color: var(--primary);
}

.fw-bold {
    font-weight: 700;
}

.fw-semibold {
    font-weight: 600;
}

.fw-medium {
    font-weight: 500;
}

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

.text-xs {
    font-size: 0.75rem;
}

.bg-light {
    background: var(--light);
}

.bg-gray {
    background: var(--bg-gray);
}

.border-radius {
    border-radius: var(--radius);
}

.border-radius-lg {
    border-radius: var(--radius-lg);
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.shadow {
    box-shadow: var(--shadow);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.position-relative {
    position: relative;
}

.overflow-hidden {
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-sm {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

.spinner-lg {
    width: 3rem;
    height: 3rem;
    border-width: 4px;
}

/* ==================== TOOLTIPS ==================== */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background: var(--text-dark);
    color: white;
    font-size: 0.8125rem;
    border-radius: var(--radius);
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--text-dark);
    z-index: 1000;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.25rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 9999;
    animation: slideInRight 0.3s ease;
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: var(--text);
}

.toast-close {
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: var(--transition);
}

.toast-close:hover {
    color: var(--text-dark);
}

/* ==================== FIN DU CSS ==================== */
