/* Modal styling for Carbon Updates Dashboard */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Increased opacity for background */
    animation: fadeIn 0.3s;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 2% auto; /* Adjusted margin to cover more space */
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%; /* Increased width */
    max-width: 1200px; /* Increased max-width */
    max-height: 95vh; /* Increased max-height */
    overflow: hidden;
    animation: slideIn 0.3s;
}

.modal-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    color: white;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

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

.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(95vh - 200px); /* Reduced to leave space for footer */
}

/* Project Details Specific Styling */
.project-details-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Project Details Image Container */
.project-details-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-details-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 400px;
}

.project-details-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.project-details-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.details-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.details-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.details-value {
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.details-table th, 
.details-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.details-table th {
    background-color: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.details-table tr:last-child td {
    border-bottom: none;
}

.details-table tr:hover td {
    background-color: #f1f3f5;
}

.emission-chart-container {
    height: 300px;
    margin-top: 10px;
}

.benefits-list {
    margin: 0;
    padding-left: 20px;
}

.benefits-list li {
    margin-bottom: 8px;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.loading-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .emission-chart-container {
        height: 250px;
    }
}



/* Enhanced App Info Modal Styles */
#appInfoModal .modal-body {
    padding-top: 10px; /* Add some space below the title */
}

#appInfoModal .feature-list {
    list-style: none;
    padding-left: 0;
    margin-top: 15px;
    margin-bottom: 15px;
}

#appInfoModal .feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95em;
}

#appInfoModal .feature-list i {
    font-size: 1.2em;
    margin-right: 12px;
    color: var(--primary-color); /* Use theme color */
    width: 20px; /* Ensure icons align */
    text-align: center;
}

#appInfoModal .modal-tip {
    font-size: 0.9em;
    color: #666;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}



/* Country Selection Modal Specific Styles */
#countrySelectionModal .modal-content {
    width: 95%;
    max-width: 1200px; /* Adjusted max-width */
    padding: 40px;
    text-align: center;
    min-height: 80vh;
}

#countrySelectionModal .modal-header {
    border-bottom: none;
    padding-bottom: 15px;
    justify-content: center;
}

#countrySelectionModal .modal-title {
    font-size: 1.8em;
    color: #333;
}

.country-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
    max-height: 60vh; /* Increased max-height for country list */
    overflow-y: auto;
    padding-right: 10px; /* For scrollbar */
}

.country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
}

.country-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.country-item.selected {
    border-color: #28a745;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
    background-color: #e6ffe6;
}

.country-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; /* Prevents clicking */
}

.country-item img {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border: 1px solid #eee;
    margin-bottom: 8px;
    border-radius: 3px;
}

.country-item span {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    font-weight: 500;
}

.error-message {
    color: #dc3545;
    margin-top: 15px;
    font-size: 0.9em;
}



.modal-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.ok-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ok-button:hover {
    background-color: #218838;
}

.ok-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}




.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
    z-index: 999; /* Below the modal, above everything else */
    display: none; /* Hidden by default */
}




/* Layers Selection Modal Specific Styles */
#layersSelectionModal .modal-content {
    width: 95%;
    max-width: 800px !important; /* Increased from 700px for more content space */
    padding: 0;
    max-height: 90vh; /* Increased for more vertical space */
    min-height: 500px !important; /* Increased for better proportions */
    display: flex;
    flex-direction: column;
    border-radius: 12px !important; /* More rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

#layersSelectionModal .modal-header {
    padding: 25px 30px !important; /* Increased padding */
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important; /* More vibrant gradient */
    color: white;
    border-bottom: none !important; /* Removed border */
    text-align: center;
    justify-content: center;
    position: relative;
    border-top-left-radius: 12px !important; /* Match modal-content border-radius */
    border-top-right-radius: 12px !important; /* Match modal-content border-radius */
}

#layersSelectionModal .modal-title {
    font-size: 1.8em !important; /* Larger title */
    font-weight: 700 !important; /* Bolder title */
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1) !important; /* Subtle text shadow */
}

#layersSelectionModal .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2em !important; /* Larger close button */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    position: absolute;
    right: 25px; /* Adjusted for new padding */
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out !important; /* Smooth transition */
}

#layersSelectionModal .modal-close:hover {
    color: #f1f1f1;
    transform: translateY(-50%) scale(1.1) !important; /* Slight scale on hover */
}

#layersSelectionModal .modal-body {
    padding: 30px !important; /* Increased padding for breathing room */
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa !important; /* Light background for body */
}

.layers-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important; /* Flexible columns, min 180px */
    gap: 30px !important; /* Increased gap for more spacing */
    margin-top: 15px !important; /* Increased margin */
    margin-bottom: 20px !important; /* Increased margin */
}

.layer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 25px 20px !important; /* Increased padding for more breathing room */
    border: 1px solid #e0e0e0 !important; /* Lighter border */
    border-radius: 18px !important; /* More rounded corners */
    cursor: pointer;
    transition: all 0.3s ease !important; /* Smooth transition for all properties */
    background-color: #ffffff !important; /* White background */
    min-height: 160px !important; /* Increased for better proportions */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important; /* More pronounced shadow */
    position: relative; /* For potential future badges/indicators */
}

.layer-item:hover {
    border-color: #007bff !important; /* Blue border on hover */
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.25) !important; /* Enhanced hover shadow */
    transform: translateY(-5px) !important; /* More pronounced lift */
}

.layer-item.selected {
    border-color: #28a745 !important; /* Green border when selected */
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important; /* Enhanced selected shadow */
    background-color: #e6ffe6 !important; /* Lighter green background */
    transform: translateY(-2px) !important; /* Slight lift when selected */
}

.layer-item.disabled {
    opacity: 0.6 !important; /* Slightly more visible when disabled */
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(50%) !important; /* Subtle grayscale for disabled items */
}

.layer-icon {
    font-size: 2.5em !important; /* Larger icons */
    margin-bottom: 15px !important; /* Increased margin */
    transition: color 0.3s ease, transform 0.3s ease !important; /* Smooth transition */
}

/* Colorful icons for each layer */
.layer-item[data-layer-value="google"] .layer-icon {
    color: #4285f4; /* Google blue */
}

.layer-item[data-layer-value="bipad"] .layer-icon {
    color: #ff6b35; /* Orange for disaster management */
}

.layer-item[data-layer-value="enroads"] .layer-icon {
    color: #2e8b57; /* Sea green for climate */
}

.layer-item[data-layer-value="economic"] .layer-icon {
    color: #9c27b0; /* Purple for economic data */
}

.layer-item[data-layer-value="ipcc"] .layer-icon {
    color: #e91e63; /* Pink for IPCC database */
}

.layer-item[data-layer-value="weather"] .layer-icon {
    color: #ffc107; /* Amber for weather prediction */
}

.layer-item[data-layer-value="carbonpricing"] .layer-icon {
    color: #00bcd4; /* Cyan for carbon pricing */
}

.layer-item[data-layer-value="inventorycomparison"] .layer-icon {
    color: #795548; /* Brown for inventory comparison */
}

.layer-item[data-layer-value="custom"] .layer-icon {
    color: #ff5722; /* Deep orange for 3D visualization */
}

.layer-item.selected .layer-icon {
    color: #28a745 !important; /* Ensure selected icon color is green */
    transform: scale(1.1); /* Slightly larger icon when selected */
}

.layer-info {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Increased gap */
    align-items: center;
    flex-grow: 1;
}

.layer-name {
    font-size: 1.1em; /* Increased font size */
    font-weight: 700; /* Bolder font weight */
    color: #333; /* Darker text for better readability */
    line-height: 1.4; /* Improved line height */
    margin-bottom: 8px; /* Increased margin */
}

.layer-description {
    font-size: 0.85em; /* Slightly increased from 0.8em */
    color: #666; /* Slightly darker text */
    line-height: 1.5; /* Improved line height */
    text-align: center;
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    line-clamp: 3; /* Standard property for compatibility */
    -webkit-box-orient: vertical;
}

#layersSelectionModal .modal-footer {
    margin-top: 20px; /* Increased margin */
    padding-top: 20px; /* Increased padding */
    padding-bottom: 25px; /* Increased padding */
    border-top: 1px solid #eee; /* Light border */
    text-align: center;
    flex-shrink: 0;
    background-color: #f8f9fa; /* Match body background */
    border-bottom-left-radius: 12px; /* Match modal-content border-radius */
    border-bottom-right-radius: 12px; /* Match modal-content border-radius */
}

/* Responsive adjustments for layers modal */
@media (max-width: 768px) {
    #layersSelectionModal .modal-content {
        width: 95%;
        max-width: 95vw; /* Better mobile width */
        margin: 5% auto;
        min-height: 400px; /* Adjusted for mobile */
    }
    
    #layersSelectionModal .modal-header {
        padding: 20px 25px; /* Adjusted mobile padding */
    }
    
    #layersSelectionModal .modal-title {
        font-size: 1.5em; /* Adjusted for mobile */
    }
    
    #layersSelectionModal .modal-close {
        font-size: 1.8em; /* Adjusted for mobile */
        right: 20px;
    }
    
    #layersSelectionModal .modal-body {
        padding: 25px 25px 15px 25px; /* Adjusted mobile padding */
    }
    
    .layers-list {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 25px; /* Slightly reduced gap for mobile */
    }
    
    .layer-item {
        padding: 20px 15px 18px 15px; /* Adjusted mobile padding */
        min-height: 140px; /* Adjusted for mobile */
    }
    
    .layer-icon {
        font-size: 2.2em; /* Slightly smaller on mobile */
        margin-bottom: 12px;
    }
    
    .layer-name {
        font-size: 1em; /* Slightly smaller on mobile */
    }
    
    .layer-description {
        font-size: 0.8em; /* Adjusted for mobile readability */
        -webkit-line-clamp: 2; /* Limit to 2 lines on mobile */
        line-clamp: 2; /* Standard property for compatibility */
    }
    
    #layersSelectionModal .modal-footer {
        padding-top: 15px;
        padding-bottom: 20px;
    }
}



/* Role-specific Modal Styles */
.role-modal .modal-content {
    max-width: 800px;
    width: 90%;
}

/* Ensure role-modal body has proper height to show footer */
.role-modal .modal-body {
    max-height: calc(95vh - 200px); /* Leave space for header and footer */
    overflow-y: auto;
}

.role-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.role-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #4caf50;
}

.role-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-section h4 i {
    color: #4caf50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Modal Footer Styles */
.role-modal .modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.role-modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.role-modal-btn.btn-primary {
    background-color: #4caf50;
    color: white;
}

.role-modal-btn.btn-primary:hover {
    background-color: #45a049;
}

.role-modal-btn.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.role-modal-btn.btn-secondary:hover {
    background-color: #5a6268;
}

.role-modal-btn.btn-cancel {
    background-color: #dc3545;
    color: white;
}

.role-modal-btn.btn-cancel:hover {
    background-color: #c82333;
}

/* Portfolio and Market specific styles */
.portfolio-summary,
.market-stats,
.compliance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.portfolio-item,
.market-item,
.compliance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.portfolio-label,
.market-label,
.compliance-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.portfolio-value,
.market-value,
.compliance-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.portfolio-value.positive,
.market-value.positive {
    color: #28a745;
}

.compliance-value.compliant {
    color: #28a745;
}

.compliance-value.non-compliant {
    color: #dc3545;
}

.investment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.investment-item {
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.investment-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 8px;
}

.investment-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.investment-details .positive {
    color: #28a745;
    font-weight: 500;
}

/* Responsive adjustments for role modals */
@media (max-width: 768px) {
    .role-modal .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .role-section {
        padding: 15px;
    }
    
    .portfolio-summary,
    .market-stats,
    .compliance-overview {
        grid-template-columns: 1fr;
    }
    
    .role-modal .modal-footer {
        flex-direction: column;
    }
    
    .role-modal-btn {
        width: 100%;
    }
}


/* Project Tracker Styles */
.project-tracker {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tracker-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.tracker-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #4caf50;
}

.tracker-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
}

.tracker-value {
    font-weight: 500;
    color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Stage-specific colors */
.tracker-value.stage-initiation {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tracker-value.stage-planning {
    background-color: #fff3e0;
    color: #f57c00;
}

.tracker-value.stage-verification {
    background-color: #fce4ec;
    color: #c2185b;
}

.tracker-value.stage-implementation {
    background-color: #e8f5e8;
    color: #388e3c;
}

.tracker-value.stage-completed {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

/* Status-specific colors */
.tracker-value.status-active {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.tracker-value.status-pending {
    background-color: #fff8e1;
    color: #f57f17;
}

.tracker-value.status-inactive {
    background-color: #ffebee;
    color: #c62828;
}

/* Timeline Styles */
.tracker-timeline h5,
.tracker-uploads h5,
.tracker-stakeholders h5 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1rem;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.timeline-item.timeline-completed {
    background-color: #e8f5e8;
}

.timeline-item.timeline-current {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.timeline-item.timeline-pending {
    background-color: #f5f5f5;
}

.timeline-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.timeline-completed .timeline-marker {
    background-color: #4caf50;
}

.timeline-current .timeline-marker {
    background-color: #2196f3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.timeline-pending .timeline-marker {
    background-color: #bdbdbd;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.timeline-date {
    font-size: 0.85rem;
    color: #666;
}

.timeline-detail {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* Timeline type-specific styling */
.timeline-investment .timeline-marker {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
}

.timeline-investment .timeline-title {
    color: #28a745;
}

.timeline-milestone .timeline-marker {
    background: linear-gradient(135deg, #ff9800, #ff6b6b);
    border-color: #ff9800;
}

.timeline-milestone .timeline-title {
    color: #ff9800;
}

.timeline-certificate .timeline-marker {
    background: linear-gradient(135deg, #9c27b0, #e91e63);
    border-color: #9c27b0;
}

.timeline-certificate .timeline-title {
    color: #9c27b0;
}

.timeline-marker i {
    font-size: 10px;
    color: white;
}

/* Upload History Styles */
.upload-history {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    transition: box-shadow 0.2s;
}

.upload-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.upload-type {
    font-weight: 600;
    color: #2c3e50;
}

.upload-date {
    font-size: 0.85rem;
    color: #666;
}

.upload-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.upload-file,
.upload-uploader {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upload-file i,
.upload-uploader i {
    color: #666;
    width: 14px;
}

.no-uploads {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Stakeholders Styles */
.stakeholders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stakeholder-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    transition: box-shadow 0.2s;
}

.stakeholder-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.stakeholder-name {
    font-weight: 600;
    color: #2c3e50;
}

.stakeholder-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.stakeholder-status.status-active {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.stakeholder-status.status-monitoring {
    background-color: #e3f2fd;
    color: #1976d2;
}

.stakeholder-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stakeholder-role {
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.stakeholder-org {
    color: #666;
    font-size: 0.85rem;
}

.stakeholder-email {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stakeholder-email i {
    color: #999;
    width: 14px;
}

/* Responsive Design for Project Tracker */
@media (max-width: 768px) {
    .tracker-overview {
        grid-template-columns: 1fr;
    }
    
    .upload-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .stakeholder-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}





/* Country Section Header Styles */
.country-section-header {
    grid-column: 1 / -1; /* Span all columns in the grid */
    margin: 20px 0 10px 0;
    padding: 10px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #28a745;
    text-align: left;
}

.country-section-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* First section header (Available Countries) styling */
.country-section-header:first-child {
    margin-top: 0;
    border-left-color: #28a745; /* Green for available */
}

/* Second section header (Coming Soon) styling */
.country-section-header:nth-of-type(2) {
    border-left-color: #6c757d; /* Gray for coming soon */
}

.country-section-header:nth-of-type(2) h3 {
    color: #6c757d;
}

/* Responsive adjustments for country section headers */
@media (max-width: 768px) {
    .country-section-header {
        margin: 15px 0 8px 0;
        padding: 8px 12px;
    }
    
    .country-section-header h3 {
        font-size: 1em;
    }
}



/* Info Tasks Modal Specific Styles */
#infoTasksModal .modal-content {
    max-width: 900px;
    width: 95%;
}

#infoTasksModal .modal-body {
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    padding: 20px;
}

/* Guest Info Styles */
.guest-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.info-section {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #4caf50;
}

.info-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.info-section h4 i {
    color: #4caf50;
    font-size: 1.3rem;
}

.info-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.role-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    text-align: left;
}

.role-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    color: #555;
}

.role-list li:last-child {
    border-bottom: none;
}

.role-list li strong {
    color: #2c3e50;
}

.login-prompt {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e1bee7;
}

.login-prompt p {
    margin: 0;
    color: #4a148c;
    font-weight: 500;
}

.login-prompt i {
    color: #7b1fa2;
}

/* Tasks Container Styles */
.tasks-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.loading-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 1.1rem;
}

.loading-tasks i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #4caf50;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background-color: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.no-tasks {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-tasks i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.no-tasks h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.role-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    border-left: 4px solid #4caf50;
}

.role-info p {
    margin: 5px 0;
    color: #555;
}

/* Priority Group Styles */
.priority-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.priority-header {
    padding: 15px 20px;
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.priority-critical .priority-header {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.priority-high .priority-header {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
}

.priority-mid .priority-header {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.priority-low .priority-header {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.task-count {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.tasks-list {
    background-color: white;
    padding: 0;
}

/* Task Card Styles */
.task-card {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    transition: background-color 0.2s ease;
}

.task-card:last-child {
    border-bottom: none;
}

.task-card:hover {
    background-color: #f8f9fa;
}

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

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

.task-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.task-action-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
    font-size: 0.9rem;
}

.task-action-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.complete-btn:hover {
    background-color: #d4edda;
    border-color: #28a745;
    color: #28a745;
}

.details-btn:hover {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #17a2b8;
}

.task-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.task-description {
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.task-project {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-project i {
    color: #4caf50;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.task-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
}

.task-deadline.overdue {
    color: #dc3545;
}

.task-deadline.urgent {
    color: #fd7e14;
}

.task-deadline.soon {
    color: #ffc107;
}

.task-deadline.normal {
    color: #6c757d;
}

.task-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-overdue {
    background-color: #f8d7da;
    color: #721c24;
}

/* Task Details Modal Styles */
.task-details-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.task-details-modal {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
}

.task-details-header {
    padding: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-details-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.close-details-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-details-btn:hover {
    color: #f1f1f1;
}

.task-details-body {
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}

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

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 600;
}

.detail-section p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

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

.priority-critical {
    background-color: #f8d7da;
    color: #721c24;
}

.priority-high {
    background-color: #ffeaa7;
    color: #856404;
}

.priority-mid {
    background-color: #fff3cd;
    color: #856404;
}

.priority-low {
    background-color: #e2e3e5;
    color: #383d41;
}

.task-details-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.btn-primary:hover {
    background-color: #218838;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification i {
    font-size: 1.2rem;
}

.notification-success i {
    color: #28a745;
}

.notification-error i {
    color: #dc3545;
}

.notification-info i {
    color: #17a2b8;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-warning i {
    color: #ffc107;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 1rem;
    transition: color 0.2s;
}

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

.project-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    min-width: 350px;
    max-width: 500px;
    animation: slideInRight 0.3s ease;
}

/* Data Source Warning Banner */
.data-source-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #856404;
    font-size: 0.9rem;
}

.data-source-warning i {
    color: #ffc107;
    font-size: 1.1rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Info Tasks Modal */
@media (max-width: 768px) {
    #infoTasksModal .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .task-actions {
        align-self: flex-end;
    }

    .task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .task-details-modal {
        width: 95%;
        max-height: 90vh;
    }

    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }

    .info-section {
        padding: 15px;
    }

    .role-list {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .task-card {
        padding: 15px;
    }

    .task-title {
        font-size: 1rem;
    }

    .priority-header {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .task-action-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* =====================================================
   FILE UPLOAD STYLES
   ===================================================== */

.file-input {
    width: 100%;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: #4caf50;
    background: #f0f7f1;
}

.file-input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
}

/* Upload Notification */
.upload-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    z-index: 1004;
    min-width: 300px;
    animation: slideInUp 0.3s ease;
}

.upload-notification-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upload-notification-content i {
    color: #4caf50;
    font-size: 1.2rem;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #2196f3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* File List Display (for showing uploaded files) */
.file-list {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
}

.file-item:hover {
    background: #e9ecef;
}

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

.file-icon {
    font-size: 1.2rem;
    color: #4caf50;
}

.file-details {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.file-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.file-action-btn.download {
    background: #2196f3;
    color: white;
}

.file-action-btn.download:hover {
    background: #1976d2;
}

.file-action-btn.delete {
    background: #f44336;
    color: white;
}

.file-action-btn.delete:hover {
    background: #d32f2f;
}

/* Empty state for file uploads */
.no-files-message {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

.no-files-message i {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ddd;
}

/* Project Actions Section */
.project-actions {
    margin-top: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffebee 100%);
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-project-btn {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    border: 2px solid transparent;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(244, 67, 54, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.delete-project-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.5);
    transform: translateY(-2px);
    border-color: #b71c1c;
}

.delete-project-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(244, 67, 54, 0.4);
}

.delete-project-btn i {
    font-size: 1.1rem;
}

/* Creator badge for stakeholders */
.creator-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    color: #663c00;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.creator-badge i {
    margin-right: 3px;
    font-size: 0.7rem;
}

/* =====================================================
   VERIFICATION REQUESTS SECTION STYLES
   ===================================================== */

.verification-requests-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.verification-requests-section .section-header {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.verification-requests-section .section-header i {
    color: #4caf50;
}

.request-count {
    background-color: #4caf50;
    color: white;
    padding: 2px 10px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.verification-requests-section .section-description {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.requests-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.verification-request-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #4caf50;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.request-project-name {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.request-type-badge {
    background: linear-gradient(135deg, #4caf50 0%, #2196f3 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

.request-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.request-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 0.9rem;
}

.request-detail-item i {
    color: #4caf50;
    width: 16px;
}

.request-notes {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    display: flex;
    gap: 8px;
    font-size: 0.9rem;
    color: #495057;
}

.request-notes i {
    color: #ffc107;
    margin-top: 2px;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
}

.btn-accept-request,
.btn-reject-request,
.btn-view-request {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-accept-request {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    flex: 1;
    min-width: 100px;
}

.btn-accept-request:hover {
    background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-reject-request {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    flex: 1;
    min-width: 100px;
}

.btn-reject-request:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-view-request {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

.btn-view-request:hover {
    background: linear-gradient(135deg, #5a6268 0%, #545b62 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Tasks Section Header */
.tasks-section .section-header {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.tasks-section .section-header i {
    color: #4caf50;
}

/* Responsive adjustments for verification requests */
@media (max-width: 768px) {
    .request-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .request-actions {
        flex-direction: column;
    }
    
    .btn-accept-request,
    .btn-reject-request,
    .btn-view-request {
        width: 100%;
    }
}

/* ==========================================
   NOTIFICATION POLLING STYLES
   ========================================== */

/* Notification badge indicator */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10px;
    height: 10px;
    background-color: #ff5252;
    color: white;
    border-radius: 50%;
    font-size: 8px;
    margin-left: 5px;
    animation: pulse-badge 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
}

@keyframes pulse-badge {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 82, 82, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

/* Button with unread notifications */
button.has-unread-notifications {
    position: relative;
}

button.has-unread-notifications::before {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background-color: #ff5252;
    border-radius: 50%;
    animation: pulse-button 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
}

@keyframes pulse-button {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(255, 82, 82, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
    }
}

/* Global Modal Loading Overlay */
#modalLoadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
    animation: fadeIn 0.2s ease;
}

.modal-loading-spinner {
    background: white;
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease;
}

.modal-loading-spinner i {
    font-size: 3.5rem;
    color: #3498db;
    margin-bottom: 20px;
    display: block;
}

.modal-loading-spinner p {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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


