body {
    overflow: auto;
    background-color: rgba(248, 247, 247, 1);
}

/* Sidebar */
.sidebar {
    width: 300px;
    background-color: #fff;
    box-shadow: 0px 14px 10px rgba(8, 15, 52, 0.06);
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.sidebar .logo img {
    max-width: 152px;
    height: auto;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 0.8rem;
}

.sidebar ul li a {
    color: rgba(39, 58, 65, 1);
    text-decoration: none;
    font-size: 16px;
    padding: .7rem;
}

.sidebar ul li.active a {
    color: #b7924f !important;
    font-weight: bold;
}

.sidebar ul li a:hover {
    color: #b7924f;
}

.sidebar .nav-link.active {
    color: #b7924f;
}

.sidebar .icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease-in-out;
}

.sidebar ul li.active .icon,
.sidebar ul li:hover .icon {
    filter: brightness(0) saturate(100%) invert(64%) sepia(29%) saturate(343%) hue-rotate(8deg) brightness(95%) contrast(90%);
    transform: scale(1.05);
}

.sidebar .nav-item:hover {
    background-color: rgba(249, 248, 244, 1);
    border-radius: 8px;
}

.sidebar .nav-item.active {
    background-color: rgba(249, 248, 244, 1);
    border-radius: 8px;
}

/* Close Button */
.sidebar-close {
    display: none;
    position: absolute;
    top: 2%;
    left: 0;
    font-size: 2rem;
    color: black;
}

/* custom container */

.custom-container {
    padding: 0 20rem 0 0;
}

/* navbar */
.search-bar {
    padding-right: 1rem;
    width: 100%;
}

.search-bar input {
    background-color: rgba(39, 58, 65, 0.05);
    border: none;
    padding: .7rem;
}

.search-bar input::placeholder {
    color: rgba(156, 156, 156, 1);
    font-size: 14px;
    padding: .5rem;
}

.search-bar input {
    background-color: #f7f7f7;
    border: none;
    padding-right: 2.5rem;
}

.search-bar input:focus {
    box-shadow: none;
    background-color: #f7f7f7;
}

.search-bar i {
    color: rgba(158, 158, 158, 1);
    font-size: 16px;
}

/* Content */
.content {
    margin-right: 270px;
    padding: 1rem 3rem;
    transition: margin-left 0.3s ease-in-out;
}



/* Responsive Sidebar */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.show {
        transform: translateX(0%);
    }

    .sidebar-close {
        display: block;
    }

    .content {
        margin-right: 0 !important;
        padding: .5rem;
    }

    .custom-container {
        padding: 0;
    }

    .search-bar {
        width: 100%;
    }
}

/* content */

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.profile-sidebar {
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    font-size: 18px;
    text-align: end;
}


.nav-link.active {
    font-weight: bold;
    color: #a27c2a;
}


form input::placeholder {
    color: rgba(123, 123, 123, 0.5);
    font-size: 16px;
    font-weight: 400;
    text-align: right;
}

form input[type="text"],
form select {
    padding: 1rem;
    border-radius: 10px;
}

form label {
    margin-bottom: 1rem;
}

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

.container button:hover img {
    filter: brightness(0) invert(1);
}

.btn-custom {
    background-color: rgba(211, 171, 85, 1);
    color: rgba(248, 247, 247, 1);
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    width: 30%;
}

.btn-custom:hover {
    background-color: rgb(211, 160, 51);
    color: rgba(248, 247, 247, 1);
}

.profile-sidebar .nav-link {
    padding: 1rem;
    max-width: 100%;
}

.custom-select {
    padding-right: 2.5rem;
    background-position: left 0.75rem center;
    background-size: 16px 16px;
}

[dir="rtl"] .custom-select {
    background-position: left 1rem center;
    padding-right: 2.5rem;
}

.profile-sidebar .nav-link.active {
    color: rgba(211, 171, 85, 1) !important;
    font-weight: bold;
}

/* Complaint Tabs Styling */
#complaintTabs .nav-link {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

#complaintTabs .nav-link:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#complaintTabs .nav-link.active {
    background: linear-gradient(135deg, rgba(211, 171, 85, 1) 0%, rgba(211, 160, 51, 1) 100%);
    color: white;
    border-color: rgba(211, 171, 85, 1);
    box-shadow: 0 4px 15px rgba(211, 171, 85, 0.3);
}

/* Complaint Cards Styles */
.complaint-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.complaint-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.complaint-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.complaint-status {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 0.3rem;
}

.status-pending {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-replied {
    background: rgba(0, 123, 255, 0.15);
    color: #004085;
    border: 1px solid rgba(0, 123, 255, 0.3);
}

.status-resolved {
    background: rgba(40, 167, 69, 0.15);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.complaint-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.complaint-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-right: 4px solid #dee2e6;
}

.complaint-description {
    color: #495057;
    line-height: 1.6;
    margin: 0;
}

.admin-reply {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-right: 4px solid #28a745;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* أنيميشن مبسطة */

.reply-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #28a745;
    font-size: 0.9rem;
}

.reply-header i {
    margin-left: 0.5rem;
}

.reply-content {
    background: white;
    padding: 0.8rem;
    border-radius: 6px;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
}

.reply-date {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: left;
}

/* أزرار مبسطة */
.btn-simple {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-simple:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.btn-simple i {
    margin-left: 0.3rem;
}

.reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: #1976d2;
    font-weight: 600;
}

.reply-content {
    color: #424242;
    line-height: 1.6;
    margin: 0;
}

.reply-date {
    font-size: 0.8rem;
    color: #757575;
    margin-top: 0.5rem;
    text-align: left;
}

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

.action-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-view-details {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-view-details:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.btn-mark-resolved {
    background: #e8f5e8;
    color: #2e7d32;
}

.btn-mark-resolved:hover {
    background: #c8e6c9;
    color: #1b5e20;
}

/* Priority Indicators */
.priority-high {
    border-right: 4px solid #dc3545;
}

.priority-medium {
    border-right: 4px solid #ffc107;
}

.priority-low {
    border-right: 4px solid #28a745;
}

/* Filter dropdown styling */
#statusFilter {
    min-width: 150px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

#statusFilter:focus {
    border-color: rgba(211, 171, 85, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(211, 171, 85, 0.25);
}

/* Animation for new replies */
@keyframes newReply {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.new-reply {
    animation: newReply 0.5s ease-out;
}

/* Empty State Styling - رسالة عدم وجود شكاوى */
#emptyState {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

#emptyState .bi-emoji-smile {
    color: #28a745;
    animation: happyBounce 2s ease-in-out infinite;
}

@keyframes happyBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#emptyState .alert-success {
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    }
}

#emptyState .card {
    transition: all 0.3s ease;
}

#emptyState .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

#emptyState .btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#emptyState .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;
}

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

#emptyState .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#emptyState .btn-primary:hover {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
}

#emptyState .btn-outline-success:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

/* أيقونات النصائح مع تأثيرات */
#emptyState .bi-chat-dots-fill,
#emptyState .bi-headset,
#emptyState .bi-shield-check,
#emptyState .bi-star-fill {
    transition: all 0.3s ease;
}

#emptyState .d-flex:hover .bi-chat-dots-fill {
    color: #17a2b8 !important;
    transform: scale(1.2);
}

#emptyState .d-flex:hover .bi-headset {
    color: #ffc107 !important;
    transform: scale(1.2);
}

#emptyState .d-flex:hover .bi-shield-check {
    color: #28a745 !important;
    transform: scale(1.2);
}

#emptyState .d-flex:hover .bi-star-fill {
    color: #ffc107 !important;
    transform: scale(1.2);
}

/* تأثير التدرج للخلفية */
#emptyState::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-radius: 25px;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 768px) {
    #complaintTabs .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem;
    }
    
    .complaint-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .complaint-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .complaint-actions {
        justify-content: center;
    }
    
    .admin-reply::before {
        right: 50%;
        transform: translateX(50%);
    }

    /* تحسينات للأجهزة المحمولة - رسالة عدم وجود شكاوى */
    #emptyState {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }

    #emptyState .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    #emptyState .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
}