/* Regulatory Tracker Styles for Veritas AI */

/* Header */
.tracker-header {
    background: linear-gradient(135deg, #0a192f 0%, #0d47a1 100%);
    color: white;
    padding: 100px 0 40px;
    margin-bottom: 0;
}

.tracker-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.header-description {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 900px;
    opacity: 0.9;
}

.notification-status {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}

.status-indicator.active {
    background-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
    animation: pulse 2s infinite;
}

.status-indicator.inactive {
    background-color: #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.status-text {
    font-weight: 600;
    margin-right: 15px;
}

.last-update {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Filter Controls */
.filter-controls {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.control-panel {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #495057;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 38px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #495057;
}

.filter-tag .remove-filter {
    background: none;
    border: none;
    color: #6c757d;
    margin-left: 5px;
    padding: 0 5px;
    cursor: pointer;
}

/* Tracker Content */
.tracker-content {
    background-color: #f8f9fa;
    padding: 30px 0;
    min-height: calc(100vh - 400px);
}

/* Sidebar Components */
.sidebar-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #0a192f;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    font-size: 0.9rem;
}

.alert-count {
    background-color: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.section-body {
    padding: 15px 20px;
}

.section-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
}

/* Alert Center */
.alerts-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 0;
}

.alert-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

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

.alert-item::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
}

.alert-item.critical::before {
    background-color: #dc3545;
}

.alert-item.high::before {
    background-color: #fd7e14;
}

.alert-item.medium::before {
    background-color: #ffc107;
}

.alert-item.low::before {
    background-color: #28a745;
}

.alert-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.alert-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0a192f;
}

.alert-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.alert-description {
    font-size: 0.85rem;
    color: #495057;
    margin-bottom: 10px;
}

.alert-actions {
    display: flex;
    gap: 10px;
}

/* Alert Preferences */
.alert-preference-item {
    margin-bottom: 15px;
}

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

.preference-info {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 1.7rem;
    margin-top: 2px;
}

/* Regulatory Timeline */
.regulatory-timeline {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.timeline-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.timeline-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #0a192f;
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timeline-view-options {
    margin-right: 10px;
}

.timeline-container {
    overflow-y: auto;
    max-height: 800px;
}

.timeline-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

/* Regulation Item */
.regulation-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    position: relative;
}

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

.regulation-impact {
    font-size: 0.85rem;
    font-weight: 600;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    padding: 10px 0;
    margin-right: 20px;
    color: white;
    border-radius: 4px;
    flex-shrink: 0;
    width: 24px;
}

.regulation-item.critical .regulation-impact {
    background-color: #dc3545;
}

.regulation-item.high .regulation-impact {
    background-color: #fd7e14;
}

.regulation-item.medium .regulation-impact {
    background-color: #ffc107;
    color: #212529;
}

.regulation-item.low .regulation-impact {
    background-color: #28a745;
}

.regulation-content {
    flex: 1;
}

.regulation-header {
    margin-bottom: 10px;
}

.regulation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0a192f;
    margin-bottom: 5px;
}

.regulation-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.regulation-framework, .regulation-jurisdiction {
    display: inline-block;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 15px;
}

.regulation-framework {
    background-color: #e0f7ff;
    color: #0dcaf0;
}

.regulation-jurisdiction {
    background-color: #e0ecff;
    color: #0d6efd;
}

.regulation-dates {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 15px;
}

.date-label {
    font-weight: 500;
}

.date-value {
    color: #212529;
}

.date-value.highlight {
    font-weight: 600;
    color: #dc3545;
}

.regulation-description {
    font-size: 0.95rem;
    color: #495057;
    margin-bottom: 15px;
}

.regulation-description p {
    margin-bottom: 0;
}

.regulation-impacts-container {
    background-color: #f8f9fa;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.impact-header {
    font-weight: 600;
    font-size: 0.95rem;
    color: #0a192f;
    margin-bottom: 8px;
}

.impact-content {
    font-size: 0.9rem;
    color: #495057;
}

.impact-content p {
    margin-bottom: 0;
}

.impact-content .highlight {
    font-weight: 600;
    color: #0d6efd;
}

.regulation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Regulation Detail Modal */
.modal-xl .modal-content {
    border-radius: 10px;
}

.regulation-detail-header {
    margin-bottom: 20px;
}

.regulation-detail-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a192f;
}

.regulation-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.detail-framework, .detail-jurisdiction, .detail-impact, .detail-status {
    display: inline-block;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.detail-framework {
    background-color: #e0f7ff;
    color: #0dcaf0;
}

.detail-jurisdiction {
    background-color: #e0ecff;
    color: #0d6efd;
}

.detail-impact {
    color: white;
}

.detail-impact.critical {
    background-color: #dc3545;
}

.detail-impact.high {
    background-color: #fd7e14;
}

.detail-impact.medium {
    background-color: #ffc107;
    color: #212529;
}

.detail-impact.low {
    background-color: #28a745;
}

.detail-status {
    background-color: #e0f7ff;
    color: #0dcaf0;
}

.detail-status.draft {
    background-color: #e9ecef;
    color: #6c757d;
}

.detail-status.proposed {
    background-color: #e0f7ff;
    color: #0dcaf0;
}

.detail-status.enacted {
    background-color: #e0ffec;
    color: #28a745;
}

.detail-timeline {
    display: flex;
    margin-bottom: 20px;
}

.timeline-step {
    flex: 1;
    position: relative;
    text-align: center;
    padding-bottom: 20px;
}

.timeline-step::before {
    content: '';
    position: absolute;
    height: 3px;
    background-color: #e9ecef;
    top: 25px;
    left: 0;
    right: 0;
    z-index: 1;
}

.timeline-step:first-child::before {
    left: 50%;
}

.timeline-step:last-child::before {
    right: 50%;
}

.timeline-step.active::before {
    background-color: #0d6efd;
}

.timeline-step.completed::before {
    background-color: #28a745;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
    z-index: 2;
    color: #6c757d;
}

.timeline-step.active .step-icon {
    background-color: #0d6efd;
    color: white;
}

.timeline-step.completed .step-icon {
    background-color: #28a745;
    color: white;
}

.step-date {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0a192f;
}

.timeline-step.active .step-label {
    color: #0d6efd;
}

.timeline-step.completed .step-label {
    color: #28a745;
}

.regulation-detail-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #0a192f;
}

.regulation-detail-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 15px;
}

.requirement-section {
    margin-bottom: 25px;
}

.requirement-category {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0a192f;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.requirement-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}

.requirement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.requirement-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0a192f;
}

.requirement-description {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 10px;
}

.requirement-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.requirement-meta span {
    display: inline-block;
}

.requirement-meta .label {
    font-weight: 600;
    color: #6c757d;
}

.requirement-meta .value {
    color: #0a192f;
}

.compliance-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

.compliance-status.compliant {
    background-color: #e0ffec;
    color: #28a745;
}

.compliance-status.partial {
    background-color: #fff3cd;
    color: #856404;
}

.compliance-status.non-compliant {
    background-color: #f8d7da;
    color: #dc3545;
}

.compliance-status.not-applicable {
    background-color: #e9ecef;
    color: #6c757d;
}

.impact-analysis {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 5px 5px 0;
}

.impact-analysis h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.impact-summary {
    margin-bottom: 15px;
}

.impact-details {
    margin-top: 15px;
}

.impact-system {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e9ecef;
}

.impact-system:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.impact-system-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
    color: #0a192f;
}

.impact-system-detail {
    font-size: 0.9rem;
    color: #495057;
}

.impact-system-actions {
    margin-top: 10px;
}

.recommendations {
    margin-top: 25px;
}

.recommendation-item {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.recommendation-item i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #0d6efd;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .tracker-header {
        padding: 80px 0 30px;
    }
    
    .tracker-header h1 {
        font-size: 1.8rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .timeline-controls {
        margin-top: 15px;
        width: 100%;
        justify-content: space-between;
    }
    
    .regulation-impacts-container {
        padding: 12px;
    }
}

@media (max-width: 767px) {
    .tracker-header {
        padding: 70px 0 25px;
    }
    
    .tracker-header h1 {
        font-size: 1.6rem;
    }
    
    .notification-status {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-text {
        margin-bottom: 5px;
    }
    
    .control-panel {
        padding: 15px;
    }
    
    .regulation-item {
        flex-direction: column;
    }
    
    .regulation-impact {
        writing-mode: horizontal-tb;
        transform: none;
        width: auto;
        display: inline-block;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 5px 10px;
    }
    
    .regulation-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .regulation-actions {
        flex-direction: column;
    }
    
    .regulation-actions .btn {
        width: 100%;
    }
    
    .detail-timeline {
        overflow-x: auto;
        padding-bottom: 10px;
    }
}
