/* ========================================
   OPPORTUNITY DETAILS - CUSTOM STYLES
   Redesign per mettere in evidenza Company, Contact e Value
   ======================================== */

/* Principal Information Section - TOP LEFT */
.opportunity-principal-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #ff8c00;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.opportunity-details-company {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.opportunity-details-company i {
    font-size: 1.75rem;
    color: #0066cc;
}

.opportunity-details-company a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.opportunity-details-company a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.opportunity-details-contact {
    font-size: 1.25rem;
    font-weight: 600;
    color: #5a5a5a;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.opportunity-details-contact i {
    font-size: 1.5rem;
    color: #28a745;
}

.opportunity-details-contact a {
    color: #5a5a5a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.opportunity-details-contact a:hover {
    color: #28a745;
    text-decoration: underline;
}

/* Value Section - HUGE & PROMINENT */
.opportunity-details-value-container {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
}

.opportunity-details-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.opportunity-details-value i {
    font-size: 2rem;
    color: #ff8c00;
}

.opportunity-details-value-converted {
    font-size: 1.1rem;
    color: #737373;
    font-weight: 500;
    font-style: italic;
    margin-left: 3rem;
}

/* Activity Link */
.opportunity-details-activity {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: #6c757d;
}

.opportunity-details-activity i {
    color: #6c757d;
}

.opportunity-details-activity a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.opportunity-details-activity a:hover {
    text-decoration: underline;
}

/* Secondary Info Section - RIGHT COLUMN */
.opportunity-secondary-info {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    height: 100%;
}

.opportunity-secondary-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.opportunity-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.opportunity-info-row:last-child {
    border-bottom: none;
}

.opportunity-info-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.opportunity-info-label i {
    font-size: 1.1rem;
    color: #6c757d;
}

.opportunity-info-value {
    font-size: 0.95rem;
    color: #212529;
    text-align: right;
}

/* Probability Bar Enhancement */
.probability-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.probability-bar {
    flex-grow: 1;
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #e9ecef;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: width 0.3s ease;
}

.probability-percentage {
    font-weight: 700;
    font-size: 1rem;
    color: #28a745;
    min-width: 45px;
}

/* Description Section */
.opportunity-description-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

.opportunity-description-section h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.opportunity-description-text {
    color: #212529;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Badges Enhancement */
.opportunity-badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .opportunity-details-company {
        font-size: 1.25rem;
    }
    
    .opportunity-details-contact {
        font-size: 1.1rem;
    }
    
    .opportunity-details-value {
        font-size: 1.5rem;
    }
    
    .opportunity-details-value-converted {
        font-size: 1rem;
        margin-left: 2rem;
    }
    
    .opportunity-principal-info {
        padding: 1.5rem;
    }
}

/* Loading State Enhancement */
.opportunity-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card Header Enhancement */
.opportunity-header {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%) !important;
    padding: 1.25rem 1.5rem;
}

.opportunity-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Market Badge (if shown) */
.market-badge {
    background-color: #0066cc;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}
