/* ParoleBuilder Custom Styles */

/* Info Icon Tooltips - Updated for better visibility */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    font-size: 13px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    position: relative;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.6);
}

.info-icon-lg {
    width: 24px;
    height: 24px;
    font-size: 14px;
}

/* Custom Tooltip Styling - More colorful and distinct */
.custom-tooltip {
    position: relative;
    display: inline-block;
}

.custom-tooltip .tooltip-text {
    display: none !important;
    width: 380px;
    max-width: calc(100vw - 30px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
    text-align: left;
    border-radius: 8px;
    padding: 14px 16px;
    position: absolute !important;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 13px;
    line-height: 1.6;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.custom-tooltip .tooltip-text::before {
    content: "ℹ️ ";
    font-size: 16px;
    margin-right: 6px;
}

.custom-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #764ba2 transparent transparent transparent;
}

/* Desktop: show on hover */
@media (hover: hover) and (pointer: fine) {
    .custom-tooltip:hover .tooltip-text {
        display: block !important;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile: show when .active class is added via JavaScript */
.custom-tooltip.active .tooltip-text {
    display: block !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip for mobile - click to show */
@media (max-width: 768px) {
    .custom-tooltip .tooltip-text {
        width: 300px;
        max-width: calc(100vw - 20px);
    }
}

/* Field Label with Help Icon - Add spacing */
.field-label-with-help {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Add spacing after tooltips before form fields */
.field-label-with-help + input,
.field-label-with-help + select,
.field-label-with-help + textarea,
.field-label-with-help + .input-group {
    margin-top: 8px;
}

/* Add spacing after form-text before next field */
.form-text {
    margin-bottom: 12px;
}
.alert-critical {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
    border-left: 4px solid #dc3545;
}

.alert-deadline {
    background-color: #fff3cd;
    border-color: #ffe69c;
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.alert-guidance {
    background-color: #d1ecf1;
    border-color: #b6e3f0;
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

/* Progress Indicators */
.progress-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    font-weight: bold;
    margin-right: 10px;
}

.progress-ring.completed {
    background-color: #198754;
    color: white;
}

.progress-ring.in-progress {
    background-color: #ffc107;
    color: #000;
}

.progress-ring.pending {
    background-color: #6c757d;
    color: white;
}

/* Section Headers with Icons */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.section-header i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #0d6efd;
}

/* Checklist Styles */
.checklist-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
}

.checklist-item.completed {
    background-color: #d1e7dd;
    text-decoration: line-through;
    color: #0f5132;
}

.checklist-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Good vs Bad Examples */
.example-box {
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
    border-left: 4px solid;
}

.example-good {
    background-color: #d1e7dd;
    border-color: #198754;
}

.example-good::before {
    content: " GOOD: ";
    font-weight: bold;
    color: #198754;
}

.example-bad {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.example-bad::before {
    content: " BAD: ";
    font-weight: bold;
    color: #dc3545;
}

/* Timeline Status Colors */
.timeline-status {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    margin: 8px 0;
}

.timeline-status.status-green {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.timeline-status.status-yellow {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.timeline-status.status-orange {
    background-color: #ffe5d0;
    color: #653208;
    border-left: 4px solid #fd7e14;
}

.timeline-status.status-red {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

.timeline-status.status-black {
    background-color: #e9ecef;
    color: #212529;
    border-left: 4px solid #6c757d;
}

/* Collapsible Help Sections */
.help-section {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.help-section-header {
    background-color: #f8f9fa;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
    user-select: none;
}

.help-section-header:hover {
    background-color: #e9ecef;
}

.help-section-header strong {
    flex: 1;
}

.help-section-header .toggle-icon {
    font-size: 20px;
    font-weight: bold;
    color: #0d6efd;
    min-width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.help-section-header.active .toggle-icon {
    transform: rotate(45deg);
}

.help-section-content {
    padding: 16px;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    display: none;
}

.help-section-content.show {
    display: block;
}

/* Print Styles */
@media print {
    .info-icon,
    .custom-tooltip,
    .alert-dismissible {
        display: none;
    }
}
