@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap&subset=latin-ext');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300..800;1,300..800&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap&subset=latin-ext');

* {
    box-sizing: border-box;
    outline: none;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

html {
    font-size: 15px;
    background-color: #E7ECEF;
    font-family: "Roboto Condensed", "Open Sans", sans-serif;
}

body {
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: row;
    padding: 0 0.5rem;
}

.container>section.left-section,
.header .logo {
    width: 16rem;
    align-content: start;
}

.flex-1 {
    flex: 1;
}

.header .logo {
    padding: 1rem 0;
    padding-left: 1rem;
}

.header .logo img {
    width: 150px;
    object-fit: cover;
}

.container>section.main-section {
    flex: 1;
}

.header {
    display: flex;
    height: 7rem;
    margin-bottom: 1rem;
    border-bottom: .067rem solid #eeeeee;
    box-shadow: 0 2px 7px #868686;
}

.top-menu {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 5px;
    box-sizing: border-box;
    z-index: 10;
}

.project-actions {
    padding: 12px;
}

.scenario-list {
    display: flex;
    flex-direction: row;
}

.project-actions button {
    color: #6479a3;
    background-color: #ffffff;
    font-size: 19px;
    border: 1px solid #505050;
    border-radius: 8px;
    height: 100%;
    width: 80px;
    cursor: pointer
}

.project-actions button:hover {
    color: #ffffff;
    background-color: #6479a3;
}

.scenario-tools {
    font-size: .8rem;
    overflow: hidden;
    border: 0;
    padding: 0;
}

.scenario-tools legend {
    padding: 2px 5px 0 0;
    color: #ffffff;
}

.scenario-tools ul {
    display: flex;
    padding: .2rem;
    border-radius: 8px;
}

.scenario-tools ul li {
    width: 3.8rem;
    text-align: center;
    border-radius: 8px;
    margin: 0 2px;
    background-color: #ffffff;
    padding: 2px;
}

.scenario-tools ul li .box {
    color: #ffffff;
    width: 100%;
    z-index: 1000;
    text-align: center;
    cursor: pointer;
    padding: 1rem 0;
    font-size: 1.5rem;
    border-radius: 8px;
}

.scenario-tools ul li .title {
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scenario-tools ul li .title span {
    font-size: .6rem;
    word-wrap: break-word;
}

.designer-area {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    overflow-y: scroll;
    overflow-x: scroll;
    height: calc(100vh - 7rem - 65px);
    border: 1px solid #4E8098;
    border-top: 4px solid #4E8098;
}

.designer-area {
    user-select: none;
    -webkit-user-select: none;
    /* Safari desteği için */
    -moz-user-select: none;
    /* Firefox desteği için */
    -ms-user-select: none;
    /* IE/Edge desteği için */
}

.box-item input,
.box-item textarea {
    user-select: text;
}

.designer-area .drawing-area {
    flex: 1;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.box-item {
    width: 14rem;
    position: absolute;
    border-radius: 6px;
    z-index: 1000;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    cursor: pointer;
}

.box-item::before {
    content: "";
    display: none;
    position: absolute;
    top: -8px;
    left: 100px;
    width: 12px;
    background-color: #999999;
    height: 8px;
    clip-path: ellipse(50% 60% at 50% 116%);
}

.box-item.has-input::before {
    display: block;
}

.box-item .box-container {
    align-items: center;
    border-radius: 6px;
    box-shadow: 2px 3px 6px 0px #aaaaaa;
}

.box-item.selected {
    z-index: 1000;
}

.box-item.selected .box-container {
    -webkit-box-shadow: 0px 0px 0px 3px rgba(199, 199, 199, 1);
    -moz-box-shadow: 0px 0px 0px 3px rgba(199, 199, 199, 1);
    box-shadow: 0px 0px 0px 3px rgba(199, 199, 199, 1);
}

.box-item .box-container .box-info {
    display: flex;
}

.box-item .box-icon {
    width: 40px;
    padding: 8px;
}

.box-item .box-icon i {
    font-size: 20px;
    color: white;
}

.box-item .box-content {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 0;
}

.box-item .box-content .box-title {
    font-size: 15px;
}

.box-item .box-content .box-value {
    font-size: 11px;
    font-style: italic;
}

.box-item .box-content hr {
    height: 1px;
    background-color: #ffffff;
    border: none;
    width: 93%;
    margin: 2px 0;
}

.box-item .box-connector-container {
    display: flex;
    justify-content: space-around;
}

.box-item .connection-labels {
    display: flex;
    background-color: #ffffff;
    justify-content: space-around;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.box-item .connection-labels.no-label {
    background-color: inherit;
    height: 6px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.box-item .connection-labels div {
    flex: 1;
    text-align: center;
    padding: 4px 0 1px;
    font-size: 12px;
}

.box-item .connection-labels div:not(:last-child) {
    border-right: 1px solid #ccc;
}

.box-item .box-connector {
    cursor: pointer;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    border-top-color: #808080;
    border-width: 8px;
    bottom: -16px;
}


.box-item .box-actions {
    display: none;
    align-items: top;
    padding: 6px 6px 0 0;
}

.box-item.selected .box-actions {
    display: flex;
}

.box-item .box-actions i.fa {
    color: #ffffff;
}

.scenario-tabs-container {
    display: flex;
    padding: 5px 10px 0 8px;
    gap: 5px;
}

.scenario-tab {
    background: #e0e0e0;
    padding: 8px 15px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 15px;
    border: 1px solid transparent;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.scenario-tab._active {
    background-color: #4E8098;
    border-color: #4E8098;
    color: #ffffff;
    margin-bottom: -1px;
}

.scenario-tab i {
    font-size: 16px;
    color: #343434;
}

.scenario-tab i:hover {
    color: #e74c3c;
}

svg path {
    stroke-width: 3;
    stroke: #AAAAAA;
    fill: none;
}

svg path._guideline {
    stroke: #ff8800;
}

.drawing-area g.connection-group {
    cursor: pointer;
}

.drawing-area text {
    cursor: pointer;
    transition: all 0.2s ease;
    paint-order: stroke;
    stroke: transparent;
    stroke-width: 2px;
    stroke: rgba(165, 165, 165, 0.459);
}

.drawing-area text:hover {
    stroke: white;
    stroke-width: 8px;
    stroke-linejoin: round;
    filter: drop-shadow(0px 0px 3px rgba(0, 0, 0, 0.3));
    fill: #2980b9;
}

.drawing-area path {
    stroke: #AAAAAA;
    stroke-width: 3;
    transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.drawing-area g.active-link path {
    stroke-width: 3 !important;
}

.drawing-area g.connection-group:hover path {
    stroke-width: 5px !important;
}

.drawing-area g.connection-group:hover path {
    filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.connection-group:hover .path-label {
    fill: #2980b9;
    font-weight: bold;
    cursor: pointer;
}

/* Pavyon mode ON :D */
.drawing-area g.connection-group.active-link:nth-of-type(5n+1) path {
    stroke: #3498db !important;
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+1) {
    filter: drop-shadow(0 0 5px rgba(52, 152, 219, 0.7));
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+2) path {
    stroke: #2ecc71 !important;
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+2) {
    filter: drop-shadow(0 0 5px rgba(46, 204, 113, 0.7));
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+3) path {
    stroke: #f39c12 !important;
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+3) {
    filter: drop-shadow(0 0 5px rgba(243, 156, 18, 0.7));
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+4) path {
    stroke: #9b59b6 !important;
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+4) {
    filter: drop-shadow(0 0 5px rgba(155, 89, 182, 0.7));
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+5) path {
    stroke: #e74c3c !important;
}

.drawing-area g.connection-group.active-link:nth-of-type(5n+5) {
    filter: drop-shadow(0 0 5px rgba(231, 76, 60, 0.7));
}



.designer-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.designer-modal {
    background: white;
    border-radius: 8px;
    width: 600px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px;
    background: #f8f9fa;
    text-align: right;
    border-top: 1px solid #ddd;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.modal-close {
    color: #8f8f8f;
    font-size: 30px;
    position: relative;
    top: -20px;
    cursor: pointer;
}

.modal-close:hover {
    color: #000000;
}


.box-row-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: rgba(255, 255, 255);
}

.box-row-item {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.connector-right {
    position: absolute !important;
    right: -24px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg) !important;
    width: 12px;
    height: 12px;
    border: 2px solid #333;
    z-index: 5;
}

.row-label {
    font-size: 12px;
    pointer-events: none;
}

.sub-menu-actions button {
    cursor: pointer;
    font-family: 'Roboto Condensed', Courier, monospace;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid #4E8098;
    background-color: #ffffff;
    border-radius: 4px;
}

.sub-menu-actions button:hover {
    color: #ffffff;
    background-color: #4E8098;
}