/* Projects Management Styles */

.projects-content {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* NEW Project Badge Styles */
.new-project-badge {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(255, 107, 107, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(255, 107, 107, 0.3);
    }
}

.project-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title-section h2 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 24px;
}

.page-title-section p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.finance-actions {
    display: flex;
    gap: 10px;
    margin-right: 10px;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-toggle .btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    transition: all 0.3s ease;
}

.view-toggle .btn.active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}



.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 24px;
}

.stat-icon.completed {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.stat-icon.ongoing {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.stat-icon.cost {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.stat-icon.with-vat {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.stat-icon.without-vat {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}



.stat-icon.funds {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.stat-icon.balance {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.stat-icon.pending-expense {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.balance-without-vat {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
}

.stat-icon.balance-with-vat {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}



.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Responsive font sizing for large numbers */
.stat-number.large {
    font-size: 24px;
}

.stat-number.xlarge {
    font-size: 20px;
}

.stat-number.xxlarge {
    font-size: 18px;
}

.stat-number.xxxlarge {
    font-size: 16px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Date Filter Section */
.date-filter-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.date-filter-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.date-filter-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.date-filter-controls button:hover {
    background: #f8f9fa;
    border-color: #22c55e;
}

.date-filter-controls button.active {
    background: #22c55e;
    color: white;
    border-color: #22c55e;
}

.custom-date-range {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.date-inputs {
    display: flex;
    gap: 15px;
    align-items: end;
    flex-wrap: wrap;
}

.date-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-input label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.date-input input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

/* Grid View */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.project-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.project-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.project-type.design {
    background: #e3f2fd;
    color: #1976d2;
}

.project-type.supervision {
    background: #f3e5f5;
    color: #7b1fa2;
}

.project-type.study {
    background: #e8f5e8;
    color: #388e3c;
}

.project-info {
    margin-bottom: 15px;
}

.project-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.project-info-item label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
}

.project-info-item span {
    color: #333;
    text-align: right;
    max-width: 200px;
    word-wrap: break-word;
}

/* Project Finance Information */
.project-finance {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.finance-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 5px 0;
}

.finance-info-item:last-child {
    margin-bottom: 0;
}

.finance-info-item label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.finance-info-item label i {
    width: 16px;
    text-align: center;
}

.expense-amount {
    font-weight: 600;
    color: #dc3545;
}

.pending-amount {
    font-weight: 600;
    color: #fd7e14;
}

.balance-amount {
    font-weight: 600;
    color: #28a745;
}

.pause-amount {
    font-weight: 600;
    color: #ffc107;
}

.request-count {
    font-weight: 600;
    color: #17a2b8;
    background: #e3f2fd;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.project-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.ongoing {
    background: #fff3e0;
    color: #f57c00;
}

.status-badge.completed {
    background: #e8f5e8;
    color: #388e3c;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-left: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.3s ease;
}

.project-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.project-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* List View */
.projects-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-container {
    overflow-x: auto;
}

#projectsTable {
    width: 100%;
    border-collapse: collapse;
}

#projectsTable th,
#projectsTable td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#projectsTable th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

#projectsTable td {
    font-size: 14px;
    color: #333;
}

#projectsTable tbody tr:hover {
    background: #f8f9fa;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

/* Project Details Modal */
.project-details {
    max-width: 100%;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    border-bottom: 2px solid #22c55e;
    padding-bottom: 5px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.detail-item span {
    color: #333;
    font-size: 14px;
    word-wrap: break-word;
}

/* Table Container */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
}

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 20px;
}

.dataTables_wrapper .dt-buttons {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-button {
    background: #22c55e !important;
    color: white !important;
    border: 1px solid #22c55e !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(34,197,94,0.2) !important;
}

.dt-button:hover {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(34,197,94,0.3) !important;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    width: 250px;
    transition: border-color 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
}

.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 14px;
    margin: 0 5px;
}

.dataTables_wrapper .dataTables_info {
    font-size: 14px;
    color: #666;
    padding: 15px 0;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid #ddd !important;
    background: white !important;
    color: #22c55e !important;
    border-radius: 6px !important;
    margin: 0 2px !important;
    padding: 8px 12px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
    transform: translateY(-1px) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #22c55e !important;
    color: white !important;
    border-color: #22c55e !important;
    box-shadow: 0 2px 4px rgba(34,197,94,0.2) !important;
}

/* Table Styling */
#projectsTable {
    width: 100% !important;
    border-collapse: collapse;
}

#projectsTable thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
    position: relative;
}

#projectsTable thead th:first-child {
    border-top-left-radius: 8px;
}

#projectsTable thead th:last-child {
    border-top-right-radius: 8px;
}

#projectsTable tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f4;
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

#projectsTable tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

#projectsTable tbody tr:last-child td {
    border-bottom: none;
}

/* Optimized column styling */
#projectsTable td:nth-child(1) { /* ID */
    font-weight: 600;
    color: #666;
}

#projectsTable td:nth-child(2) { /* Project Name */
    font-weight: 500;
    color: #333;
}

#projectsTable td:nth-child(3) { /* Cost */
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
}

#projectsTable td:nth-child(4) { /* Client */
    color: #666;
}

/* Project Type Badges in Table */
#projectsTable .project-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

#projectsTable .project-type.design {
    background: #e3f2fd;
    color: #1976d2;
}

#projectsTable .project-type.supervision {
    background: #f3e5f5;
    color: #7b1fa2;
}

#projectsTable .project-type.study {
    background: #e8f5e8;
    color: #388e3c;
}

/* Status Badges in Table */
#projectsTable .status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

#projectsTable .status-badge.ongoing {
    background: #fff3e0;
    color: #f57c00;
}

#projectsTable .status-badge.completed {
    background: #e8f5e8;
    color: #388e3c;
}

/* Action Buttons in Table */
#projectsTable .action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

#projectsTable .action-buttons .btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#projectsTable .action-buttons .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Currency Formatting */
.currency-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .page-actions {
        justify-content: space-between;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-actions {
        margin-left: 0;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .date-filter-controls {
        flex-direction: column;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    /* Mobile table improvements */
    .dataTables_wrapper {
        padding: 10px;
    }
    
    .dataTables_wrapper .dt-buttons {
        justify-content: center;
    }
    
    .dt-button {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
        max-width: 200px;
    }
    
    #projectsTable thead th,
    #projectsTable tbody td {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Mobile table column adjustments */
    #projectsTable td:nth-child(1) { /* ID */
        font-size: 12px;
    }
    
    #projectsTable td:nth-child(2) { /* Project Name */
        font-size: 13px;
        max-width: 150px;
        word-wrap: break-word;
    }
    
    #projectsTable td:nth-child(3) { /* Cost */
        font-size: 12px;
        max-width: 100px;
        word-wrap: break-word;
    }
    
    #projectsTable td:nth-child(4) { /* Client */
        font-size: 12px;
        max-width: 120px;
        word-wrap: break-word;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 3px;
    }
    
    .action-buttons .btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #22c55e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #333;
}

.notification.info {
    background: #17a2b8;
}

/* File Upload Styles */
.file-upload-container {
    position: relative;
}

.file-upload-container input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-container input[type="file"]:hover {
    border-color: #22c55e;
    background: #f0f9ff;
}

.file-upload-container input[type="file"]:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

.file-upload-info {
    margin-top: 8px;
}

.file-upload-info small {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Attachment Preview Styles */
.attachment-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.attachment-details {
    flex: 1;
}

.attachment-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.attachment-meta {
    font-size: 12px;
    color: #6c757d;
}

.attachment-actions {
    display: flex;
    gap: 5px;
}

.attachment-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.attachment-btn.preview {
    background: #17a2b8;
    color: white;
}

.attachment-btn.preview:hover {
    background: #138496;
}

.attachment-btn.download {
    background: #28a745;
    color: white;
}

.attachment-btn.download:hover {
    background: #218838;
}

.attachment-btn.delete {
    background: #dc3545;
    color: white;
}

.attachment-btn.delete:hover {
    background: #c82333;
}

/* File Upload Progress */
.upload-progress {
    margin-top: 10px;
    display: none;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e 0%, #eab308 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: center;
}

/* Project Expenses Section */
.expense-count-badge {
    background: #22c55e;
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.expenses-container {
    margin-top: 15px;
}

.expenses-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.expenses-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.expense-item {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    transition: all 0.2s;
}

.expense-item:hover {
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34,197,94,0.1);
}

.expense-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.expense-title {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.expense-amount {
    font-weight: 600;
    color: #28a745;
    font-family: 'Courier New', monospace;
}

.expense-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
}

.expense-date {
    color: #666;
}

.files-count {
    color: #22c55e;
    margin-left: 10px;
}

.expense-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.expenses-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid #e3e6f0;
}

.no-expenses, .loading, .error {
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

.error {
    color: #dc3545;
}

.more-expenses {
    text-align: center;
    padding: 10px;
}

.more-expenses .btn-link {
    color: #22c55e;
    text-decoration: none;
    font-size: 14px;
}

.more-expenses .btn-link:hover {
    text-decoration: underline;
}

/* Files Modal in Projects */
#projectExpenseFilesModal .files-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

#projectExpenseFilesModal .file-card {
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: all 0.2s;
}

#projectExpenseFilesModal .file-card:hover {
    border-color: #22c55e;
    box-shadow: 0 2px 8px rgba(34,197,94,0.1);
}

#projectExpenseFilesModal .file-card .file-icon {
    text-align: center;
    margin-bottom: 10px;
}

#projectExpenseFilesModal .file-card .file-icon i {
    font-size: 2rem;
}

#projectExpenseFilesModal .file-info .file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

#projectExpenseFilesModal .file-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

#projectExpenseFilesModal .file-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

#projectExpenseFilesModal .file-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
}
.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--below , .select2-container--bootstrap-5 .select2-dropdown
{
    z-index:99999 !important;
}