/**
 * Quotes Section Styles
 */

/* Quote Container */
.quotes-container {
    margin-top: 2rem;
}

.quotes-container h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.quote-count {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.9em;
}

/* Quotes Grid */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Quote Card */
.quote-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #ffd32f;
}

.quote-card[style*="cursor: pointer"]:hover {
    border-color: #ffd32f;
    box-shadow: 0 8px 25px rgba(255, 211, 47, 0.2);
}

/* Quote Header */
.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.quote-number h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
}

/* Quote Status Badge */
.quote-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.quote-status.status-accepted {
    background: #dcfce7;
    color: #166534;
}

.quote-status.status-sent {
    background: #dbeafe;
    color: #1e40af;
}

.quote-status.status-draft {
    background: #e5e7eb;
    color: #374151;
}

.quote-status.status-declined {
    background: #fecaca;
    color: #991b1b;
}

/* Quote Amount */
.quote-amount {
    text-align: right;
}

.amount-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Quote Details */
.quote-details {
    margin-top: 1rem;
}

.quote-dates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dates-row {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 0 0 auto;
    min-width: 140px;
}

.detail-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.detail-value.expired {
    color: #dc2626;
    font-weight: 600;
}

/* Quote Card States */
.quote-card.accepted {
    border-color: #22c55e;
    background: #f0fdf4;
}

.quote-card.sent {
    border-color: #3b82f6;
    background: #eff6ff;
}

.quote-card.draft {
    border-color: #6b7280;
    background: #f9fafb;
}

.quote-card.expired {
    border-color: #dc2626;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
}

.quote-card.expired:hover {
    border-color: #b91c1c;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.25);
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.quote-card.declined {
    border-color: #6b7280;
    background: #f9fafb;
    opacity: 0.7;
}

/* Expired Status Badge Animation */
.quote-card.expired .quote-status.status-sent {
    background: #dc2626;
    color: #ffffff;
    animation: pulse-expired 2s infinite;
}

.quote-card.expired .detail-value.expired {
    color: #dc2626;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(220, 38, 38, 0.1);
}

@keyframes pulse-expired {
    0%, 100% { 
        background: #dc2626;
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% { 
        background: #b91c1c;
        box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
    }
}

/* Show More Button */
.show-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.show-more-btn {
    padding: 0.75rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.show-more-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quotes-grid {
        grid-template-columns: 1fr;
    }
    
    .quote-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quote-amount {
        text-align: left;
    }
    
    .dates-row {
        flex-direction: column;
        gap: 0.75rem;
    }
}
