/* ===== GENERAL STYLES ===== */
.gradient-text {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.section-divider {
    display: flex;
    align-items: center;
    color: #6c757d;
    margin: 2rem 0;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.section-divider::before {
    margin-right: 1rem;
}

.section-divider::after {
    margin-left: 1rem;
}

.section-divider span {
    font-size: 1.1rem;
    font-weight: 500;
}

.section-divider i {
    margin-right: 0.5rem;
}

/* ===== PROGRAM CARDS ===== */
.program-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.ribbon-wrapper {
    width: 85px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    top: -3px;
    right: -3px;
    z-index: 1;
}

.ribbon {
    font-size: 0.7rem;
    font-weight: bold;
    text-align: center;
    transform: rotate(45deg);
    position: relative;
    padding: 5px 0;
    left: -5px;
    top: 15px;
    width: 120px;
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1);
}

.highlighted-card {
    border: 2px solid #0d6efd;
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.15) !important;
}

/* Score Visualization */
.score-visualization {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.score-bars {
    flex: 1;
    margin-right: 10px;
}

.score-bar-item {
    margin-bottom: 0.75rem;
}

.progress-thin {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: #f0f0f0;
}

/* Compatibility Circle */
.compatibility-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.compatibility-circle {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

.compatibility-text {
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 600;
}

.compatibility-label {
    font-size: 0.7rem;
    text-align: center;
    color: #6c757d;
}

.penalty-info {
    font-size: 0.8rem;
}

/* ===== AI INSIGHTS SECTION ===== */
.insight-card {
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.insight-card:hover {
    transform: translateY(-5px);
}

.insight-summary {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-left: 5px solid #03a9f4;
}

.insight-career {
    background: linear-gradient(135deg, #f8f9fa 0%, #dff0d8 100%);
    border-left: 5px solid #4caf50;
}

.insight-recommendations {
    background: linear-gradient(135deg, #fff9c4 0%, #fff8e1 100%);
    border-left: 5px solid #ffc107;
}

.insight-icon {
    position: absolute;
    top: -15px;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.insight-summary .insight-icon {
    background-color: #03a9f4;
    color: white;
}

.insight-career .insight-icon {
    background-color: #4caf50;
    color: white;
}

.insight-recommendations .insight-icon {
    background-color: #ffc107;
    color: white;
}

.insight-title {
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem;
    padding-top: 0.75rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 0.75rem;
}

.insight-content {
    font-size: 0.9rem;
    color: #555;
}

.insight-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

/* Extended Recommendation */
.extended-recommendation {
    margin-top: 3rem;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background: #fff;
}

.recommendation-content {
    padding: 1.5rem;
}

.recommendation-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    background: #fff8e1;
    color: #ffc107;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.recommendation-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.recommendation-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

/* ===== ACTION SECTION ===== */
.action-section {
    margin-top: 3rem;
}

.action-card {
    border-radius: 1rem;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.share-card .action-icon {
    background: linear-gradient(135deg, #5e72e4 0%, #825ee4 100%);
    color: white;
}

.feedback-card .action-icon {
    background: linear-gradient(135deg, #11cdef 0%, #1171ef 100%);
    color: white;
}

.action-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.share-buttons .btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Feedback Form */
.feedback-form label {
    font-weight: 500;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
}

.field-container {
    margin-bottom: 0.5rem;
}

.field-container textarea {
    min-height: 60px !important; /* Even smaller height */
    max-height: 100px !important;
    height: 80px !important; /* Fixed height */
    resize: none !important; /* Prevent resizing */
    overflow-y: auto; /* Add scrollbar when needed */
    font-size: 0.85rem !important; /* Slightly smaller font */
    line-height: 1.4 !important; /* Tighter line height */
    padding: 0.4rem 0.6rem !important; /* Smaller padding */
}

/* Add these specific styles for the recommendations textarea */
.field-container textarea[name="recommendations"] {
    height: 40px !important; /* Very small fixed height */
    min-height: 40px !important;
    max-height: 60px !important;
    resize: none !important; /* Disable resizing */
    overflow-y: auto !important; /* Enable scrollbar if needed */
    font-size: 0.8rem !important; /* Smaller font */
    line-height: 1.3 !important; /* Tighter line height */
    padding: 0.25rem 0.5rem !important; /* Minimal padding */
}

/* Ensure the recommendations textarea label is also compact */
.field-container label[for$="recommendations"] {
    font-size: 0.75rem !important;
    margin-bottom: 0.1rem !important;
    margin-top: 0 !important;
}

.feedback-form input[type="text"],
.feedback-form input[type="number"],
.feedback-form select,
.feedback-form textarea {
    border-radius: 0.5rem;
}

.feedback-form button {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

.feedback-form .col-12.text-end {
    margin-top: 0.5rem;
}

/* Compact Feedback Form */
.compact.feedback-form {
    margin-bottom: 0 !important;
}

.compact.feedback-form .field-container {
    margin-bottom: 0.3rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.compact.feedback-form label {
    font-size: 0.8rem !important;
    margin-bottom: 0.1rem !important;
    color: #555;
}

.compact.feedback-form input,
.compact.feedback-form select {
    height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.85rem !important;
}

.compact.feedback-form .col-12.text-end {
    margin-top: 0.25rem !important;
}

.compact.feedback-form .btn {
    padding: 0.25rem 0.75rem !important;
    font-size: 0.85rem !important;
}

.compact.feedback-form .row.g-2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure container height is contained */
.action-card.feedback-card {
    max-height: 400px !important; /* Set a max height */
    overflow-y: auto !important; /* Add scroll if needed */
}

/* Make sure the form is as compact as possible */
.feedback-form .row {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ===== MODAL STYLES ===== */
.program-detail-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.program-detail-header h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.program-detail-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
    margin-bottom: 1.5rem;
}

.score-item {
    text-align: center;
    min-width: 80px;
}

.score-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d6efd;
}

.analysis-item {
    margin-bottom: 1rem;
}

.feedback-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 767px) {
    .score-visualization {
        flex-direction: column;
    }
    
    .compatibility-indicator {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-top: 1rem;
    }
    
    .compatibility-circle {
        margin-right: 1rem;
        margin-bottom: 0;
    }
}