﻿/* Genel Düzen ve Görünüm */
body {
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    display: flex;
    height: 100vh;
    background-color: #34495e;
    color: #ecf0f1;
}

#control-panel {
    width: 450px;
    background-color: #2c3e50;
    padding: 15px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    user-select: none;
    display: flex;
    flex-direction: column;
}

#device-and-tool-area {
    border-bottom: 2px solid #34495e;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.device-icon, .tool-button {
    padding: 8px;
    margin-bottom: 6px;
    background-color: #34495e;
    border-radius: 4px;
    border: 1px solid #1abc9c;
    display: inline-block;
    width: 30%;
    margin-right: 2%;
    font-size: 13px;
    cursor: pointer;
}

    .device-icon:hover, .tool-button:hover {
        background-color: #1abc9c;
        color: #2c3e50;
    }

    .tool-button.active-tool {
        background-color: #f39c12 !important;
        border-color: #e74c3c !important;
        color: #2c3e50;
        font-weight: bold;
    }

.panel-header {
    color: #1abc9c;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 16px;
}

#main-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

#workspace {
    flex-grow: 1;
    background-color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.network-device {
    position: absolute;
    width: 80px;
    height: 70px;
    text-align: center;
    padding: 5px;
    border: 3px solid #2980b9;
    background-color: white;
    border-radius: 8px;
    cursor: move;
    box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
    color: #2c3e50;
    transition: all 0.3s ease;
    z-index: 10;
}

    .network-device::before {
        content: attr(data-type-label);
        display: block;
        font-size: 20px;
        margin-bottom: 3px;
    }

.selected-device {
    border-color: #f39c12 !important;
}

#connection-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#console-panel {
    height: 350px;
    background-color: #000;
    color: #1aff00;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
}

#cli-output {
    flex-grow: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-bottom: 5px;
    font-size: 13px;
}

#cli-input {
    background-color: #333;
    color: #1aff00;
    border: 1px solid #1aff00;
    padding: 5px;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}
/* MODAL STİLLERİ */
#custom-alert-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

#alert-content {
    background-color: #2c3e50;
    margin: auto;
    padding: 25px;
    border: 4px solid #1abc9c;
    width: 90%;
    max-width: 550px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    color: #ecf0f1;
    text-align: center;
    animation: fadeIn 0.3s;
}

    #alert-content h4 {
        color: #f39c12;
        margin-top: 0;
    }

#alert-message {
    margin-bottom: 20px;
    font-size: 14px;
    white-space: pre-wrap;
    text-align: left;
}

.code-block {
    background-color: #1e2b38;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    text-align: left;
    border: 1px solid #34495e;
}

#alert-ok-btn {
    background-color: #1abc9c;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* YENİ: Splash Screen Stilleri */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    flex-direction: column;
    color: #ecf0f1;
    font-weight: bold; /* Sadece başlık için kalınlık tutuldu */
    animation: fadeOut 1s ease-out 2s forwards;
}

    #splash-screen span {
        font-size: 3em; /* Ana başlık boyutu */
        font-weight: 700;
        text-transform: none; /* Büyük harf zorlamasını engelle */
    }

    #splash-screen p {
        margin-top: 15px;
        font-size: 1.5em; /* Yükleniyor yazısının boyutu */
        opacity: 0.9;
        font-weight: 400; /* Normal kalınlıkta */
        text-transform: none; /* Büyük harf zorlamasını engelle */
    }

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}
