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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left h1 {
    color: #4a5568;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.header-left h1 i {
    color: #667eea;
    margin-right: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.user-info i {
    font-size: 1.5rem;
    color: #667eea;
}

.role-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.role-badge.super_admin {
    background: #fef3c7;
    color: #d97706;
}

.role-badge.procurement {
    background: #dbeafe;
    color: #2563eb;
}

.role-badge.user {
    background: #e0e7ff;
    color: #7c3aed;
}

.logout-btn {
    background: #ef4444;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Admin Section */
.admin-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.admin-section h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-section h2 i {
    color: #667eea;
}

.admin-actions {
    margin-bottom: 25px;
}

.btn-add-user {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-add-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Form Section */
.form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.form-section h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h2 i {
    color: #667eea;
}

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

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

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.95rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

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

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Orders Section */
.orders-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.orders-section h2 {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-section h2 i {
    color: #667eea;
}

/* Filters */
.filters {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filters select,
.filters input {
    padding: 10px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    min-width: 200px;
}

.filters input {
    flex: 1;
    min-width: 250px;
}

/* Advanced Filters */
.advanced-filters {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Simple Filter for User Role */
.simple-filter {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.simple-filter .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.simple-filter .filter-group {
    margin: 0;
    min-width: 200px;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-row:last-of-type {
    margin-bottom: 0;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.filter-group input::placeholder {
    color: #9ca3af;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn-clear-filters {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Table */
.orders-table,
.users-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th {
    padding: 18px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}

tbody tr {
    transition: all 0.3s ease;
}

tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

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

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

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

.status-badge.cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

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

.status-badge.delivered {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

/* Status column width */
td[data-col="status"] { min-width: 180px; }

/* Action Buttons */
.btn-edit,
.btn-delete {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

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

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

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

.btn-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 5px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-status i {
    font-size: 0.8rem;
}

/* Row Status */
tr.completed {
    background: #f0fdf4;
}

tr.pending {
    background: #fffbeb;
}

/* Modal */
.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(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #667eea;
}

/* Messages */
.no-orders,
.no-data {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-size: 1.1rem;
}

.error {
    text-align: center;
    padding: 20px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 10px;
    margin: 20px 0;
}

/* Login Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 20px;
}

.login-header h1 {
    color: #4a5568;
    font-size: 2rem;
    margin-bottom: 10px;
}

.login-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.login-form label i {
    color: #667eea;
}

.login-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.demo-accounts {
    margin-top: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.demo-accounts h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.account-item {
    padding: 8px 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Mobile Card Design for Orders */
.mobile-orders {
    display: none;
}

.mobile-order-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.mobile-order-card.pending {
    border-left-color: #fbbf24;
}

.mobile-order-card.searching {
    border-left-color: #3b82f6;
}

.mobile-order-card.price-pending {
    border-left-color: #8b5cf6;
}

.mobile-order-card.cancelled {
    border-left-color: #ef4444;
    opacity: 0.7;
}

.mobile-order-card.ordered {
    border-left-color: #10b981;
}

.mobile-order-card.delivered {
    border-left-color: #06b6d4;
}

.mobile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-order-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.mobile-order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: #fff;
    white-space: nowrap;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.mobile-order-status.pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.mobile-order-status.searching {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.mobile-order-status.price-pending {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.mobile-order-status.cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.mobile-order-status.ordered {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.mobile-order-status.delivered {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.mobile-order-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.mobile-order-detail {
    display: flex;
    flex-direction: column;
}

.mobile-order-detail-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-order-detail-value {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
    word-break: break-word;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.mobile-order-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.mobile-order-actions .btn-edit,
.mobile-order-actions .btn-delete,
.mobile-order-actions .btn-status {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.mobile-order-actions .btn-edit {
    background: #3b82f6;
    color: white;
}

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

.mobile-order-actions .btn-delete {
    background: #ef4444;
    color: white;
}

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

.mobile-order-actions .btn-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.mobile-order-actions .btn-status:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Şəkil əlavə etmə sahəsi */
.image-upload-container {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.image-upload-container:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.image-upload-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #e0f2fe;
    border-radius: 6px;
    color: #0369a1;
    font-size: 0.9rem;
}

.image-upload-info i {
    color: #0284c7;
}

.image-upload-note {
    margin-top: 10px;
    color: #6b7280;
    font-style: italic;
}

.image-upload-note i {
    color: #f59e0b;
    margin-right: 5px;
}

.image-upload-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-image-select,
.btn-image-capture {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-image-select {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-image-capture {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-image-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-image-capture:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.image-preview {
    margin-top: 15px;
    position: relative;
    display: inline-block;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Şəkil modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.image-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .header-left h1 {
        font-size: 1.8rem;
    }
    
    .header-right {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        padding: 8px 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 15px;
        font-size: 16px; /* iOS zoom önlemek için */
        border-radius: 10px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters select,
    .filters input {
        min-width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    
    /* Hide desktop table on mobile */
    .orders-table table,
    .users-table table {
        display: none !important;
    }
    
    /* Show mobile cards */
    .mobile-orders {
        display: block !important;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        padding: 15px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .login-box {
        padding: 20px 15px;
    }
    
    .mobile-order-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .mobile-order-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-order-actions .btn-edit,
    .mobile-order-actions .btn-delete,
    .mobile-order-actions .btn-status {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 12px 16px;
        min-height: 44px; /* Touch target için */
    }
    
    /* Şəkil çəkmə butonları mobil optimizasyonu */
    .image-upload-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-image-select,
    .btn-image-capture {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        min-height: 50px;
        border-radius: 10px;
    }
    
    .image-upload-info {
        flex-direction: column;
        text-align: center;
        padding: 8px;
        font-size: 0.85rem;
    }
    
    .image-upload-note {
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Form butonları mobil optimizasyonu */
    .btn-submit {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        min-height: 50px;
        border-radius: 10px;
    }
    
    /* Filter butonları mobil optimizasyonu */
    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-clear-filters,
    .btn-export {
        width: 100%;
        padding: 15px 20px;
        font-size: 16px;
        min-height: 50px;
        justify-content: center;
    }
}

/* Desktop - hide mobile cards */
@media (min-width: 769px) {
    .mobile-orders {
        display: none !important;
    }
    
    .orders-table table,
    .users-table table {
        display: table !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    .header-left h1 {
        font-size: 1.5rem;
    }
    
    .btn-submit,
    .login-btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;
        font-size: 16px;
    }
    
    .orders-table,
    .users-table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        padding: 5px 10px;
    }
    
    .mobile-order-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .mobile-order-title {
        font-size: 1rem;
    }
    
    .mobile-order-detail-value {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    /* Şəkil butonları çok küçük ekranlarda */
    .btn-image-select,
    .btn-image-capture {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    /* Modal çok küçük ekranlarda */
    .modal-content {
        width: 98%;
        margin: 2% auto;
        padding: 10px;
    }
    
    /* Form elementleri çok küçük ekranlarda */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }
}

/* Row Status Styles */
.orders-table tr.pending {
    border-left: 4px solid #fbbf24;
}

.orders-table tr.searching {
    border-left: 4px solid #3b82f6;
}

.orders-table tr.price-pending {
    border-left: 4px solid #8b5cf6;
}

.orders-table tr.cancelled {
    border-left: 4px solid #ef4444;
    opacity: 0.7;
}

.orders-table tr.ordered {
    border-left: 4px solid #10b981;
}

.orders-table tr.delivered {
    border-left: 4px solid #06b6d4;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-cancel {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

/* Status Change Modal Specific Styles */
#changeStatusModal .modal-content {
    max-width: 500px;
}

#changeStatusModal .form-group {
    margin-bottom: 20px;
}

#changeStatusModal select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

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

#changeStatusModal textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s ease;
}

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

/* Responsive Filter Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-clear-filters,
    .btn-export {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .advanced-filters {
        padding: 20px;
    }
    
    .filter-group input,
    .filter-group select {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Filtered Results Count */
.filtered-results-count {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 10px;
    border: 1px solid #93c5fd;
    text-align: center;
}

.results-info {
    color: #1e40af;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.results-info i {
    font-size: 1.1rem;
}

/* Filter Animation */
.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

/* Filter Hover Effects */
.filter-group input:hover,
.filter-group select:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(147, 197, 253, 0.2);
}

/* Active Filter Styling */
.filter-group input:not(:placeholder-shown),
.filter-group select:not([value=""]) {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
}

/* Filter Loading State */
.filter-group.loading input,
.filter-group.loading select {
    opacity: 0.7;
    pointer-events: none;
}

.filter-group.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notes Button */
.btn-notes {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.btn-notes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.btn-notes i {
    font-size: 0.9rem;
}

/* Actions Button */
.btn-actions {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 3px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.btn-actions:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}

.btn-actions i {
    font-size: 0.9rem;
}

/* Notes Modal Specific Styles */
.notes-modal {
    max-width: 600px;
}

/* Actions Modal Specific Styles */
.actions-modal {
    max-width: 700px;
}

.actions-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.actions-header i {
    font-size: 2rem;
    color: #8b5cf6;
}

.actions-header h2 {
    color: #4a5568;
    margin: 0;
    font-size: 1.5rem;
}

.actions-content {
    margin-bottom: 25px;
}

.actions-timeline {
    position: relative;
    padding-left: 30px;
}

.actions-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.action-item {
    position: relative;
    margin-bottom: 25px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.action-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    border-color: #8b5cf6;
}

.action-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border: 3px solid white;
    box-shadow: 0 0 0 2px #8b5cf6;
}

.action-item:last-child::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 0 2px #10b981;
}

.action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.action-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-status.pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

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

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

.action-status.cancelled {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

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

.action-status.delivered {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.action-date {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.action-description {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 10px;
}

.action-user {
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-user i {
    font-size: 0.8rem;
}

.actions-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-close-actions {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-close-actions:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

.notes-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.notes-header i {
    font-size: 2rem;
    color: #f59e0b;
}

.notes-header h2 {
    color: #4a5568;
    margin: 0;
    font-size: 1.5rem;
}

.notes-content {
    margin-bottom: 25px;
}

.notes-text {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 300px;
    overflow-y: auto;
}

.notes-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-close-notes {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-close-notes:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
}

/* Table Column Adjustments */
.orders-table table th:nth-child(9),
.orders-table table th:nth-child(10),
.orders-table table th:nth-child(11),
.orders-table table th:nth-child(12) {
    min-width: 120px;
}

.orders-table table td:nth-child(9),
.orders-table table td:nth-child(10),
.orders-table table td:nth-child(11),
.orders-table table td:nth-child(12) {
    text-align: center;
    vertical-align: middle;
}

/* Empty Data Styling */
.orders-table table td:nth-child(9):contains('-'),
.orders-table table td:nth-child(10):contains('-'),
.orders-table table td:nth-child(11):contains('-') {
    color: #9ca3af;
    font-style: italic;
}

/* Boş qiymət və məbləğ üçün stil */
.orders-table table td:nth-child(6):contains('-'),
.orders-table table td:nth-child(7):contains('-'),
.orders-table table td:nth-child(8):contains('-') {
    color: #9ca3af;
    font-style: italic;
    text-align: center;
}
