body {
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#terminal-header {
    background-color: #000;
    margin: 20px 20px 0 20px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
}

#terminal-header pre {
    margin: 0;
    color: #fff;
    font-family: 'Consolas', monospace;
}

#terminal-container {
    flex: 1;
    background-color: #000;
    margin: 0 20px 20px 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
}

.terminal {
    flex: 1;
    padding: 10px;
}

.xterm {
    height: 100%;
}

.xterm-viewport {
    overflow-y: hidden !important;
}

.xterm-screen {
    padding: 5px;
    height: 100% !important;
}

/* Webkit (Chrome, Safari) için scrollbar stilleri */
.xterm .xterm-viewport::-webkit-scrollbar {
    width: 8px;
}

.xterm .xterm-viewport::-webkit-scrollbar-track {
    background: #333;
}

.xterm .xterm-viewport::-webkit-scrollbar-thumb {
    background-color: #666;
    border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        height: 100vh; /* Mobil butonlar için alanı azalt */
    }

    #terminal-header {
        margin: 10px 10px 0 10px;
        padding: 8px;
        padding-bottom: 20px;
        height: auto;
        min-height: 60px;
    }

    #terminal-container {
        margin: 0 10px 10px 10px;
        height: calc(100vh - 140px); /* Header ve butonlar için alan bırak */
    }

    .terminal {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    #terminal-header {
        margin: 5px 5px 0 5px;
        padding: 6px;
        padding-bottom: 15px;
        min-height: 50px;
    }

    #terminal-container {
        margin-bottom: 60px;
    }

    .terminal {
        padding: 5px;
    }
}

/* Mobil cihazlar için komut butonları */
.mobile-only {
    display: none;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}

@media (max-width: 768px) {
    .mobile-only {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 8px;
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 40px;
        z-index: 1000;
    }

    .mobile-only button {
        background-color: #333;
        color: #fff;
        border: none;
        padding: 6px 10px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 12px;
        min-width: 60px;
        height: 30px;
        transition: background-color 0.2s;
        white-space: nowrap;
    }

    .mobile-only button:hover,
    .mobile-only button:active {
        background-color: #444;
    }
}
