/* IranSans Font */
@font-face {
    font-family: 'IranSans-Light';
    src: url('../font/woff2/IRANSansWeb_Light.woff2') format('woff2'),
         url('../font/woff/IRANSansWeb_Light.woff') format('woff'),
         url('../font/ttf/IRANSansWeb_Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'IranSans-Medium';
    src: url('../font/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
         url('../font/woff/IRANSansWeb_Medium.woff') format('woff'),
         url('../font/ttf/IRANSansWeb_Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Base styles */
body {
    font-family: 'IranSans-Light', 'Tahoma', 'Arial', sans-serif;
    color: #1e3b01;
}

/* Offcanvas RTL Support */
.offcanvas-end {
    right: 0;
    left: auto;
}

.offcanvas-header {
    background: linear-gradient(135deg, #3dcd58, #2db84a);
    color: white;
}

.offcanvas-title {
    font-weight: bold;
}

.btn-close {
    filter: invert(1);
}

/* Enhanced Search Styles */
.search-container {
    position: relative;
}

.search-input {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.search-input:focus {
    border-color: #3dcd58;
    box-shadow: 0 0 0 0.2rem rgba(61, 205, 88, 0.25);
}

.search-btn {
    background: linear-gradient(135deg, #3dcd58, #2db84a);
    border: 2px solid #3dcd58;
    color: white;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2db84a, #259c3e);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(61, 205, 88, 0.3);
}

.search-suggestions {
    border-top: none;
    border-color: #3dcd58;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-suggestion-item:hover,
.search-suggestion-item.active {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    color: #6c757d;
    width: 16px;
}

.suggestion-text {
    flex: 1;
}

.suggestion-category {
    font-size: 0.8em;
    color: #6c757d;
}

.search-loading {
    padding: 16px;
    text-align: center;
    color: #6c757d;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Mobile Header Styles */
.mobile-menu-btn,
.mobile-search-btn {
    border: none;
    background: none;
    padding: 8px;
}

.mobile-actions-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-top-row,
.mobile-bottom-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.mobile-top-row {
    justify-content: flex-end;
}

.mobile-bottom-row {
    justify-content: flex-end;
}

.mobile-search-row {
    animation: slideDown 0.3s ease;
}

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

/* Mobile Menu Styles */
.mobile-nav-links {
    padding: 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    color: #1e3b01;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: #f8f9fa;
    color: #3dcd58;
    padding-right: 32px;
}

.mobile-nav-link i {
    width: 24px;
    margin-left: 16px;
    color: #3dcd58;
}

.mobile-categories {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-category-link {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #1e3b01;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.mobile-category-link:hover {
    background: #3dcd58;
    color: white;
    transform: translateX(-4px);
}

/* Logo responsive */
.logo-img {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .logo-img {
        height: 45px;
    }
    
    .user-action {
        padding: 8px;
    }
    
    .user-action i {
        font-size: 1.2rem;
    }
}