/* css/style.css
   Online Text Editor — basic modern responsive styling
*/

.ote-container {
    border: 1px solid #e6e9ee;
    border-radius: 10px;
    max-width: 900px;
    margin: 1rem auto;
    background: #fff;
    box-shadow: 0 6px 20px rgba(18, 24, 50, 0.04);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.ote-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f1f5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.ote-group {
    display: flex;
    gap: 6px;
    align-items: center;
}

.ote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    padding: 8px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease, transform .06s ease;
    color: #333;
    font-size: 15px;
}

.ote-btn i { font-size: 16px; }

.ote-btn:hover {
    background: #f4f6fb;
    transform: translateY(-1px);
}

.ote-select {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e8eaf1;
    font-size: 14px;
    min-height: 38px;
    background: white;
    cursor: pointer;
}

.ote-file-label {
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding: 8px;
    border-radius:8px;
    border:1px solid #e8eaf1;
    cursor:pointer;
    min-height: 38px;
}

.ote-file-label input[type="file"] {
    display:none;
}

.ote-editor-wrap {
    padding: 14px;
}

.ote-editor {
    min-height: 220px;
    max-height: 60vh;
    overflow: auto;
    padding: 14px;
    border-radius: 8px;
    border: 1px dashed #eef0f6;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    outline: none;
}

.ote-editor:empty:before {
    content: attr(data-placeholder);
    color: #9aa0b4;
    pointer-events: none;
}

.ote-footer {
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid #f0f1f5;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.copy-all {
    background: linear-gradient(90deg,#3b82f6,#6366f1);
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

.copy-all:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(99,102,241,0.14); }

.ote-status {
    color: #58607a;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 720px) {
    .ote-toolbar { gap: 6px; padding: 8px; }
    .ote-select { font-size: 13px; }
    .ote-btn { padding: 7px; min-width: 34px; min-height: 34px; }
    .ote-editor { min-height: 180px; font-size: 15px; }
}
