/* Tender Detail Page */
.tender-detail-section {
    padding: 45px 0;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tender Detail Card */
.tender-detail-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Tender Header */
.tender-header {
    padding: 40px 40px 30px 40px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tender-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.status-badge,
.type-badge,
.category-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.status-badge.closed {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.status-badge.awarded {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.status-badge.cancelled {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.type-badge.goods {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.type-badge.services {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.type-badge.works {
    background: rgba(54, 96, 114, 0.1);
    color: #366072;
}

.type-badge.consultancy {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.category-badge {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.tender-title {
    margin: 0 0 15px 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #004b6b;
}

.tender-meta-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e9ecef;
}

.tender-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 75, 107, 0.15);
}

.detail-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 75, 107, 0.1), rgba(81, 177, 70, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.detail-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

.deadline-card {
    border-left: 4px solid #e42032;
}

.deadline-card .detail-icon {
    background: rgba(228, 32, 51, 0.1);
    color: #e42032;
}

.deadline-value {
    color: #e42032;
}

.value-card {
    border-left: 4px solid #51b146;
}

.value-card .detail-icon {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.tender-number-card {
    background: linear-gradient(135deg, rgba(0, 75, 107, 0.05), rgba(81, 177, 70, 0.05));
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid rgba(0, 75, 107, 0.1);
}

.number-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.number-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.number-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.number-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tender-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    color: #666666;
    font-size: 0.9rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #51b146;
    font-size: 0.8rem;
}

.meta-item.deadline {
    color: #e4203270;
    font-weight: 600;
}

.meta-item.deadline i {
    color: #e4203270;
}

/* Tender Content */
.tender-content {
    padding: 40px;
}

.tender-description {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 75, 107, 0.05);
    border-radius: 20px;
    border-left: 4px solid #004b6b;
}

.tender-description h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 20px;
}

.tender-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin: 0;
}

/* Submission Section */
.submission-section {
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(0, 75, 107, 0.05);
    border-radius: 20px;
    border-left: 4px solid #004b6b;
}

.submission-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 25px;
    text-align: center;
}

.submission-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (max-width: 991.98px) {
    .submission-methods {
        grid-template-columns: 1fr;
    }
}

.submission-method {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.submission-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #004b6b;
    margin: 0 0 8px 0;
}

.method-content p {
    color: #666666;
    font-size: 0.9rem;
    margin: 0 0 12px 0;
}

.submission-link {
    color: #51b146;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.submission-link:hover {
    color: #004b6b;
}

.submission-address {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tender Requirements, Evaluation, Terms */
.tender-requirements,
.tender-evaluation,
.tender-terms {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(0, 75, 107, 0.05);
    border-radius: 20px;
    border-left: 4px solid #004b6b;
}

.tender-requirements h3,
.tender-evaluation h3,
.tender-terms h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #004b6b;
    margin-bottom: 20px;
}

.requirements-list,
.evaluation-list,
.terms-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.requirement-item,
.criterion-item,
.term-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.requirement-item:hover,
.criterion-item:hover,
.term-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.requirement-item i,
.criterion-item i,
.term-item i {
    color: #51b146;
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.requirement-item span,
.criterion-item span,
.term-item span {
    color: #333333;
    font-weight: 500;
    line-height: 1.6;
}

.dark-theme .tender-requirements,
.dark-theme .tender-evaluation,
.dark-theme .tender-terms {
    background: rgba(0, 75, 107, 0.1);
    border-left-color: #51b146;
}

.dark-theme .tender-requirements h3,
.dark-theme .tender-evaluation h3,
.dark-theme .tender-terms h3 {
    color: #eeeff1;
}

.dark-theme .requirement-item,
.dark-theme .criterion-item,
.dark-theme .term-item {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .requirement-item:hover,
.dark-theme .criterion-item:hover,
.dark-theme .term-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-theme .requirement-item span,
.dark-theme .criterion-item span,
.dark-theme .term-item span {
    color: #e0e0e0;
}

/* Tender Actions */
.tender-actions {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 40px;
}

.download-btn,
.share-btn,
.print-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #51b146;
    background: transparent;
    color: #51b146;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn {
    background: #51b146;
    color: #ffffff;
}

.download-btn:hover {
    background: #004b6b;
    border-color: #004b6b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.share-btn:hover,
.print-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.dark-theme .tender-actions {
    border-color: #333333;
}

/* Tender Info */
.tender-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .tender-details-grid {
        grid-template-columns: 1fr;
    }
    
    .tender-meta-card {
        padding: 1.5rem;
    }
    
    .detail-card {
        padding: 1.25rem;
    }
}

.info-card {
    background: rgba(0, 75, 107, 0.05);
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #51b146;
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #004b6b;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333333;
    font-size: 0.95rem;
}

.info-list li:last-child {
    margin-bottom: 0;
}

.info-list i {
    color: #51b146;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

/* Download Section */
.download-section {
    background: rgba(81, 177, 70, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.download-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
    font-size: 2rem;
}

.download-section h3 {
    margin: 0 0 10px 0;
    color: #004b6b;
    font-size: 1.5rem;
    font-weight: 600;
}

.download-section p {
    margin: 0 0 25px 0;
    color: #666666;
    font-size: 1rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 177, 70, 0.4);
    color: #ffffff;
}

.download-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: translateY(-2px);
}

/* Related Tenders */
.related-tenders {
    margin-top: 60px;
}

.section-title {
    margin: 0 0 30px 0;
    font-size: 1.8rem;
    font-weight: 600;
    color: #004b6b;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    border-radius: 2px;
}

.tenders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tender-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tender-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tender-card-header {
    padding: 20px 20px 15px 20px;
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.tender-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tender-card-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tender-card-badge.status-open {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.tender-card-badge.status-closed {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.tender-card-badge.status-awarded {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.tender-card-badge.status-cancelled {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.tender-card-badge.type-goods {
    background: rgba(81, 177, 70, 0.1);
    color: #51b146;
}

.tender-card-badge.type-services {
    background: rgba(0, 75, 107, 0.1);
    color: #004b6b;
}

.tender-card-badge.type-works {
    background: rgba(54, 96, 114, 0.1);
    color: #366072;
}

.tender-card-badge.type-consultancy {
    background: rgba(228, 32, 51, 0.1);
    color: #e4203270;
}

.tender-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.tender-card-title a {
    color: #004b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tender-card-title a:hover {
    color: #51b146;
}

.tender-card-content {
    padding: 20px;
}

.tender-card-description {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tender-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999999;
}

.tender-card-footer {
    padding: 15px 20px;
    background: rgba(0, 75, 107, 0.05);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.view-tender-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #51b146, #004b6b);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.view-tender-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.4);
    color: #ffffff;
}

.download-tender-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    color: #51b146;
    text-decoration: none;
    border: 2px solid #51b146;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-tender-btn:hover {
    background: #51b146;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(81, 177, 70, 0.3);
}

.view-tender-btn i,
.download-tender-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.view-tender-btn:hover i,
.download-tender-btn:hover i {
    transform: translateX(3px);
}

/* Dark Theme */
.dark-theme .tender-detail-section {
    background: #1a1a1a;
}

.dark-theme .tender-detail-card {
    background: #2d2d2d;
}

.dark-theme .tender-header {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .tender-title {
    color: #eeeff1;
}

.dark-theme .tender-meta {
    color: #cccccc;
}

.dark-theme .tender-meta-card {
    background: #2d2d2d;
    border-color: #3d3d40;
}

.dark-theme .tender-number-card {
    background: linear-gradient(135deg, rgba(0, 75, 107, 0.1), rgba(81, 177, 70, 0.1));
    border-color: rgba(0, 75, 107, 0.2);
}

.dark-theme .number-label {
    color: #cccccc;
}

.dark-theme .number-value {
    color: #51b146;
}

.dark-theme .tender-details-grid {
    /* Grid styles remain the same */
}

.dark-theme .detail-card {
    background: #2d2d2d;
    border-color: #3d3d40;
}

.dark-theme .detail-label {
    color: #cccccc;
}

.dark-theme .detail-value {
    color: #eeeff1;
}

.dark-theme .detail-icon {
    background: linear-gradient(135deg, rgba(0, 75, 107, 0.2), rgba(81, 177, 70, 0.2));
    color: #51b146;
}

.dark-theme .tender-content {
    background: #2d2d2d;
}

.dark-theme .tender-description {
    background: rgba(0, 75, 107, 0.1);
    border-left-color: #51b146;
}

.dark-theme .tender-description h3 {
    color: #eeeff1;
}

.dark-theme .tender-description p {
    color: #e0e0e0;
}

.dark-theme .submission-section {
    background: rgba(0, 75, 107, 0.1);
    border-left-color: #51b146;
}

.dark-theme .submission-section h3 {
    color: #eeeff1;
}

.dark-theme .submission-method {
    background: #2d2d2d;
}

.dark-theme .method-content h4 {
    color: #eeeff1;
}

.dark-theme .method-content p,
.dark-theme .submission-address {
    color: #cccccc;
}

.dark-theme .submission-link {
    color: #51b146;
}

.dark-theme .submission-link:hover {
    color: #eeeff1;
}

.dark-theme .info-card {
    background: rgba(0, 75, 107, 0.1);
}

.dark-theme .info-card h3 {
    color: #eeeff1;
}

.dark-theme .info-list li {
    color: #e0e0e0;
}

.dark-theme .download-section {
    background: rgba(81, 177, 70, 0.1);
}

.dark-theme .download-section h3 {
    color: #eeeff1;
}

.dark-theme .download-section p {
    color: #cccccc;
}

.dark-theme .section-title {
    color: #eeeff1;
}

.dark-theme .tender-card {
    background: #2d2d2d;
}

.dark-theme .tender-card-header {
    background: linear-gradient(135deg, rgba(81, 177, 70, 0.1), rgba(0, 75, 107, 0.1));
}

.dark-theme .tender-card-title a {
    color: #eeeff1;
}

.dark-theme .tender-card-title a:hover {
    color: #51b146;
}

.dark-theme .tender-card-description {
    color: #cccccc;
}

.dark-theme .tender-card-meta {
    color: #999999;
}

.dark-theme .tender-card-footer {
    background: rgba(0, 75, 107, 0.1);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .tender-detail-section {
        padding: 60px 0;
    }
    
    .tender-header {
        padding: 30px 30px 25px 30px;
    }
    
    .tender-content {
        padding: 30px;
    }
    
    .tender-title {
        font-size: 1.7rem;
    }
    
    .tender-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .submission-methods {
        grid-template-columns: 1fr;
    }
    
    .tenders-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .tender-detail-section {
        padding: 40px 0;
    }
    
    .tender-header {
        padding: 25px 25px 20px 25px;
    }
    
    .tender-content {
        padding: 25px;
    }
    
    .tender-title {
        font-size: 1.5rem;
    }
    
    .tender-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tender-badges {
        gap: 10px;
    }
    
    .tender-description,
    .tender-requirements,
    .tender-evaluation,
    .tender-terms,
    .submission-section {
        padding: 20px;
    }
    
    .submission-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tender-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .download-btn,
    .share-btn,
    .print-btn {
        width: 100%;
        justify-content: center;
    }
    
    .download-section {
        padding: 25px;
    }
    
    .download-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .download-section h3 {
        font-size: 1.3rem;
    }
    
    .download-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .tenders-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tender-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .view-tender-btn,
    .download-tender-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .tender-header {
        padding: 20px 20px 15px 20px;
    }
    
    .tender-content {
        padding: 20px;
    }
    
    .tender-title {
        font-size: 1.3rem;
    }
    
    .tender-description {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .download-section {
        padding: 20px;
    }
    
    .download-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .download-section h3 {
        font-size: 1.2rem;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

