@font-face {
    font-family: 'vazir';
    src: url('fonts/Vazir-FD-WOL.woff2') format('woff2'),
    url('fonts/Vazir-FD-WOL.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    box-sizing: border-box;
    font-family: 'vazir', sans-serif;
}

/* Login Page Isolated Styles */
.login-page .fade-in {
    animation: loginFadeIn 0.8s ease-in-out;
}

.login-page .slide-up {
    animation: loginSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-page .slide-left {
    animation: loginSlideLeft 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-page .slide-right {
    animation: loginSlideRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-page .bounce-in {
    animation: loginBounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-page .pulse-glow {
    animation: loginPulseGlow 2s infinite;
}

.login-page .shake {
    animation: loginShake 0.5s ease-in-out;
}

@keyframes loginFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes loginSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loginSlideLeft {
    from {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes loginSlideRight {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes loginBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.95) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes loginPulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

@keyframes loginShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.login-page .code-input {
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.login-page .code-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: scale(1.05);
}

.login-page .code-input.filled {
    border-color: #10b981;
    background-color: #f0fdf4;
    transform: scale(1.02);
}

.login-page .code-input:hover {
    border-color: #9ca3af;
    transform: scale(1.02);
}

.login-page .timer-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(#3b82f6 0deg, #e5e7eb 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.login-page .timer-inner {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #3b82f6;
    font-size: 12px;
}

.login-page .form-container {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-page .btn-primary {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.login-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.login-page .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.login-page .input-field {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.login-page .input-field:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

/* Responsive Design for Login Page */
@media (max-width: 640px) {
    .login-page .code-input {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .login-page .timer-circle {
        width: 50px;
        height: 50px;
    }

    .login-page .timer-inner {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .login-page .code-input {
        width: 45px;
        height: 45px;
        font-size: 17px;
    }

    .login-page .timer-circle {
        width: 65px;
        height: 65px;
    }

    .login-page .timer-inner {
        width: 55px;
        height: 55px;
        font-size: 13px;
    }
}

@media (min-width: 1025px) {
    .login-page .code-input {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .login-page .timer-circle {
        width: 70px;
        height: 70px;
    }

    .login-page .timer-inner {
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
}

/* Modern European Dashboard Styles */
.dashboard {
    font-family: 'vazir', sans-serif;
    background: #f8fafc;
    min-height: 100vh;
}

/* Sidebar */
.dashboard .sidebar {
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    border-left: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    width: 250px;
    padding-bottom: 5rem;
}

.dashboard .sidebar.collapsed {
    width: 80px;
}

.dashboard .sidebar-brand {
    padding: 2.5rem 1.5rem;
    /*border-bottom: 1px solid #e2e8f0;*/
    text-align: center;
}

.dashboard .sidebar-brand .logo {
    width: 50px;
    height: 50px;
    background: #08c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.dashboard .sidebar-brand h5 {
    color: #1e293b;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s ease;
}

.dashboard .sidebar.collapsed .sidebar-brand h5 {
    opacity: 0;
    transform: scale(0);
}

.dashboard .nav-section {
    padding: 1rem 0;
}

.dashboard .nav-section-title {
    color: #64748b;
    font-size: 1.0rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.dashboard .sidebar.collapsed .nav-section-title {
    opacity: 0;
    transform: scale(0);
}

.dashboard .nav-link {
    color: #64748b;
    font-size: 1.0rem;
    padding: 0.625rem 0.625rem;
    margin: 0.2rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dashboard .nav-link:hover {
    background: #f1f5f9;
    color: #334155;
    transform: translateX(-3px);
}

.dashboard .nav-link.active {
    background: #08c;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dashboard .nav-link i {
    width: 20px;
    margin-left: 12px;
    font-size: 1.1rem;
}

.dashboard .sidebar.collapsed .nav-link {
    justify-content: center;
    margin: 0.2rem 0.5rem;
}

.dashboard .sidebar.collapsed .nav-link span {
    opacity: 0;
    transform: scale(0);
}

/* Main Content */
.dashboard .main-content {
    margin-right: 250px;
    transition: all 0.3s ease;
    min-height: 100vh;
    position: relative;
    margin-top: 82px;
    /*padding-bottom: 4em;*/
}

.dashboard .main-content.expanded {
    margin-right: 80px;
}

/* Header */
.dashboard .header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999999;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard .toggle-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dashboard .toggle-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.dashboard .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.dashboard .breadcrumb-item {
    color: #64748b;
    font-size: 0.875rem;
}

.dashboard .breadcrumb-item.active {
    color: #1e293b;
    font-weight: 600;
}

/* Stats Cards */
.dashboard .stats-card {
    background: white;
    border-radius: 12px;
    padding: 2.3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard .stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard .stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.dashboard .stats-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard .stats-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.dashboard .stats-info {
    flex: 1;
}

.dashboard .stats-danger {
    flex: 1;
}

.dashboard .stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    direction: ltr;
    text-align: left;
    line-height: 1.2;
}

.dashboard .stats-label {
    color: #64748b;
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.2;
}

.dashboard .stats-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Content Sections */
.dashboard .content-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.dashboard .section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard .section-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

/* Form Styles */
.dashboard .form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard .form-control,
.dashboard .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.675rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.dashboard .form-control:focus,
.dashboard .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dashboard .number-input {
    direction: ltr;
    text-align: left;
}

.dashboard .select2-container .select2-selection--single {
    border-radius: 8px !important;
    padding: 0.675rem !important;
    font-size: 14px;
}

/* Button Styles */
.dashboard .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px !important;
    padding: 0.675rem 1rem !important;
}

.dashboard .btn-primary {
    background: #08c;
    border: 1px solid #08c;
    color: white;
}

.dashboard .btn-primary:hover {
    /*transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);*/
    background: white !important;
    color: #08c;
    border: 1px solid #08c;
}

.dashboard .btn-outline-primary {
    border: 1px solid #08c;
    color: #08c;
    background: transparent;
}

.dashboard .btn-outline-primary:hover {
    background: #08c;
    color: white;
}

.dashboard .btn-success {
    background: #10b981;
    border: none;
}

.dashboard .btn-success:hover {
    background: #059669;
    transform: translateY(-1px);
}

.dashboard .btn-warning {
    background: #f59e0b;
    border: none;
    color: white;
}

.dashboard .btn-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

.dashboard .btn-danger:hover {
    background: #ef4444;
    color: white;
}

.dashboard .btn-outline-danger {
    border: 1px solid #ef4444;
    color: #ef4444;
    background: transparent;
}

.dashboard .btn-outline-danger:hover {
    background: #ef4444;
    color: white;
}

.dashboard .btn-sm {
    padding: 0.25rem 0.5rem !important;
    width: 36px;
    height: 36px;
    align-content: center;
    -webkit-align-content: center;
    -webkit-box-sizing: border-box;
}

.dashboard .btn-sl {
    padding: 0.25rem 1rem !important;
}

/* Table Styles */
.dashboard .table {
    border-collapse: separate;
    border-spacing: 0;
}

.dashboard .table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    border: none;
    padding: 0.75rem;
    font-size: 0.875rem;
}

.dashboard .table tbody td {
    padding: 0.125rem;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    border-top: 1px solid #e5e7eb;
    vertical-align: middle;
}

.dashboard .table tbody tr:hover {
    background: #f9fafb;
}

/* Search Form */
.dashboard .search-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

/* Pagination */
.dashboard .pagination {
    justify-content: center;
    margin-top: 0;
    margin-bottom: 0;
}

.dashboard .page-link {
    border: 1px solid #e5e7eb;
    color: #6b7280;
    /*padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;*/
    border-radius: 8px;
    transition: all 0.3s ease;
}

.dashboard .page-link:hover {
    background: #08c;
    border-color: #08c;
    color: white;
}

.dashboard .page-item.active .page-link {
    background: #08c;
    border-color: #08c;
    color: white;
}

/* Badges */
.dashboard .badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

/* Animations */
.dashboard .fade-in {
    animation: modernDashboardFadeIn 0.6s ease-out;
}

.dashboard .slide-up {
    animation: modernDashboardSlideUp 0.8s ease-out;
}

@keyframes modernDashboardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modernDashboardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard .main-content {
        margin-right: 250px;
    }
}

@media (max-width: 992px) {
    .dashboard .sidebar {
        transform: translateX(100%);
        width: 250px;
    }

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

    .dashboard .main-content {
        margin-right: 0;
    }

    .dashboard .main-content.expanded {
        margin-right: 0;
    }

    .dashboard .stats-number {
        font-size: 1.4rem;
    }

    .dashboard .content-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .dashboard .header {
        padding: 1rem;
    }

    .dashboard .stats-card {
        padding: 1rem;
    }

    .dashboard .stats-content {
        gap: 0.75rem;
    }

    .dashboard .stats-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dashboard .stats-number {
        font-size: 1.25rem;
    }

    .dashboard .stats-label {
        font-size: 0.8rem;
    }

    .dashboard .stats-change {
        font-size: 0.7rem;
    }

    .dashboard .content-section {
        padding: 1rem;
    }

    .dashboard .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .dashboard .stats-card {
        padding: 0.875rem;
    }

    .dashboard .stats-content {
        gap: 0.5rem;
    }

    .dashboard .stats-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .dashboard .stats-number {
        font-size: 1.1rem;
    }

    .dashboard .table-responsive {
        font-size: 0.875rem;
    }

    /*.dashboard .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }*/
}

/* Mobile Overlay */
.dashboard .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dashboard .sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Loading Spinner */
.dashboard .loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: modernDashboardSpin 1s linear infinite;
}

@keyframes modernDashboardSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

footer {
    position: fixed;
    bottom: 0;
    left: 0; /* دقیقاً به اندازه سایدبار */
    /*width: calc(100% - 250px); !* فقط زیر maincontent *!*/
    width: 100%;
    height: 60px;
    text-align: center;
    /*z-index: 10;*/
    z-index: 999999;
}

.text-primary {
    color: #08c !important;
}

.swal2-checkbox {
    justify-content: start !important;
}

.file-input-wrapper {
    animation: slideIn 0.3s ease;
}

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

.file-btn {
    border: 2px dashed #e0e7ff !important;
    background: #f8f9ff !important;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.file-btn:hover {
    border-color: #0088cc !important;
    background: #e6f7ff !important;
}

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

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

.upload-icon {
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.file-btn:hover .upload-icon {
    transform: translateY(-2px) scale(1.05);
}

.file-remove-btn {
    /*background: #fef2f2;*/
    border: none;
    border-radius: 8px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

.file-add-btn {
    /*background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);*/
    /*border: none;*/
    /*color: white;*/
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    /*box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);*/
    transition: all 0.2s ea
}

.rounded {
    border-radius: 16px !important;
}

.container-fluid.p-4 {
    padding-top: 1rem !important;
}

.modal-content {
    border-radius: 16px !important;
    /*width: auto !important;*/
}

.accordion-button {

}

.table th:first-child {
    width: 50px;
}
