/* Public Procurement Detail Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 40px 20px;
    color: #2c3e50;
}

.detail-container {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 50px;
}

.detail-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e8ecf1;
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.detail-title .highlight {
    color: #0066cc;
}

.detail-subtitle {
    color: #5a6c7d;
    font-size: 1.1rem;
}

/* Info Cards Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.info-label {
    font-size: 0.85rem;
    color: #5a6c7d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Description Section */
.description-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.description-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.description-text {
    color: #5a6c7d;
    line-height: 1.8;
    font-size: 1rem;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: capitalize;
}

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

.status-active { 
    background: #d1e7dd; 
    color: #0f5132; 
}

.status-inactive { 
    background: #e2e8f0; 
    color: #475569; 
}

/* Back Icon */
.back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border-radius: 50%;
    color: #5a6c7d;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    border: 2px solid #e8ecf1;
}

.back-icon:hover {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

/* Products/Items Section */
.products-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    border: 1px solid #e8ecf1;
    overflow: hidden;
}

.products-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 2px solid #e8ecf1;
}

.products-table-container {
    overflow-x: auto;
    background: white;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.products-table thead {
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf1;
}

.products-table thead th {
    padding: 16px 30px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #5a6c7d;
}

.products-table thead th:first-child {
    text-align: center;
    width: 60px;
}

.products-table thead th:nth-child(3),
.products-table thead th:nth-child(4) {
    text-align: center;
}

.products-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

.products-table tbody tr:last-child {
    border-bottom: none;
}

.products-table tbody tr:hover {
    background: #f8fafc;
}

.products-table tbody td {
    padding: 20px 30px;
    color: #2c3e50;
    vertical-align: middle;
}

.products-table tbody td:first-child {
    font-weight: 700;
    color: #0066cc;
    text-align: center;
    font-size: 0.9rem;
}

.products-table tbody td:nth-child(2) {
    font-weight: 500;
    font-size: 1rem;
    color: #2c3e50;
}

.products-table tbody td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.products-table tbody td:nth-child(4) {
    text-align: center;
    color: #5a6c7d;
    font-size: 0.9rem;
}

.products-table .text-center {
    text-align: center;
}

.no-products {
    color: #5a6c7d;
    font-style: italic;
    text-align: center;
    padding: 40px 30px;
    font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .detail-container {
        padding: 30px 20px;
    }
    
    .detail-title {
        font-size: 1.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }

    .products-title {
        font-size: 1.1rem;
        padding: 20px;
    }

    .products-table thead th,
    .products-table tbody td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .products-table thead th {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .products-table tbody td:first-child {
        font-size: 0.85rem;
    }

    .products-table tbody td:nth-child(2) {
        font-size: 0.9rem;
    }

    .no-products {
        padding: 30px 20px;
        font-size: 0.9rem;
    }
}
