body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
}

.tabs-toggle{
    display: flex;
    flex-direction: row;
    width: 100%; 
}
.container {
    display: flex;
    width: 100%;
}


.file-manager {
    width: 20%;
    min-width: 200px;
    max-width: 80%;

    background: #2c3e50;
    color: white;
    padding: 10px;
    overflow-y: auto;
}

.file-manager h2 {
    margin-top: 0;
}

.file-manager ul {
    list-style-type: none;
    padding: 0;
}

.file-manager ul li {
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-manager ul li a {
    color: white;
    text-decoration: none;
    flex-grow: 1;
}

.file-manager ul li a:hover {
    text-decoration: underline;
}

.file-manager ul li button {
    margin-left: 5px;
    padding: 3px 6px;
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
}

.file-manager ul li button:hover {
    background: #c0392b;
}

.actions {
    margin-bottom: 10px;
}

.actions button {
    margin-right: 5px;
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

.actions button:hover {
    background: #2980b9;
}

.actions input {
    padding: 5px;
    width: 60px;
}

.editor {
    width: 80%;
    background: #ecf0f1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    background: #bdc3c7;
    padding: 5px;
    width: 100%;
}

.tab {
    padding: 5px 10px;
    margin-right: 5px;
    background: #7f8c8d;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.tab.active {
    background: #3498db;
}

.tab .close {
    margin-left: 5px;
    cursor: pointer;
}


.editor-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.editor-actions button {
    padding: 5px 10px;
    background: #27ae60;
    color: white;
    border: none;
    cursor: pointer;
    margin-right: 5px;
}

.editor-actions button:hover {
    background: #219653;
}

#word-count {
    margin-left: 10px;
    color: #2c3e50;
}


/* Menu Pencarian */
.search {
    margin-bottom: 10px;
}

.search input {
    padding: 5px;
    width: 70%;
    border: 1px solid #ccc;
}

.search button {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

.search button:hover {
    background: #2980b9;
}

/* Hasil Pencarian */
#search-results {
    margin-top: 10px;
}

#search-results .result {
    padding: 5px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

#search-results .result:hover {
    background: #f0f0f0;
}

/* Gaya untuk container actions */
.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

/* Gaya untuk tombol */
.actions button {
    padding: 8px 12px;
    background-color:#3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.actions button:hover {
    background-color: #2980b9;
}

/* Gaya untuk dropdown sort */
.actions select {
    padding: 8px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.actions select:hover {
    background-color: #27ae60;
}

/* Gaya untuk input ukuran font */
.actions input[type="number"] {
    padding: 8px 12px;
    width: 60px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.actions input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
}

/* Gaya untuk tombol aktif */
.actions button.active {
    background-color: #e67e22;
}

.actions button.active:hover {
    background-color: #d35400;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    font-size: 14px;
    font-weight: 500;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Warna Notifikasi */
.notification.success {
    background-color: #4CAF50;
    border-left: 5px solid #388E3C;
}

.notification.error {
    background-color: #f44336;
    border-left: 5px solid #d32f2f;
}

.notification.warning {
    background-color: #FF9800;
    border-left: 5px solid #F57C00;
}

.notification.info {
    background-color: #2196F3;
    border-left: 5px solid #1976D2;
}

/* Animasi Keluar */
.notification.hide {
    opacity: 0;
    transform: translateX(100%);
}

#search-box {
    position: absolute;
    right: 20px;
    top: 50px;
    z-index: 1000;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#search-box input[type="text"] {
    padding: 5px;
    margin-right: 5px;
    width: 200px;
}

#search-box button {
    padding: 5px 10px;
    margin-right: 5px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
}

#search-box button:hover {
    background: #2980b9;
}

#search-status {
    color: #666;
    font-size: 12px;
}

/* Icon buttons styling */
.actions button, 
.file-manager ul li button,
.editor-actions button {
    font-size: 16px;
    padding: 4px 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    transition: transform 0.2s;
}

.actions button:hover, 
.file-manager ul li button:hover,
.editor-actions button:hover {
    transform: scale(1.2);
    background: none;
}

.file-manager ul li button {
    color: #e74c3c;
}

.file-manager ul li button:hover {
    color: #c0392b;
}

/* Style for select and input to match icon buttons */
.actions select, 
.actions input {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #3498db;
    background-color: #2c3e50;
    color: white;
}

.actions select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 25px;
}

/* Search box icons */
#search-box button {
    padding: 5px 10px;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

#search-box button:hover {
    background: #2980b9;
}

.file-info-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

#file-path {
    flex-grow: 1;
}

#app-info {
    margin-left: 20px;
    white-space: nowrap;
}

.editor-actions .close-all {
    margin-left: auto;
    padding: 5px 10px;
    border: none;
    color: white;
    background: #e74c3c;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.editor-actions .close-all:hover {
    background: #c0392b;
}

/* Toggle and Resizable Styles */
.file-manager {
    transition: all 0.3s ease;
    position: relative;
    resize: horizontal;
    overflow: auto;
    min-width: 200px;
    max-width: 80%;
}

.file-manager.hidden {
    width: 0 !important;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    resize: none;
}

.editor.expanded {
    width: 100% !important;
}

.container {
    position: relative;
}

.resize-handle {
    width: 5px;
    height: 100%;
    background: #7f8c8d;
    position: absolute;
    left: 20%;
    top: 0;
    cursor: col-resize;
    z-index: 10;
    transition: background 0.2s;
}

.resize-handle:hover {
    background: #3498db;
}

.file-manager.hidden ~ .resize-handle {
    display: none;
}

/* Add these to style.css */
body.dark-mode {
    background-color: #333;
    color: #eee;
}

body.dark-mode .editor {
    background-color: #444;
}

body.dark-mode .content {
    background-color: #444;
    color: #eee;
}

body.dark-mode .tabs {
    background-color: #555;
}

body.dark-mode .tab {
    background-color: #666;
    color: #eee;
}

body.dark-mode .tab.active {
    background-color: #3498db;
}

body.dark-mode .editor-actions button {
    color: #eee;
}

body.dark-mode .editor-actions button:hover {
    background-color: #666;
}

body.dark-mode .editor-actions .close-all {
    background-color: #e74c3c;
}

body.dark-mode .editor-actions .close-all:hover {
    background-color: #c0392b;
}

body.dark-mode #text-count {
    color: #eee;
}

body.dark-mode #wrap-text {
    filter: invert(1);
}

body.dark-mode .file-info-wrapper {
    color: #bbb;
}

/* Adjust editor dark mode colors */
body.dark-mode .ace-twilight .ace_gutter {
    background: #2d2d2d;
    color: #909090;
}

body.dark-mode .ace-twilight .ace_print-margin {
    background: #4d4d4d;
}

body.dark-mode .ace-twilight {
    background-color: #2d2d2d;
    color: #ffffff;
}
/* Tambahkan di bagian bawah style.css */
/* Tambahkan di bagian bawah style.css */
/* Tambahkan di bagian bawah style.css */
/* Tambahkan di bagian bawah style.css */
@media screen and (max-height: 700px) {
    body {
        height: calc(100vh - 140px); /* Mengurangi tinggi untuk browser UI */
        min-height: calc(100vh - 140px);
        overflow: hidden;
        margin: 0;
        padding: 0;
        position: fixed;
        width: 100%;
    }
    
    .container {
        height: 100%;
        overflow: hidden;
    }
    
    .file-manager {
        height: 100%;
        overflow-y: auto; /* Biarkan scroll vertikal jika konten panjang */
    }
    
    .editor {
        height: 100%;
        overflow: hidden;
    }
    
    .content {
        height: calc(100% - 80px); /* Ruang untuk tab dan toolbar */
        overflow: hidden;
    }
    
    #editor {
        height: 100% !important;
        overflow: auto !important; /* Biarkan scroll hanya di editor */
    }
}

