﻿.card {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}


[data-bs-theme=dark] .card-header {
    background-color: #141824 !important;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.table th {
    font-size: .8rem !important;
    border: 1px solid rgb(255 0 0 / 30%);
    text-align: center;
}

.table td {
    vertical-align: middle;
    text-align: center;
    font-size: .9rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

    .table tbody tr:hover {
        background-color: rgba(13, 110, 253, 0.05);
    }

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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



/* Global Dropdown Icon Hiding - Hide icons when dropdown has selected value */
.form-floating select:not([value=""]) + label i,
.form-floating select:not([value="0"]) + label i,
.form-floating select:not([value="null"]) + label i {
    display: none !important;
}

/* For Select2 dropdowns */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0.75rem;
}

/* Hide icons when Select2 has selected value */
.form-floating .select2-container + label i {
    transition: opacity 0.3s ease;
}

.form-floating .select2-container .select2-selection--single .select2-selection__rendered:not([title*="اختر"]):not([title*="Select"]):not([title*="- Select"]) + label i,
.form-floating .select2-container .select2-selection--single .select2-selection__rendered:not([title=""]) + label i {
    opacity: 0;
}

/* Pagination Styling */
.pagination-wrapper .pagination {
    margin: 0;
    gap: 5px;
}

    .pagination-wrapper .pagination .page-item {
        margin: 0 2px;
    }

    .pagination-wrapper .pagination .page-link {
        border: none;
        border-radius: 8px;
        padding: 10px 15px;
        color: #6c757d;
        background-color: #f8f9fa;
        transition: all 0.3s ease;
        font-weight: 500;
        min-width: 45px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

        .pagination-wrapper .pagination .page-link:hover {
            background-color: #e9ecef;
            color: #495057;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }

    .pagination-wrapper .pagination .page-item.active .page-link {
        background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
        color: white;
        border: none;
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    }

    .pagination-wrapper .pagination .page-item.disabled .page-link {
        background-color: #f8f9fa;
        color: #adb5bd;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .pagination-wrapper .pagination .page-item:first-child .page-link,
    .pagination-wrapper .pagination .page-item:last-child .page-link {
        background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
        color: white;
        font-weight: 500;
    }

        .pagination-wrapper .pagination .page-item:first-child .page-link:hover,
        .pagination-wrapper .pagination .page-item:last-child .page-link:hover {
            background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .pagination-wrapper .pagination .page-item:first-child .page-link:before {
            content: "«";
            font-weight: bold;
        }

        .pagination-wrapper .pagination .page-item:last-child .page-link:before {
            content: "»";
            font-weight: bold;
        }

/* Enhanced Pagination Styling for PagedListPager */
.pagination-wrapper .pagination,
.pagination-wrapper ul,
.pagination-wrapper .pagedList {
    margin: 0;
    gap: 5px;
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
}

    .pagination-wrapper .pagination .page-item,
    .pagination-wrapper li,
    .pagination-wrapper .pagedList li {
        margin: 0 2px;
        list-style: none;
    }

        .pagination-wrapper .pagination .page-link,
        .pagination-wrapper a,
        .pagination-wrapper .pagedList a,
        .pagination-wrapper li a {
            border: none;
            border-radius: 8px;
            padding: 10px 15px;
            color: #4a5568;
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            transition: all 0.3s ease;
            font-weight: 500;
            min-width: 45px;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            text-decoration: none;
            display: inline-block;
        }

            .pagination-wrapper .pagination .page-link:hover,
            .pagination-wrapper a:hover,
            .pagination-wrapper .pagedList a:hover,
            .pagination-wrapper li a:hover {
                background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
                color: #2d3748;
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(0,0,0,0.15);
                text-decoration: none;
            }

        .pagination-wrapper .pagination .page-item.active .page-link,
        .pagination-wrapper li.active a,
        .pagination-wrapper .pagedList li.active a {
            background: linear-gradient(135deg, #41b071 0%, #0097eb 100%);
            color: white;
            border: none;
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .pagination-wrapper .pagination .page-item.disabled .page-link,
        .pagination-wrapper li.disabled a,
        .pagination-wrapper .pagedList li.disabled a {
            background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
            color: #a0aec0;
            cursor: not-allowed;
            opacity: 0.7;
        }

        .pagination-wrapper .pagination .page-item:first-child .page-link,
        .pagination-wrapper li:first-child a,
        .pagination-wrapper .pagedList li:first-child a {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
            font-weight: 500;
        }

        .pagination-wrapper .pagination .page-item:last-child .page-link,
        .pagination-wrapper li:last-child a,
        .pagination-wrapper .pagedList li:last-child a {
            background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
            color: white;
            font-weight: 500;
        }

            .pagination-wrapper .pagination .page-item:first-child .page-link:hover,
            .pagination-wrapper li:first-child a:hover,
            .pagination-wrapper .pagedList li:first-child a:hover,
            .pagination-wrapper .pagination .page-item:last-child .page-link:hover,
            .pagination-wrapper li:last-child a:hover,
            .pagination-wrapper .pagedList li:last-child a:hover {
                background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
                transform: translateY(-2px);
                box-shadow: 0 6px 20px rgba(72, 187, 120, 0.4);
            }

        .pagination-wrapper .pagination .page-item:first-child .page-link:before,
        .pagination-wrapper li:first-child a:before,
        .pagination-wrapper .pagedList li:first-child a:before {
            content: "«";
            font-weight: bold;
        }

        .pagination-wrapper .pagination .page-item:last-child .page-link:before,
        .pagination-wrapper li:last-child a:before,
        .pagination-wrapper .pagedList li:last-child a:before {
            content: "»";
            font-weight: bold;
        }

/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination-wrapper .pagination .page-link,
    .pagination-wrapper a,
    .pagination-wrapper .pagedList a,
    .pagination-wrapper li a {
        padding: 8px 12px;
        min-width: 40px;
        font-size: 0.9rem;
    }

    .pagination-wrapper .pagination,
    .pagination-wrapper ul,
    .pagination-wrapper .pagedList {
        gap: 3px;
    }

        .pagination-wrapper .pagination .page-item,
        .pagination-wrapper li,
        .pagination-wrapper .pagedList li {
            margin: 0 1px;
        }
}

@media (max-width: 576px) {
    .pagination-wrapper .pagination .page-link,
    .pagination-wrapper a,
    .pagination-wrapper .pagedList a,
    .pagination-wrapper li a {
        padding: 6px 10px;
        min-width: 35px;
        font-size: 0.8rem;
    }

    .pagination-wrapper .pagination .page-item:not(:first-child):not(:last-child) .page-link,
    .pagination-wrapper li:not(:first-child):not(:last-child) a,
    .pagination-wrapper .pagedList li:not(:first-child):not(:last-child) a {
        display: none;
    }

    .pagination-wrapper .pagination .page-item:not(:first-child):not(:last-child):nth-child(2) .page-link,
    .pagination-wrapper li:not(:first-child):not(:last-child):nth-child(2) a,
    .pagination-wrapper .pagedList li:not(:first-child):not(:last-child):nth-child(2) a,
    .pagination-wrapper .pagination .page-item:not(:first-child):not(:last-child):nth-last-child(2) .page-link,
    .pagination-wrapper li:not(:first-child):not(:last-child):nth-last-child(2) a,
    .pagination-wrapper .pagedList li:not(:first-child):not(:last-child):nth-last-child(2) a {
        display: block;
    }
}

/* File Upload Area Styling */
.file-upload-wrapper {
    position: relative;
}

.file-upload-area {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .file-upload-area:hover {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
        border-color: #0d6efd !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15);
    }

    .file-upload-area .input-files {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

.file-info {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    margin-top: 16px;
}

.file-upload-area.dragover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-color: #0d6efd !important;
    transform: scale(1.02);
}

/* Enhanced Button Styling */
.btn {
    position: relative;
    overflow: hidden;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn:hover::before {
        left: 100%;
    }

/* Form Styling */
.form-floating {
    position: relative;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }


/* Icon Styling */
.fas, .fa {
    transition: all 0.3s ease;
}

.text-primary .fas:hover,
.text-primary .fa:hover {
    transform: scale(1.1);
}

/* File Type Icons Enhancement */
.fa-2x {
    transition: all 0.3s ease;
}

    .fa-2x:hover {
        transform: scale(1.2);
        filter: brightness(1.2);
    }

/* File Type Specific Colors */
.text-info.fa-2x:hover {
    color: #0dcaf0 !important;
}

.text-danger.fa-2x:hover {
    color: #dc3545 !important;
}

.text-primary.fa-2x:hover {
    color: #0d6efd !important;
}

.text-success.fa-2x:hover {
    color: #198754 !important;
}

.text-warning.fa-2x:hover {
    color: #ffc107 !important;
}

.text-secondary.fa-2x:hover {
    color: #6c757d !important;
}

.text-muted.fa-2x:hover {
    color: #6c757d !important;
}

/* File Preview Enhancement */
.file-preview-container {
    position: relative;
    display: inline-block;
}

    .file-preview-container:hover {
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }

/* Badge Enhancement */
.badge {
    transition: all 0.3s ease;
}

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

/* Table Row Enhancement */
.table tbody tr:hover .fa-2x {
    transform: scale(1.1);
}

/* File Extension Badge */
.badge.bg-light.text-dark {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6;
    font-weight: 500;
}

    .badge.bg-light.text-dark:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
        transform: translateY(-1px);
    }

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.star-input {
    display: none;
}

.star-label {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .star-label:hover,
    .star-label:hover ~ .star-label {
        color: #ffc107;
    }

.star-input:checked ~ .star-label {
    color: #ffc107;
}

    .star-input:checked ~ .star-label,
    .star-input:checked ~ .star-label ~ .star-label {
        color: #ffc107;
    }

.map {
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 450px;
    z-index: auto
}
