/* ============================================
   ATC Portal Styles
   Consolidated CSS for Stakeholder Management
   ============================================ */
   
   
   
/*====INDEX PAGE===*/

        :root {
            --primary-red: #dc2626;
            --primary-orange: #f97316;
            --secondary-gray: #6b7280;
            --light-gray: #f3f4f6;
            --border-color: #e5e7eb;
        }

        .hero-section {
            background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-orange) 100%);
            border-radius: 16px;
            padding: 3rem 2rem;
            color: white;
            margin-bottom: 2rem;
            box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06);
        }

        .hero-section .logo-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 1.5rem;
            border-radius: 12px;
            display: inline-block;
            margin-bottom: 1.5rem;
        }

        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            height: 100%;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px -10px rgba(220, 38, 38, 0.2);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .feature-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            height: 100%;
        }

        .feature-card:hover {
            border-color: var(--primary-red);
            box-shadow: 0 8px 16px -4px rgba(220, 38, 38, 0.15);
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .section-header-index {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.75rem;
        }

        .section-header-index::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
            border-radius: 2px;
        }
        
        .section-header-red {
            background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
            color: white;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .tool-card {
            background: white;
            border-radius: 12px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
            height: 100%;
        }

        .tool-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px -4px rgba(220, 38, 38, 0.15);
            border-color: var(--primary-red);
        }

        .btn-custom {
            background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-custom:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
            color: white;
        }

        .btn-outline-custom {
            border: 2px solid var(--primary-red);
            color: var(--primary-red);
            background: transparent;
            padding: 0.5rem 1.25rem;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-outline-custom:hover {
            background: var(--primary-red);
            color: white;
        }

        .info-section {
            background: var(--light-gray);
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .info-section-light {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 2rem;
        }

        .badge-custom {
            background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
            color: white;
            padding: 0.375rem 0.75rem;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .login-card {
            background: white;
            border-radius: 16px;
            padding: 3rem;
            border: 1px solid var(--border-color);
            max-width: 500px;
            margin: 4rem auto;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .timeline-item {
            position: relative;
            padding-left: 2rem;
            padding-bottom: 1.5rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary-red), var(--primary-orange));
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            left: 5.5px;
            top: 12px;
            width: 1px;
            height: calc(100% - 12px);
            background: var(--border-color);
        }

        .timeline-item:last-child::after {
            display: none;
        }

   
   
  /* =====ADD STAKEHOLDER PAGE====*/
  
          .section-header-red {
            background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
            color: white;
            padding: 0.75rem 1rem;
            border-radius: 0.5rem;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
            font-weight: 600;
        }
        
        .section-header:first-child {
            margin-top: 0;
        }
        
        .form-label {
            font-weight: 500;
            color: #2d3748;
        }
        
        .form-control, .form-select {
            border: 1.5px solid #e2e8f0;
            border-radius: 0.5rem;
            transition: all 0.3s ease;
        }
        
        .form-control:focus, .form-select:focus {
            border-color: #dc2626;
            box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
        }
        
        .info-icon {
            color: #dc2626;
            cursor: help;
            margin-left: 0.25rem;
        }
        
        .card {
            border: none;
            border-radius: 1rem;
            overflow: hidden;
        }
        
        .card-header-red {
            background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
            padding: 1.5rem;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
            border: none;
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            font-weight: 600;
            transition: transform 0.2s ease;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
        }
        
        .btn-secondary {
            padding: 0.75rem 2rem;
            border-radius: 0.5rem;
            font-weight: 600;
        }
        
        .required-field::after {
            content: " *";
            color: #dc2626;
        }
        
        .stakeholder-type-selector {
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .stakeholder-type-selector .form-check-input:checked {
            background-color: #dc2626;
            border-color: #dc2626;
        }
        
        .gps-coordinates {
            background: #f0fdf4;
            border: 1px solid #bbf7d0;
            border-radius: 0.5rem;
            padding: 1rem;
        }
        
        .initiative-group {
            background: #fef3c7;
            border: 1px solid #fde047;
            border-radius: 0.5rem;
            padding: 1rem;
            margin-bottom: 1rem;
            position: relative;
        }
        
        .initiative-group .remove-initiative {
            position: absolute;
            top: 0.5rem;
            right: 0.5rem;
        }
        
        .add-initiative-btn {
            background: linear-gradient(135deg, #059669 0%, #10b981 100%);
            border: none;
            color: white;
            padding: 0.5rem 1.5rem;
            border-radius: 0.5rem;
            font-weight: 600;
        }
        
        .add-initiative-btn:hover {
            background: linear-gradient(135deg, #047857 0%, #059669 100%);
        }
        
        .section-info {
            background: #eff6ff;
            border-left: 4px solid #3b82f6;
            padding: 0.75rem 1rem;
            margin-bottom: 1rem;
            border-radius: 0.25rem;
            font-size: 0.95rem;
            color: #1e40af;
        }
        
        .organizational-section {
            background: #fef2f2;
            border: 2px dashed #fca5a5;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-top: 1rem;
        }
   
   
   

/* === PRIORITY BADGES === */
.priority-badge {
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.priority-critical {
    background: #dc3545;
    color: white;
}

.priority-high {
    background: #fd7e14;
    color: white;
}

.priority-medium {
    background: #ffc107;
    color: #000;
}

.priority-low {
    background: #6c757d;
    color: white;
}

/* === ALIGNMENT BADGES === */
.alignment-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.alignment-for,
.alignment-supportive {
    background-color: #d4edda;
    color: #155724;
}

.alignment-neutral {
    background-color: #fff3cd;
    color: #856404;
}

.alignment-against {
    background-color: #f8d7da;
    color: #721c24;
}

.alignment-unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

/* === RATING CIRCLES === */
.rating-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85rem;
}

.rating-low {
    background-color: #d4edda;
    color: #155724;
}

.rating-medium {
    background-color: #fff3cd;
    color: #856404;
}

.rating-high {
    background-color: #f8d7da;
    color: #721c24;
}

/* === CARDS === */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
}

.card h5 {
    color: #dc2626;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
}

    .card-header-red {
            background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
            padding: 1.5rem;
        }

/* === STAKEHOLDER CARDS === */
.stakeholder-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.2s ease;
}

.stakeholder-card:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}




/* === STAT BOXES === */
.stat-box {
    text-align: center;
    padding: 1rem;
    border-radius: 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

/* === BUTTONS === */
.btn-action {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border: none;
    color: #fff;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(251, 191, 36, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* === TABLES === */
.table-responsive {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.85rem 0.75rem;
}

/* === MODALS === */
.modal-content {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem 1rem 0 0;
    border: none;
}

.modal-body .info-section {
    margin-bottom: 1.5rem;
}

.modal-body .info-section h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.modal-body .info-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.modal-body .info-row:last-child {
    border-bottom: none;
}

.modal-body .info-label {
    font-weight: 600;
    color: #495057;
    min-width: 150px;
    display: inline-block;
}

.modal-body p {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-body p:last-child {
    border-bottom: none;
}

.modal-body strong {
    color: #dc2626;
    min-width: 180px;
    display: inline-block;
}

/* === FILTERS === */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.filter-controls {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.filter-group {
    margin-bottom: 0.75rem;
}

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

.filter-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid #d1d5db;
    background: white;
    color: #374151;
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* === VIEW TOGGLE === */
.view-toggle {
    background: white;
    border-radius: 0.5rem;
    padding: 0.5rem;
    display: inline-flex;
    gap: 0.5rem;
    border: 1px solid #dee2e6;
}

.view-toggle button {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.view-toggle button.active {
    background: #667eea;
    color: white;
}

/* === ENGAGEMENT INDICATORS === */
.engagement-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.engagement-overdue {
    background-color: #dc3545;
}

.engagement-upcoming {
    background-color: #ffc107;
}

.engagement-current {
    background-color: #28a745;
}

/* === FORMS (Edit Page Specific) === */
.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header:first-child {
    margin-top: 0;
}

.form-label {
    font-weight: 500;
    color: #2d3748;
}

.form-control, .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.info-icon {
    color: #667eea;
    cursor: help;
    margin-left: 0.25rem;
}

.required-field::after {
    content: " *";
    color: #e53e3e;
}

/* === BANNERS === */
.info-banner {
    background: linear-gradient(135deg, #fee2e2 0%, #fed7aa 100%);
    border-left: 4px solid #dc2626;
    border-radius: 0.5rem;
}

/* === EMPTY STATES === */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
}

/* === CHART SPECIFIC (D3 Visualization) === */
.chart-container {
    position: relative;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.chart-info {
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid;
}

.legend-shape {
    width: 16px;
    height: 16px;
    border: 2px solid #374151;
}

.legend-shape.circle {
    border-radius: 50%;
}

/* === D3 CHART ELEMENTS === */
#stakeholderChart {
    width: 100%;
    height: 600px;
}

.stakeholder-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.stakeholder-node:hover {
    opacity: 0.8;
    stroke-width: 3;
}

.stakeholder-label {
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    text-anchor: middle;
    fill: #374151;
}

.grid-line {
    stroke: #e5e7eb;
    stroke-width: 1;
    stroke-dasharray: 5,5;
}

.axis-line {
    stroke: #9ca3af;
    stroke-width: 2;
}

.axis-label {
    font-size: 14px;
    font-weight: 600;
    fill: #374151;
}

.quadrant-label {
    font-size: 12px;
    font-weight: 600;
    fill: #6b7280;
    text-anchor: middle;
}

.quadrant-sublabel {
    font-size: 10px;
    fill: #9ca3af;
    text-anchor: middle;
}

/* === FULLSCREEN FUNCTIONALITY === */
.fullscreen-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fullscreen-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
}

.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    overflow: auto;
}

.fullscreen-modal.active {
    display: block;
}

.fullscreen-header {
    background: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fullscreen-content {
    padding: 2rem;
    height: calc(100vh - 80px);
}

.fullscreen-chart {
    height: 100%;
}

.close-fullscreen {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.close-fullscreen:hover {
    background: rgba(255,255,255,0.3);
}

/* === TOOLTIPS === */
.tooltip-box {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.75rem;
    border-radius: 0.375rem;
    pointer-events: none;
    font-size: 0.813rem;
    line-height: 1.5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 250px;
    z-index: 1000;
}

.tooltip-box .tooltip-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: 100%;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

