@import url("https://fonts.googleapis.com/css?family=Montserrat");
html {
    height: 100%;
    scrollbar-width: none;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    height: 100%;
}

.column {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 400px;
    max-height: 400px;
    overflow: scroll;
}

.legend {
    font-family: Verdana, Arial, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: medium;
    color: gray;
}

#cves[placeholder]:empty::before {
    content: attr(placeholder);
    color: lightgray; 
}

#cves[placeholder]:empty:focus::before {
    content: "";
}

.arrow {
    position: absolute;
    /*left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);*/
    color: #0d6efd;
    text-decoration: none;
    /*font-size: 2em;*/
    display: inline-block;
    font-family: Montserrat;
    /*text-transform: uppercase;*/
    padding: 0.5em 2em;
    border: 2px solid #0d6efd;
    transition: 0.02s 0.2s cubic-bezier(0.1, 0, 0.1, 1);
}

.arrow::before {
    content: "";
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    right: 100%;
    bottom: 0;
    background: #0d6efd;
    transition: 0.3s 0.2s cubic-bezier(0.1, 0, 0.1, 1), left 0.3s cubic-bezier(0.1, 0, 0.1, 1);
    z-index: -1;
}

.arrow::after {
    content: "";
    display: inline-block;
    background-image: url("https://cdn-icons-png.flaticon.com/128/109/109617.png");
    position: absolute;
    top: 0;
    left: calc(100% - 3em);
    right: 3em;
    bottom: 0;
    background-size: 1.5em;
    background-repeat: no-repeat;
    background-position: center;
    transition: right 0.3s cubic-bezier(0.1, 0, 0.1, 1);
}

.arrow:hover {
    padding: 0.5em 3.5em 0.5em 0.5em;
}

.arrow:hover::before {
    left: calc(100% - 3em);
    right: 0;
    transition: 0.3s cubic-bezier(0.1, 0, 0.1, 1), left 0.3s 0.2s cubic-bezier(0.1, 0, 0.1, 1);
}

.arrow:hover::after {
    right: 0;
    transition: right 0.3s 0.2s cubic-bezier(0.1, 0, 0.1, 1);
}

.toggle-fullscreen-btn {
    position: fixed;
    z-index: 10000;
    top: 10px;
    right: 10px;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    outline: none;
}


.toggle-fullscreen-svg {
    display: block;
    height: auto;
}

.toggle-fullscreen-svg path {
    transform-box: view-box;
    transform-origin: 12px 12px;
    fill: none;
    stroke: hsl(225, 10%, 8%);
    stroke-width: 4;
    transition: .15s;
}


.toggle-fullscreen-btn:hover path:nth-child(1),
.toggle-fullscreen-btn:focus path:nth-child(1) {
    transform: translate(-2px, -2px);
}

.toggle-fullscreen-btn:hover path:nth-child(2),
.toggle-fullscreen-btn:focus path:nth-child(2) {
    transform: translate(2px, -2px);
}

.toggle-fullscreen-btn:hover path:nth-child(3),
.toggle-fullscreen-btn:focus path:nth-child(3) {
    transform: translate(2px, 2px);
}

.toggle-fullscreen-btn:hover path:nth-child(4),
.toggle-fullscreen-btn:focus path:nth-child(4) {
    transform: translate(-2px, 2px);
}


.toggle-fullscreen-btn:not(.on) .icon-fullscreen-leave {
    display: none;
}

.toggle-fullscreen-btn.on .icon-fullscreen-enter {
    display: none;
}

.hr-tooltip {
    margin-top: 1%;
    margin-bottom: 1%;
}

@media (max-width: 991px) {
    .process {
        margin-bottom: 2%;
    }

    .process-row {
        margin-top: 2%;
        padding-right: 0 !important;
    }
}

#defend_matrix {
    --col-gap:12px;
    --tile-w:240px;
    --tile-radius:4px;
    --tile-font:12px;
    display:block;
    padding:0;
    background: transparent;
}


.d3f-col {
    width:var(--tile-w);
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.d3f-head {
    position:sticky; top:8px; z-index:2;
    margin:0 auto 12px;
    height:100px;
    display:flex; align-items:center; justify-content:center;

    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);        
    color:#fff;
    border-radius:var(--tile-radius);
    padding:8px 6px;
    font-weight:800;
    font-size:13px;
    letter-spacing:.14em;
    text-transform:uppercase;
    box-shadow:0 4px 8px rgba(0,0,0,.15);
    border: 2px solid rgba(255,255,255,0.1);
}

.d3f-tile {
    position:relative;
    border:1px solid #dee2e6;
    border-radius:var(--tile-radius);
    background: var(--bg, #fff);
    box-shadow: 0 2px 4px rgba(0,0,0,.08);
    padding:8px 10px;
    margin:6px 0;
    font-size:var(--tile-font);
    line-height:1.3;
    white-space:normal;
    word-break:break-word;
    transition: all 0.2s ease;
}

.d3f-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    border-color: #0d6efd;
}

.d3f-tile > span { 
    position:relative; 
    z-index:1; 
    font-weight: 500;
}

.d3f-tile.empty::after{ background:#f8f9fa; }
.d3f-tile.empty{ 
    color:#6c757d; 
    opacity: 0.7;
}

.d3f-tile.empty:hover {
    opacity: 1;
}

.d3f-col + .d3f-col{ 
    border-left:2px solid rgba(0,0,0,0.1); 
    padding-left:var(--col-gap); 
    margin-left: 4px;
}

.d3f-group {
    position:relative;
    border:1px solid #ced4da;
    border-radius:4px;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);         
    padding:8px 10px;
    margin:12px 0 6px;
    font-weight:700;
    font-size:12px;
    line-height:1.3;
    white-space:normal;
    box-shadow: 0 2px 4px rgba(0,0,0,.06);
    border-left: 4px solid #0d6efd;
}

.d3f-group:hover {
    background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%);
}

.expand-btn:hover {
    background: rgba(13, 110, 253, 0.1) !important;
}

.children-container {
    margin-top: 6px;
}

/* Score indicator */
.d3f-tile[data-score]:not(.empty)::before {
    content: attr(data-score);
    position: absolute;
    top: 4px;
    right: 6px;
    background: #0d6efd;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    z-index: 2;
    min-width: 18px;
    text-align: center;
}

/* nested group indentation (sub-groups) */
.d-depth-1{ 
    margin-left: 16px; 
    border-left-color: #28a745; 
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}
.d-depth-2{ 
    margin-left: 32px; 
    border-left-color: #ffc107; 
    background: linear-gradient(135deg, #fffcf0 0%, #fef3cd 100%);
}

/* Custom tabs styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin: 0 15px;
}

.nav-tabs .nav-item {
    flex: 1;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    color: #495057;
    font-weight: 500;
    padding: 1rem 2rem;
    margin-bottom: -2px;
    width: 100%;
    text-align: center;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: #0d6efd;
    color: #0d6efd;
    background: none;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: none;
    font-weight: 600;
}

.tab-content {
    min-height: 600px;
    padding-top: 20px;
}

#frame {
    min-height: 800px;
    height: 800px;
    width: 100%;
}

#mitre {
    min-height: 800px !important;
    height: 800px !important;
    width: 100% !important;
}

/* D3FEND Matrix Selection Styles */
.d3f-tile {
    position: relative;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.d3f-tile:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.d3f-tile.selected {
    border: 2px solid #2196f3 !important;
    box-shadow: 0 0 8px rgba(33, 150, 243, 0.5) !important;
    transform: scale(1.05) !important;
}

.d3f-tile::after {
    content: '';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2196f3;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.d3f-tile.selected::after {
    opacity: 1;
}

/* Button styles */
.btn-sm {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
}

.btn-primary {
    background-color: #2196f3;
    border-color: #2196f3;
    color: white;
}

.btn-primary:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}