/* MITRE ATT&CK Page Specific Styles */

.main-nav {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    justify-content: center;
}

.nav-link {
    color: #00ff88;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-link:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.nav-link.active {
    background: rgba(0, 255, 136, 0.3);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.filter-select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.5);
    color: #00ff88;
    font-family: inherit;
    font-size: 1em;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.techniques-panel {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow-y: visible;
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

.panel-header h3 {
    margin: 0;
    color: #00ff88;
    font-size: 1.2em;
    font-weight: bold;
}

.panel-controls {
    display: flex;
    gap: 10px;
}

.techniques-container {
    overflow-y: visible;
    min-height: 400px;
}

.tactic-group {
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.tactic-header {
    background: rgba(0, 255, 136, 0.1);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tactic-header:hover {
    background: rgba(0, 255, 136, 0.2);
}

.tactic-header h4 {
    margin: 0;
    color: #00ff88;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tactic-header h4::after {
    content: attr(data-count);
    font-size: 0.8em;
    color: #88ddff;
    background: rgba(0, 255, 136, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.tactic-header .expand-icon {
    color: #00ff88;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.tactic-header.expanded .expand-icon {
    transform: rotate(90deg);
}

.tactic-techniques {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tactic-techniques.expanded {
    max-height: 8000px;
}

.technique-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.technique-item:hover {
    background: rgba(0, 255, 136, 0.05);
    transform: translateX(5px);
}

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

.technique-item.selected {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid #00ff88;
}

.technique-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.technique-id {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1em;
}

.technique-name {
    color: #00ff88;
    font-weight: bold;
}

.technique-description {
    color: #88ddff;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.technique-processes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
}

.process-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(136, 221, 255, 0.1));
    color: #00ff88;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    margin: 2px;
    text-decoration: none;
    border: 1px solid rgba(0, 255, 136, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
}

.process-tag:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(136, 221, 255, 0.2));
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

.process-tag a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.process-tag a:hover {
    color: #88ddff;
    text-shadow: 0 0 8px rgba(136, 221, 255, 0.5);
    text-decoration: none;
}

.process-tag .external-link {
    font-size: 0.9em;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.process-tag .external-link:hover {
    opacity: 1;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.process-tag-missing {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(0, 0, 0, 0.3));
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
    cursor: not-allowed;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.process-tag-missing:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(0, 0, 0, 0.4));
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.process-tag-missing a {
    color: #ff6b6b;
    transition: all 0.3s ease;
}

.process-tag-missing a:hover {
    color: #ff8a8a;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.process-tag-missing .external-link {
    cursor: pointer;
}

.process-tag-missing .external-link:hover {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.external-link {
    margin-left: 4px;
    color: #88ddff;
    text-decoration: none;
    font-size: 1em;
    vertical-align: middle;
    opacity: 0.8;
    transition: color 0.2s, opacity 0.2s;
}
.external-link:hover {
    color: #ffd700;
    opacity: 1;
}

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

.stat-card {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 255, 136, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.2);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 5px;
}

.stat-label {
    color: #88ddff;
    font-size: 0.9em;
}

.technique-detail-section {
    margin-bottom: 20px;
}

.technique-detail-section h4 {
    color: #00ff88;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.technique-detail-section p {
    color: #88ddff;
    line-height: 1.5;
    margin-bottom: 10px;
}

.technique-detail-section ul {
    color: #88ddff;
    margin-left: 20px;
}

.technique-detail-section li {
    margin-bottom: 5px;
}

.technique-detail-section a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.technique-detail-section a:hover {
    color: #ffb300;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .panel-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .panel-controls {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Ensure proper layout with single scrollbar */
.main-container {
    min-height: calc(100vh - 140px);
}

.techniques-panel,
.info-panel {
    height: auto;
    min-height: 400px;
}
