/* Proposal Show - Modern Professional Design */

.proposal-container {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    min-height: 100vh;
    padding: 1.5rem 0;
}

/* Header Section */
.proposal-header {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    /* overflow: hidden; */
}

.proposal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.proposal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a365d;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.proposal-badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.status-badge.pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-badge.approved {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-badge.rejected {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-badge.favorite {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d69e2e;
    border: 1px solid #fde68a;
}

.feature-badge.editable {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.proposal-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: #1a365d;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

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

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

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

.action-btn-primary {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
}

.action-btn-primary:hover {
    border-color: #1a365d;
    color: white;
}

.action-btn-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.action-btn-success:hover {
    border-color: #22c55e;
    color: white;
}

.action-btn-warning {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    color: white;
}

.action-btn-warning:hover {
    border-color: #d69e2e;
    color: white;
}

.action-btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.action-btn-info:hover {
    border-color: #3b82f6;
    color: white;
}

.action-btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.action-btn-secondary:hover {
    border-color: #6b7280;
    color: white;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    transition: height 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.stat-card:hover::before {
    height: 5px;
}

.stat-card.primary::before {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.stat-card.success::before {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stat-card.info::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.warning::before {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

.stat-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-card.primary .stat-icon {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
}

.stat-card.success .stat-icon {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.stat-card.info .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.warning .stat-icon {
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
}

.stat-details h3 {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.5rem 0;
}

.stat-details .stat-value {
    color: #1a365d;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Courier New', monospace;
}

/* Main Content Card */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.content-card-header {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.content-card-body {
    padding: 1.5rem;
}

/* Info Sections */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(26, 54, 93, 0.1);
}

.info-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section-title i {
    color: #d69e2e;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.info-item:last-child {
    border-bottom: none;
}

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

.info-value {
    color: #1a365d;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}

/* Sections Details */
.sections-container {
    margin-top: 2rem;
}

.sections-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sections-title i {
    color: #d69e2e;
}

.section-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.section-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.section-total {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

/* Section Items */
.section-items {
    padding: 1.5rem;
    background: #fafbfc;
    border-top: 1px solid rgba(26, 54, 93, 0.1);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.item-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: #d69e2e;
}

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

.item-details {
    flex: 1;
    padding-left: 1rem;
}

.item-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1a365d;
    display: block;
    margin-bottom: 0.5rem;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.item-quantity,
.item-unit,
.item-unit-price {
    background: #f8f9fc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-weight: 500;
}

.item-price {
    text-align: left;
    min-width: 120px;
}

.price-value {
    font-weight: 700;
    font-size: 1.1rem;
    color: #d69e2e;
    font-family: 'Courier New', monospace;
}

/* Responsive Design for Items */
@media (max-width: 768px) {
    .item-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .item-details {
        padding-left: 0;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .item-price {
        text-align: right;
        min-width: auto;
    }
    
    .price-value {
        font-size: 1.2rem;
    }
}

/* Cost Summary */
.cost-summary {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(26, 54, 93, 0.1);
}

.cost-summary-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cost-summary-title i {
    color: #d69e2e;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.cost-item:last-child {
    border-bottom: 2px solid #1a365d;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a365d;
}

.cost-label {
    color: #6c757d;
    font-weight: 500;
}

.cost-value {
    color: #1a365d;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Images Gallery */
.images-section {
    margin-top: 2rem;
}

.images-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.images-title i {
    color: #d69e2e;
}

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

.image-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: white;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-card:hover .image-container img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

.image-actions {
    display: flex;
    gap: 0.5rem;
}

.image-action {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-action-view {
    background: rgba(255, 255, 255, 0.9);
    color: #1a365d;
}

.image-action-download {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
}

.image-action:hover {
    transform: translateY(-2px);
}

.empty-images {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    border-radius: 12px;
    border: 2px dashed #d69e2e;
}

.empty-images-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #d69e2e 0%, #b7791f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.empty-images h4 {
    color: #1a365d;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-images p {
    color: #6c757d;
    margin: 0;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%);
    color: white;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    border-top: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #1a365d;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1a365d;
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .proposal-container {
        padding: 1rem 0;
    }
    
    .proposal-header,
    .content-card-body {
        padding: 1rem;
    }
    
    .proposal-title {
        font-size: 1.5rem;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .action-btn {
        justify-content: center;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-details .stat-value {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-section {
        padding: 1rem;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .image-container {
        height: 150px;
    }
    
    .modal-container {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Print Styles */
@media print {
    .proposal-container {
        background: white;
        padding: 0;
    }
    
    .quick-actions,
    .modal-overlay {
        display: none;
    }
    
    .content-card,
    .stat-card {
        box-shadow: none;
        border: 1px solid #e9ecef;
    }
    
    .action-btn {
        display: none;
    }
} 