/* Organization Structure Styles */
.org-structure-section {
    margin-top: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.org-structure-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.tab-container {
    display: flex;
    background: #ecf0f1;
    border-bottom: 1px solid #bdc3c7;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tab {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    background: #ecf0f1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #2c3e50;
    border: none;
}

.tab.active {
    background: white;
    color: #3498db;
    border-bottom: 3px solid #3498db;
}

.tab:hover {
    background: #d5dbdb;
}

.tab-content {
    display: none;
    padding: 30px;
    background: white;
    border-radius: 0 0 8px 8px;
}

.tab-content.active {
    display: block;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.level {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.position-box {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-left: 4px solid;
    min-width: 220px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.position-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.gov-level-1 .position-box { border-left-color: #e74c3c; background: #fff5f5; }
.gov-level-2 .position-box { border-left-color: #3498db; background: #f0f8ff; }
.gov-level-3 .position-box { border-left-color: #2ecc71; background: #f0fff0; }

.private-level-1 .position-box { border-left-color: #9b59b6; background: #faf5ff; }
.private-level-2 .position-box { border-left-color: #e67e22; background: #fff8f0; }
.private-level-3 .position-box { border-left-color: #1abc9c; background: #f0fffc; }

.position-title {
    font-size: 1.0em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
}

.position-staff {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.position-count {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75em;
    display: inline-block;
}

.connector {
    width: 2px;
    height: 25px;
    background: #bdc3c7;
    margin: 0 auto;
}

.level-label {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.0em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.stat-box {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.0em;
    opacity: 0.9;
}

.org-diagram {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.diagram-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.hierarchical-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.diagram-level {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.diagram-box {
    background: white;
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    min-width: 140px;
    font-size: 0.9em;
    font-weight: 500;
    color: #2c3e50;
}

.diagram-box.executive {
    background: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.diagram-box.department {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.diagram-box.unit {
    background: #2ecc71;
    color: white;
    border-color: #27ae60;
}

.org-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.org-table th {
    background: #34495e;
    color: white;
    padding: 12px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
}

.org-table td {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
    text-align: center;
    font-size: 0.85em;
}

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

.category-header {
    background: #3498db !important;
    color: white !important;
    font-weight: 600;
}

.legal-framework {
    background: #ecf0f1;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border-left: 4px solid #3498db;
}

.legal-framework h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.legal-list {
    list-style: none;
    padding: 0;
}

.legal-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.legal-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}
