body {
    background-color: #f8f9fa;
    background-image: url('img/bg-pattern.jpg');
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

/* Navbar Styles */
.navbar {
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 0;
}

.navbar-brand .logo {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.navbar-nav .nav-link:hover {
    color: #4caf50;
}

.navbar-nav .nav-link i {
    margin-left: 5px;
}

/* User Menu Button */
.user-menu-btn {
    border: 1px solid #4caf50;
    color: #4caf50;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background-color: #4caf50;
    color: white;
    border-color: #4caf50;
}

/* Offcanvas Styles */
.offcanvas {
    width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 1rem 1rem;
}

.offcanvas-title {
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    font-weight: bold;
    color: #333;
}

.offcanvas-body {
    padding: 1rem;
}

.user-profile-section {
    text-align: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
    color: #4caf50;
    text-decoration: none;
}

.user-menu-item i {
    width: 20px;
    text-align: center;
}

.logout-section .user-menu-item:hover {
    background-color: #ffe6e6;
    color: #dc3545;
}

/* Main Navigation Menu */
.main-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 0.25rem;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}

.nav-menu-item:hover {
    background-color: #e8f5e8;
    color: #4caf50;
    text-decoration: none;
}

.nav-menu-item i {
    width: 20px;
    text-align: center;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.header-banner {
    background: linear-gradient(135deg, #4fc3f7 0%, #81c784 100%);
    padding: 20px 0;
    margin-bottom: 20px;
}

.logo {
   
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 auto;
}

.service-grid {
    padding: 0 15px;
}

.service-btn {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 20px 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

.service-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: #333;
}

.service-text {
    font-size: 12px;
    color: #333;
    font-weight: 500;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.digital-signature {
    background: white;
    border-radius: 15px;
    padding: 20px;
    /* margin: 20px 15px; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.digital-signature h5 {
    font-weight: bold;
    margin-bottom: 5px;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.digital-signature p {
    font-size: 12px;
    color: #666;
    margin-bottom: 0;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.digital-icon {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
}
.digital-icon-30 {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
    z-index: 1000;
}

.modal-backdrop {
    z-index: 1900 !important;
}

.modal {
    z-index: 2000 !important;
}

.nav-item {
    text-align: center;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #4caf50;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-item span {
    font-size: 10px;
    display: block;
    font-family: 'Vazir', 'Tahoma', 'Arial', sans-serif;
}

.main-content {
    padding-top: 20px;
    padding-bottom: 80px;
}

.green-outline {
    color: #4caf50 !important;
}

/* Mobile-friendly table action buttons */
.table-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}

.table-action-buttons .btn {
    margin: 0.125rem;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}
.btn-add{
    background-color: #DAA520;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .table-action-buttons {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .table-action-buttons .btn {
        margin: 0.125rem 0;
        width: 100%;
        min-width: auto;
        justify-content: flex-start;
        padding: 0.5rem 0.75rem;
    }
    
    .table-action-buttons .btn i {
        margin-left: 0.5rem;
    }
}

/* Alternative horizontal layout for mobile */
@media (max-width: 576px) {
    .table-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .table-action-buttons .btn {
        flex: 1;
        min-width: 0;
        margin: 0.125rem;
        /* padding: 0.375rem 0.5rem; */
        font-size: 0.75rem;
    }
    
    .table-action-buttons .btn i {
        margin-left: 0.25rem;
    }
}