/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* App Container */
.app-container {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
}

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

.nav-menu {
    list-style: none;
    padding: 1rem 0;
}

.nav-item {
    margin: 0.25rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateX(4px);
}

.nav-item.active .nav-link {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.nav-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    background: #f8fafc;
}

/* Top Header */
.top-header {
    background: white;
    padding: 2rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e2e8f0;
}

.header-left h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.header-left p {
    color: #64748b;
    font-size: 1.1rem;
}

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

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1.1rem;
}

.search-box input {
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    width: 300px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.search-box input:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: #e2e8f0;
}

.user-profile i {
    font-size: 1.5rem;
    color: #64748b;
}

.user-profile span {
    font-weight: 600;
    color: #1e293b;
}

/* Dashboard */
.dashboard {
    padding: 3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.customers {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.stat-icon.products {
    background: linear-gradient(135deg, #10b981, #059669);
}

.stat-icon.orders {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.stat-icon.revenue {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* Dashboard Sections */
.dashboard-sections {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.section-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

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

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.view-all {
    color: #f59e0b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #d97706;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f8fafc;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.activity-item:nth-child(1) .activity-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.activity-item:nth-child(2) .activity-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.activity-item:nth-child(3) .activity-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.activity-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.activity-content p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard {
        padding: 1.5rem;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

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

.stat-card,
.section-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Form Styles */
.form-container {
    padding: 3rem;
}

.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.form-header {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.form-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.form-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-title p {
    opacity: 0.9;
    font-size: 1rem;
}

.customer-form {
    padding: 2rem;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title i {
    color: #f59e0b;
    font-size: 1.1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-wrapper textarea {
    padding-left: 3rem;
    resize: vertical;
    min-height: 80px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.input-wrapper input:invalid:not(:placeholder-shown),
.input-wrapper select:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
}

/* Customers Page Styles */
.customers-container {
    padding: 2rem;
}

.customers-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stat-content p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.customers-list {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.filters-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.filter-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.filters-right {
    display: flex;
    align-items: center;
}

.stats-summary {
    display: flex;
    gap: 2rem;
}

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

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Customer List Items */
.customer-list-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.customer-list-item:last-child {
    border-bottom: none;
}

.customer-list-item:hover {
    background: #f8fafc;
}

.customer-list-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.customer-list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-list-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.customer-list-email {
    color: #64748b;
    font-size: 0.9rem;
}

.customer-list-phone {
    color: #64748b;
    font-size: 0.9rem;
}

.customer-list-stats {
    display: flex;
    gap: 2rem;
    margin-left: auto;
}

.customer-list-stat {
    text-align: center;
}

.customer-list-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.customer-list-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.customer-list-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.customer-list-actions .btn {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.customer-list-actions .btn-edit {
    background: #3b82f6;
    color: white;
}

.customer-list-actions .btn-edit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.customer-list-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.customer-list-actions .btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.customer-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.customer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.customer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.customer-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.customer-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.customer-info p {
    color: #64748b;
    font-size: 0.9rem;
}

.customer-type {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.customer-type.vip {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.customer-type.regular {
    background: #e2e8f0;
    color: #64748b;
}

.customer-type.wholesale {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.customer-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item-small {
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-item-small h4 {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-item-small p {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.customer-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.action-btn {
    flex: 1;
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.action-btn.primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.action-btn.secondary {
    background: #f1f5f9;
    color: #64748b;
}

.action-btn:hover {
    transform: translateY(-1px);
}

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

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #fbbf24;
    color: #f59e0b;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-number:hover {
    background: #f1f5f9;
}

.page-number.active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.page-dots {
    color: #64748b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.modal-body {
    padding: 2rem;
}

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

/* Customer Details */
.customer-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section h3 i {
    color: #f59e0b;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.orders-section {
    margin-top: 2rem;
}

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

.section-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.section-header h3 i {
    color: #f59e0b;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.order-date {
    font-size: 0.875rem;
    color: #64748b;
}

.order-amount {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

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

.invoice-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.orders-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.pagination-info {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.25rem;
}

.page-number {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    min-width: 36px;
    text-align: center;
}

.page-number:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.page-number.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.page-dots {
    color: #64748b;
    padding: 0.5rem 0.25rem;
    font-size: 0.875rem;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.detail-label {
    font-weight: 600;
    color: #64748b;
}

.detail-value {
    color: #1e293b;
    font-weight: 500;
}

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

.stat-card.small {
    padding: 1rem;
    border-radius: 12px;
}

.recent-orders {
    max-height: 300px;
    overflow-y: auto;
}

.no-data {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2rem;
}

/* Responsive Customers */
@media (max-width: 768px) {
    .customers-container {
        padding: 1.5rem;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .filters-left {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stats-summary {
        justify-content: center;
    }
    
    .customers-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .customer-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .customer-list-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }

    .customer-list-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .page-numbers {
        order: -1;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Stock Management Styles */
.stock-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-list-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
}

.product-list-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.product-list-info {
    flex: 1;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    border: 1px solid transparent;
}

.product-list-info:hover {
    background-color: #f1f5f9;
    border-color: #e2e8f0;
}

.product-list-model {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.product-list-code {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    background: #f8fafc;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    display: inline-block;
}

.product-list-price {
    font-size: 1rem;
    font-weight: 600;
    color: #059669;
}

.product-list-stats {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    align-items: center;
}

.product-list-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.product-list-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-list-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    background: #f8fafc;
    min-width: 40px;
    text-align: center;
}

.product-list-stat-value.in-stock {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.product-list-stat-value.low-stock {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.product-list-stat-value.out-of-stock {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.product-list-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.product-list-actions .btn {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.product-list-actions .btn-edit {
    background: #3b82f6;
    color: white;
}

.product-list-actions .btn-edit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.product-list-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.product-list-actions .btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Product Form Styles */
.product-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

/* Enhanced Form Styles for Better Mobile Compatibility */
.form-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title i {
    color: #f59e0b;
    font-size: 1.1rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 1;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
    z-index: 3;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.input-wrapper textarea {
    padding-left: 3rem;
    resize: vertical;
    min-height: 80px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    z-index: 4;
}

.input-wrapper input:invalid:not(:placeholder-shown),
.input-wrapper select:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 1;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group.error .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    position: relative;
    z-index: 5;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Enhanced Responsive Form Styles */
@media (max-width: 768px) {
    .product-form {
        max-width: 100%;
        margin: 0 1rem;
        padding: 1rem;
        border-radius: 12px;
    }
    
    .form-section {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 0.625rem 0.875rem 0.625rem 2.5rem;
        font-size: 0.875rem;
        border-radius: 8px;
    }
    
    .input-wrapper i {
        left: 0.875rem;
        font-size: 0.875rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .product-form {
        margin: 0 0.5rem;
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 0.5rem 0.75rem 0.5rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .input-wrapper i {
        left: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Stock History Styles */
.stock-history {
    margin-top: 2rem;
}

.stock-history h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-history h3 i {
    color: #3b82f6;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #e2e8f0;
}

.history-item:nth-child(odd) {
    background: white;
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-type {
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-type.in {
    color: #059669;
}

.history-type.out {
    color: #dc2626;
}

.history-date {
    font-size: 0.75rem;
    color: #64748b;
}

.history-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.history-quantity {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.history-note {
    font-size: 0.75rem;
    color: #64748b;
}

/* Product Modal Styles */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Responsive Stock Management */
@media (max-width: 768px) {
    .stock-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .product-list-stats {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .product-list-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .history-details {
        align-items: flex-start;
    }
} 

/* Order Creation Page Styles */
.order-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.order-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.products-selection {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-search {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-search input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.product-search input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.available-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.product-card-info {
    flex: 1;
}

.product-card-model {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-card-code {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.product-card-price {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.product-card-stock {
    margin-left: 1rem;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.stock-badge.in-stock {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.stock-badge.low-stock {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.stock-badge.out-of-stock {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.order-items {
    margin-top: 1.5rem;
}

.order-item-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.order-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.order-item-info {
    flex: 1;
}

.order-item-model {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.order-item-code {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.order-item-price {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
}

.quantity-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

.order-item-total {
    margin: 0 1rem;
    min-width: 100px;
    text-align: right;
}

.total-price {
    font-weight: 700;
    color: #059669;
    font-size: 1.125rem;
}

.order-item-actions {
    margin-left: auto;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid #e2e8f0;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.summary-item span:first-child {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.summary-item span:last-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

/* İndirim kontrolleri */
.discount-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
}

.discount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.discount-select {
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discount-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* İndirimli tutar vurgusu */
#discountedAmount {
    color: #059669 !important;
}

.no-products,
.no-items {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* Responsive styles for order creation */
@media (max-width: 768px) {
    .order-form-container {
        padding: 1rem;
    }
    
    .products-selection {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-search {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .available-products {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order-item-info {
        width: 100%;
    }
    
    .order-item-quantity {
        justify-content: center;
    }
    
    .order-item-actions {
        justify-content: center;
    }
    
    .order-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
} 

/* Orders List Styles */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.order-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.order-list-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #fbbf24;
}

.order-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-list-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.order-list-customer {
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.order-list-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.order-list-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #059669;
    text-align: center;
}

.order-list-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-list-status.completed {
    background: #dcfce7;
    color: #166534;
}

.order-list-status.pending {
    background: #fef3c7;
    color: #92400e;
}

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

.invoice-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.invoice-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Orders Section Header */
.orders-section {
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-header h2 i {
    color: #f59e0b;
    font-size: 1.25rem;
}

/* Responsive Design for Orders List */
@media (max-width: 1200px) {
    .order-list-item {
        grid-template-columns: 1fr 1fr 1fr auto auto;
        gap: 1rem;
    }
    
    .order-list-date {
        display: none;
    }
}

@media (max-width: 768px) {
    .order-list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .order-list-info {
        order: 1;
    }
    
    .order-list-amount {
        order: 2;
    }
    
    .order-list-status {
        order: 3;
    }
    
    .order-list-actions {
        order: 4;
        justify-content: center;
    }
    
    .order-list-date {
        display: block;
        order: 5;
    }
} 

/* Stock Page Styles */
.stock-content {
    padding: 3rem;
}

.stock-section {
    margin-top: 2rem;
}

.products-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.product-list-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-list-item:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: #fbbf24;
}

.product-list-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-list-model {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.product-list-code {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    display: inline-block;
    width: fit-content;
}

.product-list-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #059669;
}

.product-list-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-list-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.product-list-stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-list-stat-value {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-align: center;
}

.product-list-stat-value.in-stock {
    background: #dcfce7;
    color: #166534;
}

.product-list-stat-value.low-stock {
    background: #fef3c7;
    color: #92400e;
}

.product-list-stat-value.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}

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

.product-list-actions .btn {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.product-list-actions .btn-edit {
    background: #3b82f6;
    color: white;
}

.product-list-actions .btn-edit:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.product-list-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.product-list-actions .btn-delete:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Product Modal Styles */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    font-weight: 500;
    color: #1e293b;
}

/* Stock History Styles */
.stock-history {
    margin-top: 2rem;
}

.stock-history h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stock-history h3 i {
    color: #f59e0b;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.history-type {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.history-type.in {
    background: #dcfce7;
    color: #166534;
}

.history-type.out {
    background: #fee2e2;
    color: #991b1b;
}

.history-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.history-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.history-quantity {
    font-weight: 700;
    color: #1e293b;
}

.history-note {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Responsive Design for Stock */
@media (max-width: 1200px) {
    .product-list-item {
        grid-template-columns: 1fr 1fr auto auto;
        gap: 1rem;
    }
    
    .product-list-code {
        display: none;
    }
}

@media (max-width: 768px) {
    .stock-content {
        padding: 1.5rem;
    }
    
    .product-list-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .product-list-info {
        order: 1;
    }
    
    .product-list-stats {
        order: 2;
    }
    
    .product-list-actions {
        order: 3;
        justify-content: center;
    }
    
    .product-list-code {
        display: block;
        order: 4;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .history-details {
        align-items: flex-start;
    }
} 

/* Create Order Page Styles */
.create-order-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.order-form {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: #3b82f6;
}

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

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

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-input {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input input {
    flex: 1;
}

.search-input button {
    padding: 0.75rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-input button:hover {
    background: #2563eb;
}

.available-products {
    margin-top: 1rem;
}

.available-products h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.product-card-info {
    flex: 1;
}

.product-card-model {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-card-code {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.product-card-price {
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.product-card-stock {
    margin-left: 1rem;
}

.stock-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    min-width: 60px;
}

.stock-badge.in-stock {
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.stock-badge.low-stock {
    color: #d97706;
    background: #fffbeb;
    border: 1px solid #fed7aa;
}

.stock-badge.out-of-stock {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.order-items {
    margin-top: 1.5rem;
}

.order-item-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.order-item-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.order-item-info {
    flex: 1;
}

.order-item-model {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.order-item-code {
    font-size: 0.875rem;
    color: #64748b;
    font-family: 'Courier New', monospace;
    margin-bottom: 0.25rem;
}

.order-item-price {
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
}

.order-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 1rem;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
}

.quantity-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #1e293b;
}

.order-item-total {
    margin: 0 1rem;
    min-width: 100px;
    text-align: right;
}

.total-price {
    font-weight: 700;
    color: #059669;
    font-size: 1.125rem;
}

.order-item-actions {
    margin-left: auto;
}

.order-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.summary-row.total {
    font-weight: 700;
    font-size: 1.125rem;
    color: #059669;
    border-top: 2px solid #e2e8f0;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.summary-row label {
    font-weight: 500;
    color: #374151;
}

.summary-row input,
.summary-row select {
    width: 150px;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.no-items {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Responsive styles for create order page */
@media (max-width: 768px) {
    .create-order-content {
        padding: 1rem;
    }
    
    .order-form {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order-item-info {
        width: 100%;
    }
    
    .order-item-quantity {
        justify-content: center;
    }
    
    .order-item-actions {
        justify-content: center;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .summary-row input,
    .summary-row select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
} 

/* Enhanced Responsive Form */
@media (max-width: 768px) {
    .form-container {
        padding: 1rem;
    }
    
    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Fix overlapping elements in forms */
    .input-wrapper {
        position: relative;
        z-index: 1;
    }
    
    .input-wrapper i {
        z-index: 2;
    }
    
    .form-group {
        position: relative;
        z-index: 1;
    }
}

/* Enhanced Mobile Styles for All Pages */
@media (max-width: 768px) {
    /* Sidebar adjustments */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 1000;
        height: 100vh;
        overflow-y: auto;
        width: 280px;
        max-width: 85vw;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
        /* Add top padding to avoid mobile menu overlap */
        padding-top: 5rem;
    }
    
    /* Header adjustments */
    .top-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: flex-start;
        /* Add top margin to avoid mobile menu overlap */
        margin-top: 1rem;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .header-left p {
        font-size: 0.875rem;
    }
    
    .header-right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    /* Search box adjustments */
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
    
    /* Stats grid adjustments */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Form container and card adjustments for mobile */
    .form-container {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .form-card {
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .form-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .form-header p {
        font-size: 0.875rem;
    }
    
    .customer-form {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .section-title {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .input-wrapper {
        position: relative;
        z-index: 1;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 0.75rem 0.75rem 0.75rem 2.25rem;
        font-size: 16px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    .input-wrapper i {
        left: 0.75rem;
        font-size: 0.875rem;
        z-index: 2;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
        border-radius: 8px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .top-header {
        padding: 0.75rem;
    }
    
    .header-left h1 {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 0.5rem 0.75rem 0.5rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .input-wrapper i {
        left: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        flex-direction: row;
        align-items: center;
    }
    
    .header-right {
        width: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        border-width: 1px;
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Mobile Menu Toggle Styles */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #fbbf24;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    display: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

/* Mobile View Styles */
.mobile-view .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    z-index: 1000;
    height: 100vh;
    overflow-y: auto;
    width: 280px;
    max-width: 85vw;
}

.mobile-view .sidebar.show {
    transform: translateX(0);
}

.mobile-view .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
}

/* Enhanced Mobile Styles for All Pages */
@media (max-width: 768px) {
    /* Sidebar adjustments */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 1000;
        height: 100vh;
        overflow-y: auto;
        width: 280px;
        max-width: 85vw;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    /* Header adjustments */
    .top-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: flex-start;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .header-left p {
        font-size: 0.875rem;
    }
    
    .header-right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    /* Search box adjustments */
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
    
    /* Stats grid adjustments */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Customer list adjustments */
    .customers-container {
        padding: 1rem;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .filters-left {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .customers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .customer-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .customer-list-stats {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .customer-list-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .customer-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Detail grid adjustments */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Orders list adjustments */
    .orders-section {
        padding: 1rem;
    }
    
    .order-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order-list-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .order-list-amount {
        text-align: left;
    }
    
    .order-list-status {
        align-self: flex-start;
    }
    
    .order-list-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .order-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .order-list-date {
        font-size: 0.875rem;
    }
    
    /* Stock page adjustments */
    .stock-content {
        padding: 1rem;
    }
    
    .product-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-list-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .product-list-stats {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .product-list-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .product-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-list-code {
        font-size: 0.875rem;
    }
    
    /* History item adjustments */
    .history-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .history-details {
        align-items: flex-start;
    }
    
    /* Create order page adjustments */
    .create-order-content {
        padding: 1rem;
    }
    
    .order-form {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order-item-info {
        width: 100%;
    }
    
    .order-item-quantity {
        justify-content: center;
    }
    
    .order-item-actions {
        justify-content: center;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .summary-row input,
    .summary-row select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Pagination adjustments */
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Button adjustments for mobile */
    .btn {
        min-height: 44px; /* Better touch target */
        touch-action: manipulation;
    }
    
    /* Input adjustments for mobile */
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch target */
    }
    
    /* Fix overlapping elements in forms */
    .input-wrapper {
        position: relative;
        z-index: 1;
    }
    
    .input-wrapper i {
        z-index: 2;
    }
    
    .form-group {
        position: relative;
        z-index: 1;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
    
    .top-header {
        padding: 0.75rem;
    }
    
    .header-left h1 {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 0.75rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        padding: 0.5rem 0.75rem 0.5rem 2.25rem;
        font-size: 0.875rem;
    }
    
    .input-wrapper i {
        left: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        flex-direction: row;
        align-items: center;
    }
    
    .header-right {
        width: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        border-width: 1px;
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Mobile Menu Toggle Styles */
.mobile-menu-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #fbbf24;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    display: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.mobile-menu-toggle:active {
    transform: translateY(0);
}

/* Mobile View Styles */
.mobile-view .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    z-index: 1000;
    height: 100vh;
    overflow-y: auto;
    width: 280px;
    max-width: 85vw;
}

.mobile-view .sidebar.show {
    transform: translateX(0);
}

.mobile-view .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
}

/* Enhanced Mobile Styles for All Pages */
@media (max-width: 768px) {
    /* Sidebar adjustments */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        z-index: 1000;
        height: 100vh;
        overflow-y: auto;
        width: 280px;
        max-width: 85vw;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }
    
    /* Header adjustments */
    .top-header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        align-items: flex-start;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .header-left p {
        font-size: 0.875rem;
    }
    
    .header-right {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }
    
    /* Search box adjustments */
    .search-box {
        width: 100%;
        max-width: none;
    }
    
    .search-box input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
    }
    
    /* Stats grid adjustments */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    /* Customer list adjustments */
    .customers-container {
        padding: 1rem;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .filters-left {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .customers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .customer-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .customer-list-stats {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .customer-list-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .customer-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Detail grid adjustments */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Orders list adjustments */
    .orders-section {
        padding: 1rem;
    }
    
    .order-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order-list-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .order-list-amount {
        text-align: left;
    }
    
    .order-list-status {
        align-self: flex-start;
    }
    
    .order-list-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .order-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .order-list-date {
        font-size: 0.875rem;
    }
    
    /* Stock page adjustments */
    .stock-content {
        padding: 1rem;
    }
    
    .product-list-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .product-list-info {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .product-list-stats {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .product-list-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .product-list-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .product-list-code {
        font-size: 0.875rem;
    }
    
    /* History item adjustments */
    .history-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .history-details {
        align-items: flex-start;
    }
    
    /* Create order page adjustments */
    .create-order-content {
        padding: 1rem;
    }
    
    .order-form {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .order-item-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .order-item-info {
        width: 100%;
    }
    
    .order-item-quantity {
        justify-content: center;
    }
    
    .order-item-actions {
        justify-content: center;
    }
    
    .summary-row {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .summary-row input,
    .summary-row select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Pagination adjustments */
    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-numbers {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Button adjustments for mobile */
    .btn {
        min-height: 44px; /* Better touch target */
        touch-action: manipulation;
    }
    
    /* Input adjustments for mobile */
    .input-wrapper input,
    .input-wrapper select,
    .input-wrapper textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Better touch target */
    }
    
    /* Fix overlapping elements in forms */
    .input-wrapper {
        position: relative;
        z-index: 1;
    }
    
    .input-wrapper i {
        z-index: 2;
    }
    
    .form-group {
        position: relative;
        z-index: 1;
    }
}

/* Balance Management Styles */
.balance-positive {
    color: #10b981;
    font-weight: 600;
}

.balance-negative {
    color: #ef4444;
    font-weight: 600;
}

.balance-zero {
    color: #6b7280;
    font-weight: 600;
}

.amount-positive {
    color: #10b981;
    font-weight: 600;
}

.amount-negative {
    color: #ef4444;
    font-weight: 600;
}

.amount-zero {
    color: #6b7280;
    font-weight: 600;
}

/* Payment Modal Styles */
#paymentModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#paymentModal.show {
    opacity: 1;
}

#paymentModal .modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#paymentModal.show .modal-content {
    transform: translateY(0);
}

#paymentModal .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#paymentModal .modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
}

#paymentModal .modal-body {
    padding: 1.5rem;
}

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

.current-balance {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.current-balance h4 {
    margin: 0 0 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.balance-display {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Balance History Styles */
.balance-history {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.balance-history h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance-history h3 i {
    color: #f59e0b;
}

.balance-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.balance-history-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.balance-history-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.balance-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.balance-history-content {
    flex: 1;
}

.balance-history-description {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.balance-history-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.balance-history-amount {
    font-weight: 700;
    font-size: 1.125rem;
    text-align: right;
}

.balance-history-balance {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: right;
    margin-top: 0.25rem;
}

/* Payment Button Styles */
.btn-payment {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-payment:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-payment i {
    margin-right: 0.5rem;
}

/* Responsive Design for Balance Features */
@media (max-width: 768px) {
    #paymentModal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    #paymentModal .modal-header {
        padding: 1rem;
    }
    
    #paymentModal .modal-body {
        padding: 1rem;
    }
    
    #paymentModal .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .balance-history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .balance-history-amount,
    .balance-history-balance {
        text-align: left;
        align-self: flex-end;
    }
    
    .current-balance {
        padding: 1rem;
    }
    
    .balance-display {
        font-size: 1.5rem;
    }
}

/* Prices Page Styles */
.prices-content {
    padding: 2rem;
}

.prices-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
    overflow: hidden;
}

.section-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: #f59e0b;
}

.section-actions {
    display: flex;
    gap: 1rem;
}

.prices-list {
    padding: 0;
}

.price-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    background: white;
}

.price-list-item:last-child {
    border-bottom: none;
}

.price-list-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.price-list-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
}

.price-list-product {
    min-width: 200px;
}

.price-list-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.price-list-code {
    font-size: 0.875rem;
    color: #6b7280;
}

.price-list-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.price-list-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
}

.price-list-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-type-retail {
    background: #dbeafe;
    color: #1d4ed8;
}

.price-type-wholesale {
    background: #fef3c7;
    color: #d97706;
}

.price-type-discount {
    background: #fce7f3;
    color: #be185d;
}

.price-type-seasonal {
    background: #dcfce7;
    color: #166534;
}

.price-type-default {
    background: #f3f4f6;
    color: #374151;
}

.price-list-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 2rem;
    min-width: 200px;
}

.price-list-date,
.price-list-notes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.price-list-date i,
.price-list-notes i {
    color: #9ca3af;
    width: 16px;
}

.price-list-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.price-list-actions .btn {
    padding: 0.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.price-list-actions .btn-edit {
    background: #3b82f6;
    color: white;
}

.price-list-actions .btn-edit:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.price-list-actions .btn-delete {
    background: #ef4444;
    color: white;
}

.price-list-actions .btn-delete:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Price Modal Styles */
#priceModal .modal-content {
    max-width: 600px;
}

#priceModal .form-section {
    margin-bottom: 0;
}

#priceModal .section-title {
    margin-bottom: 1.5rem;
}

#priceModal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

#priceModal .form-group {
    margin-bottom: 0;
}

#priceModal .form-group.full-width {
    grid-column: 1 / -1;
}

#priceModal .input-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.3s ease;
}

#priceModal .input-wrapper select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#priceModal .input-wrapper textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
}

#priceModal .input-wrapper textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design for Prices */
@media (max-width: 1200px) {
    .price-list-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .price-list-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .prices-content {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .section-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .price-list-item {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .price-list-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .price-list-details {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
    
    .price-list-meta {
        width: 100%;
        margin-left: 0;
    }
    
    .price-list-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
    
    #priceModal .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #priceModal .modal-content {
        margin: 1rem;
        max-height: 90vh;
    }
}

@media (max-width: 480px) {
    .price-list-item {
        padding: 0.75rem;
    }
    
    .price-list-name {
        font-size: 1rem;
    }
    
    .price-list-price {
        font-size: 1.125rem;
    }
    
    .price-list-actions .btn {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* Quick Order Section */
.quick-order-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

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

.quick-order-section .section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.quick-order-section .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Yearly Orders Section */
.yearly-orders-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

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

.yearly-orders-section .section-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.yearly-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-selector {
    position: relative;
}

.year-selector select {
    padding: 0.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-selector select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.yearly-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.yearly-orders-list {
    max-height: 400px;
    overflow-y: auto;
}

.yearly-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.yearly-order-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.yearly-order-info {
    flex: 1;
}

.yearly-order-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.yearly-order-date {
    color: #64748b;
    font-size: 0.9rem;
}

.yearly-order-amount {
    font-weight: 600;
    color: #059669;
    font-size: 1.1rem;
}

.yearly-order-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.yearly-order-status.completed {
    background: #dcfce7;
    color: #059669;
}

.yearly-order-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.yearly-order-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Balance Display in Modal */
.modal .detail-row .detail-value.balance-positive {
    color: #059669;
    font-weight: 600;
}

.modal .detail-row .detail-value.balance-negative {
    color: #dc2626;
    font-weight: 600;
}

.modal .detail-row .detail-value.balance-zero {
    color: #64748b;
    font-weight: 600;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .quick-order-section,
    .yearly-orders-section {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .quick-order-section .section-header,
    .yearly-orders-section .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .yearly-actions {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .yearly-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .yearly-order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .yearly-order-amount {
        align-self: flex-end;
    }
}

/* Customer Info Section */
.customer-info-section {
    margin-top: 1.5rem;
}

.customer-info-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.customer-info-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.customer-info-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.customer-info-header h3 i {
    color: #fbbf24;
}

.customer-info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.customer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.info-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.info-value.balance-positive {
    color: #059669;
}

.info-value.balance-negative {
    color: #dc2626;
}

.info-value.balance-zero {
    color: #64748b;
}

@media (max-width: 768px) {
    .customer-info-content {
        grid-template-columns: 1fr;
    }
    
    .customer-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* Yearly Summary */
.yearly-summary {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.yearly-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.yearly-summary .summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.yearly-summary .summary-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.yearly-summary .summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.yearly-summary .summary-value.completed {
    color: #059669;
}

.yearly-summary .summary-value.pending {
    color: #d97706;
}

.yearly-summary .summary-value.cancelled {
    color: #dc2626;
}

@media (max-width: 768px) {
    .yearly-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Workshop Management Styles */
.workshop-management {
    padding: 2rem;
}

.quick-actions-section {
    margin-bottom: 2rem;
}

.quick-actions-section .section-header {
    margin-bottom: 1rem;
}

.quick-actions-section .quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
    cursor: pointer;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.quick-action-btn i {
    font-size: 1.2rem;
}

.workshop-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workshop-badge.derici {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.workshop-badge.cantaci {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.workshop-badge.dikici {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.beklemede {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-badge.calisiyor {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.status-badge.tamamlandi {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge.teslim_edildi {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.payment-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-status.beklemede {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.payment-status.kismi_odendi {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.payment-status.odendi {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.btn-icon i {
    font-size: 0.875rem;
}

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

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

.no-data {
    text-align: center;
    padding: 3rem 1rem;
}

.no-data-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-data-content i {
    font-size: 3rem;
    color: #d1d5db;
}

.no-data-content p {
    color: #6b7280;
    font-size: 1rem;
}

/* Modal Styles for Workshop */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.show {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close {
    color: #1e293b;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #374151;
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Notification Styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #fbbf24;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: #10b981;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    font-size: 1.25rem;
}

.notification.success .notification-content i {
    color: #10b981;
}

.notification.error .notification-content i {
    color: #ef4444;
}

.notification.info .notification-content i {
    color: #fbbf24;
}

/* Responsive Design for Workshop Management */
@media (max-width: 768px) {
    .workshop-management {
        padding: 1rem;
    }
    
    .quick-actions-section .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .btn-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .workshop-management {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 98%;
        margin: 5% auto;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        transform: translateY(-100%);
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

/* Workshop Cards Grid */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.workshop-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

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

.workshop-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    position: relative;
}

.workshop-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.workshop-avatar i {
    font-size: 1.5rem;
    color: #1e293b;
}

.workshop-info {
    flex: 1;
}

.workshop-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.workshop-balance {
    text-align: right;
}

.balance-amount {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.balance-amount.positive {
    color: #10b981;
}

.balance-amount.negative {
    color: #ef4444;
}

.workshop-card-body {
    padding: 1.5rem;
}

.workshop-details p {
    margin: 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.workshop-details strong {
    color: #374151;
}

.workshop-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.workshop-card-actions .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Workshop Detail Modal */
.modal-content.large {
    max-width: 900px;
    width: 95%;
}

.workshop-detail-content {
    display: grid;
    gap: 2rem;
}

.workshop-info-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
}

.workshop-info-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.workshop-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.workshop-info-header .workshop-avatar {
    width: 80px;
    height: 80px;
    margin-right: 1.5rem;
}

.workshop-info-header .workshop-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.workshop-info-header .workshop-info p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

.workshop-balance {
    margin-left: auto;
    text-align: right;
}

.workshop-balance h4 {
    margin: 0 0 0.5rem 0;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
}

.workshop-balance .balance-amount {
    font-size: 2rem;
    font-weight: 700;
}

.workshop-details {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.detail-label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.detail-value {
    color: #6b7280;
    text-align: right;
    flex: 1;
}

/* Workshop Activities Section */
.workshop-activities-section,
.workshop-orders-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.workshop-activities-section .section-header,
.workshop-orders-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.workshop-activities-section .section-header h3,
.workshop-orders-section .section-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f3f4f6;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.order {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
}

.activity-icon.payment {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.activity-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.activity-content p {
    margin: 0 0 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.activity-content small {
    color: #9ca3af;
    font-size: 0.75rem;
}

/* Workshop Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #f3f4f6;
}

.order-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.order-info p {
    margin: 0 0 0.25rem 0;
    color: #6b7280;
    font-size: 0.875rem;
}

.order-info small {
    color: #9ca3af;
    font-size: 0.75rem;
}

.order-status {
    flex-shrink: 0;
}

/* Stats Grid for Workshops */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.workshops {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.stat-icon.orders {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-icon.payments {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Responsive Design for Workshop Management */
@media (max-width: 768px) {
    .workshops-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .workshop-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .workshop-balance {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .workshop-card-actions {
        flex-direction: column;
    }
    
    .workshop-info-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .workshop-info-header .workshop-avatar {
        margin-right: 0;
    }
    
    .workshop-balance {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .detail-label {
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modal-content.large {
        width: 98%;
        margin: 5% auto;
    }
    
    .workshop-activities-section .section-header,
    .workshop-orders-section .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .workshop-card {
        margin: 0 0.5rem;
    }
    
    .workshop-card-header {
        padding: 1rem;
    }
    
    .workshop-card-body {
        padding: 1rem;
    }
    
    .workshop-card-actions {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}