/* تحسينات عامة للموقع - ألوان الأحمر والأسود */

/* تأثيرات الحركة */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* تحسين الأزرار */
.btn {
    border-radius: 25px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

.btn-success {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
}

/* تحسين البطاقات */
.card {
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
}

/* تحسين النماذج */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* تحسين الجداول */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* تحسين التنبيهات */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* تحسين الترقيم */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: #dc3545;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    border-color: #dc3545;
}

/* تحسين الشريط الجانبي */
.sidebar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

/* تحسين الإحصائيات */
.statisticsCard {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.statisticsCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* تحسين الصور */
.img-fluid {
    border-radius: 10px;
}

/* تحسين العناوين */
.title h3 {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* تحسين الروابط */
a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* تحسين الأيقونات */
.fas, .far, .fab {
    transition: all 0.3s ease;
}

/* تحسين التحميل */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسين الشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin-bottom: 20px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* تحسين الطباعة */
@media print {
    .btn, .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* أنماط لوحة التحكم */
.adminPage {
    padding: 20px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.adminBody {
    padding: 20px;
}

/* أنماط النماذج في لوحة التحكم */
.inputBox {
    margin-bottom: 20px;
}

.inputBox label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input {
    position: relative;
    display: flex;
    align-items: center;
}

.input .icon {
    position: absolute;
    right: 15px;
    color: #dc3545;
    z-index: 2;
}

.input input,
.input textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.input input:focus,
.input textarea:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input.area textarea {
    min-height: 100px;
    resize: vertical;
}

/* أنماط رفع الملفات */
.imageUpload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #dc3545;
    border-radius: 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.imageUpload:hover {
    background: #fff5f5;
    border-color: #b52e3d;
}

.imageUpload i {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 15px;
}

.imageUpload span {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.imageUpload p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* أنماط عرض الوسائط */
.mediaView {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.media img,
.media video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* أنماط الأزرار */
.buttons {
    margin-top: 30px;
    text-align: center;
}

.bttn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bttn_primary {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    color: white;
}

.bttn_primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.bttn_border {
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
}

.bttn_border:hover {
    background: #dc3545;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* أنماط رسائل الخطأ */
.text-danger {
    color: #dc3545 !important;
    font-size: 14px;
    margin-top: 5px;
}

/* أنماط البطاقات في لوحة التحكم */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}

/* تحسين الأيقونات */
[data-lucide] {
    width: 20px;
    height: 20px;
}

/* أنماط إضافية للوحة التحكم */
.adminPage .card {
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
    margin-bottom: 20px;
}

.adminPage .card-body {
    padding: 30px;
}

/* تحسين النماذج في لوحة التحكم */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

/* أنماط التحديد */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

/* أنماط Bootstrap المفقودة */
.w-100 {
    width: 100% !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.py-4 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-center {
    justify-content: center !important;
}

.text-center {
    text-align: center !important;
}

.text-muted {
    color: #6c757d !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-info {
    background-color: #dc3545 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.bg-dark {
    background-color: #343a40 !important;
}

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group > .btn:not(:first-child) {
    margin-right: -1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-outline-primary {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-info {
    color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-info:hover {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    max-width: 100%;
    height: auto;
} 

/* توزيع إحصائيات الشيت والإحصائيات المالية بجانب بعضهم */
@media (min-width: 992px) {
    .sheet-stats-row {
        display: flex;
        gap: 24px;
    }
    .sheet-stats-col {
        flex: 1 1 0;
        min-width: 0;
    }
}
@media (max-width: 991.98px) {
    .sheet-stats-row {
        display: block;
    }
    .sheet-stats-col {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* تحسين شكل المنتجات داخل الطلبات */
.order-products, .products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.product-item, .product-detail-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    transition: box-shadow 0.2s;
}
.product-item:hover, .product-detail-item:hover {
    box-shadow: 0 4px 12px rgba(220,53,69,0.10);
}
.product-badge {
    background: linear-gradient(135deg, #dc3545 0%, #b52e3d 100%);
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    margin-right: 4px;
    font-weight: 600;
    margin-left: 4px;
}
.product-item .text-info, .product-detail-item .text-info {
    font-size: 12px;
    margin-top: 2px;
    color: #17a2b8 !important;
    display: block;
}
.products-list {
    flex-direction: column;
    gap: 12px;
}
.product-detail-item {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #eee;
    background: #fff;
    margin-bottom: 8px;
}
.product-detail-item .badge {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 16px;
} 