﻿:root {
    --primary-color: #02874D;
    --primary-hover: #01683B;
    --secondary-color: #F26522;
    --secondary-hover: #D9561C;
    --bg-body: #f4f7f5;
    --bg-surface: #ffffff;
    --text-main: #2b302c;
    --text-muted: #6b7280;
    --border-color: #d1d9d4;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 10px;
}
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0; padding: 0; background-color: var(--bg-body); color: var(--text-main);
    line-height: 1.5; display: flex; min-height: 100vh;
}
.app-sidebar {
    width: 260px; background-color: var(--bg-surface); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 1000;
    border-top: 4px solid var(--primary-color);
}
.sidebar-header {
    display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color);
    width: 100%; box-sizing: border-box; background-color: var(--bg-surface); z-index: 1001;
}
.sidebar-brand {
    padding: 24px 20px; display: flex; align-items: center; justify-content: center;
    text-decoration: none; overflow: hidden; width: 100%; box-sizing: border-box;
}
.brand-logo {
    width: 100%; max-width: 200px; height: auto; object-fit: contain; transform: scale(1.4); margin: 10px 0;
}
.mobile-menu-toggle {
    display: none; background: transparent !important; border: none; font-size: 2rem; cursor: pointer;
    color: var(--text-main); padding: 5px 20px; box-shadow: none !important; width: auto; margin: 0; flex-shrink: 0;
}
.sidebar-content {
    display: flex; flex-direction: column; flex: 1; overflow-y: auto;
}
.search-container {
    padding: 15px 20px; border-bottom: 1px solid var(--border-color);
}
.search-container input {
    width: 100%; padding: 10px 15px; font-size: 0.95rem; font-family: inherit; color: var(--text-main);
    background-color: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; box-sizing: border-box; transition: all 0.2s;
}
.search-container input:focus {
    outline: none; border-color: var(--primary-color); background-color: #fff; box-shadow: 0 0 0 3px rgba(2, 135, 77, 0.15);
}
.translation-widget { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.goog-te-gadget { color: transparent !important; font-size: 0px; }
.goog-logo-link { display: none !important; }
.goog-te-combo {
    width: 100%; padding: 10px; font-size: 0.9rem; font-family: 'Inter', sans-serif;
    color: var(--text-main); background-color: #f9fafb; border: 1px solid var(--border-color);
    border-radius: 8px; outline: none; cursor: pointer; box-sizing: border-box;
}
.goog-te-combo:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(2, 135, 77, 0.15); }
.sidebar-discord { padding: 15px 20px; border-bottom: 1px solid var(--border-color); }
.sidebar-discord a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background-color: #5865F2; color: white !important; text-decoration: none !important;
    padding: 12px 15px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
    transition: background-color 0.2s, transform 0.1s;
}
.sidebar-discord a:hover { background-color: #4752C4; }
.skiptranslate iframe, .goog-te-banner-frame { display: none !important; }
body { top: 0px !important; position: static !important; }
#goog-gt-tt, .goog-te-balloon-frame, div[id^="goog-gt-"] { display: none !important; }
.goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }
.sidebar-nav { padding: 20px 10px; display: flex; flex-direction: column; gap: 5px; }
.sidebar-nav details { margin-bottom: 5px; }
.sidebar-nav summary {
    cursor: pointer; padding: 12px 16px; color: var(--text-main); font-weight: 600;
    list-style: none; outline: none; border-radius: 8px; transition: background 0.2s; position: relative;
}
.sidebar-nav summary::-webkit-details-marker { display: none; }
.sidebar-nav summary:hover { background-color: var(--bg-body); }
.sidebar-nav summary::after {
    content: ""; position: absolute; right: 16px; top: calc(50% - 2px); width: 6px; height: 6px;
    border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg); transition: transform 0.2s ease-in-out;
}
.sidebar-nav details[open] summary::after { transform: translateY(-50%) rotate(-135deg); top: calc(50% + 2px); }
.sidebar-nav > a {
    padding: 12px 16px; color: var(--text-main); font-weight: 600; text-decoration: none;
    border-radius: 8px; transition: all 0.2s; display: block; margin-bottom: 5px;
}
.sidebar-nav > a:hover { background-color: var(--bg-body); }
.sidebar-nav > a.active { background-color: rgba(2, 135, 77, 0.1); color: var(--primary-color); border-left: 3px solid var(--primary-color); }
.sidebar-nav details a {
    padding: 10px 16px 10px 30px; color: var(--text-muted); text-decoration: none;
    font-weight: 500; border-radius: 8px; transition: all 0.2s; display: flex; justify-content: space-between; align-items: center;
}
.sidebar-nav details a:hover { background-color: var(--bg-body); color: var(--text-main); }
.sidebar-nav details a.active { background-color: rgba(2, 135, 77, 0.1); color: var(--primary-color); font-weight: 600; border-left: 3px solid var(--primary-color); }
.star-btn { color: #d1d9d4; font-size: 1.2rem; cursor: pointer; transition: color 0.2s, transform 0.2s; padding: 0 5px; }
.star-btn:hover { color: var(--primary-color); transform: scale(1.2); }
.star-btn.active { color: var(--primary-color); }
.app-content { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.container { padding: 40px 30px; max-width: 1000px; margin: 0 auto; flex: 1; width: 100%; box-sizing: border-box; }
h1 { font-size: 2.25rem; font-weight: 700; color: var(--text-main); margin-top: 0; margin-bottom: 8px; letter-spacing: -0.025em; border-bottom: 2px solid var(--primary-color); display: inline-block; padding-bottom: 5px; }
p.subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; margin-top: 10px; }
.welcome-message {
    background-color: rgba(2, 135, 77, 0.05); border-left: 4px solid var(--primary-color);
    padding: 15px 20px; border-radius: 8px; margin-bottom: 30px; font-size: 0.95rem; color: var(--text-main); line-height: 1.6;
}
.welcome-message p { margin: 0; }
.home-grid { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.home-grid > a { flex: 1; min-width: 280px; display: flex; }
.tool-card {
    background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius);
    padding: 24px; cursor: pointer; transition: all 0.3s ease; box-shadow: var(--shadow-sm);
    margin-bottom: 20px; position: relative; overflow: hidden; width: 100%; box-sizing: border-box; border-top: 4px solid var(--primary-color);
}
.tool-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--secondary-color); transform: scaleY(0); transition: transform 0.3s ease; transform-origin: bottom;
}
.tool-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.tool-card:hover::before { transform: scaleY(1); }
.tool-card h2 { margin-top: 0; color: var(--primary-color); font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.tool-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.widget-container {
    margin-top: 40px; background-color: var(--bg-surface); border: 1px solid var(--border-color);
    border-radius: var(--radius); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); border-top: 4px solid var(--primary-color);
}
.widget-container h2 { color: var(--primary-color); font-size: 1.25rem; margin-top: 0; margin-bottom: 8px; }
.widget-container p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }
.iframe-wrapper { display: flex; justify-content: center; }
.iframe-wrapper iframe { max-width: 100%; border-radius: 8px; box-shadow: var(--shadow-md); }
.main-layout { display: flex; gap: 30px; align-items: flex-start; }
.controls-panel {
    flex: 1; background-color: var(--bg-surface); padding: 30px; border-radius: var(--radius);
    box-shadow: var(--shadow-md); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color);
}
#cachesListContainer > div {
    background-color: #f9fafb; border: 1px solid var(--border-color); border-left: 5px solid var(--primary-color);
    padding: 20px; margin-bottom: 20px; border-radius: 8px; box-shadow: var(--shadow-sm); position: relative; transition: box-shadow 0.2s ease;
}
#cachesListContainer > div:hover { box-shadow: var(--shadow-md); }
#cachesListContainer > div:nth-child(even) { background-color: #ffffff; border-left: 5px solid var(--secondary-color); }
#cachesListContainer > div h3 { margin-top: 0; margin-bottom: 15px; color: var(--text-main); font-size: 1.1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; }
.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.emergency-toggle { background-color: #ffebee; padding: 15px; border-radius: 8px; border: 1px solid #ffcdd2; margin-bottom: 25px; border-left: 4px solid #d32f2f; }
.checkbox-group { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; }
.sub-checkbox { margin-left: 25px; margin-top: -10px; }
.checkbox-group input { width: auto; accent-color: var(--primary-color); }
label { display: block; font-weight: 500; color: var(--text-main); margin-bottom: 8px; font-size: 0.95rem; }
.checkbox-group label { margin-bottom: 0; }
input[type="text"], input[type="number"], input[type="file"], input[type="url"], input[type="color"], select {
    width: 100%; padding: 12px 16px; font-size: 1rem; font-family: inherit; color: var(--text-main);
    background-color: #f9fafb; border: 1px solid var(--border-color); border-radius: 8px; box-sizing: border-box; transition: all 0.2s;
}
input[type="color"] { height: 45px; padding: 5px; cursor: pointer; }
input[type="text"]:focus, input[type="number"]:focus, input[type="url"]:focus, input[type="color"]:focus, select:focus { outline: none; border-color: var(--primary-color); background-color: #fff; box-shadow: 0 0 0 3px rgba(2, 135, 77, 0.15); }
button {
    width: 100%; background-color: var(--primary-color); color: white; border: none; padding: 14px 20px;
    font-size: 1rem; font-weight: 600; font-family: inherit; border-radius: 8px; cursor: pointer; transition: background-color 0.2s, transform 0.1s;
    margin-top: 10px; box-shadow: var(--shadow-sm);
}
button:hover { background-color: var(--primary-hover); box-shadow: var(--shadow-md); }
button:active { transform: scale(0.98); }
.btn-secondary { background-color: var(--secondary-color) !important; color: white !important; }
.btn-secondary:hover { background-color: var(--secondary-hover) !important; }
.btn-outline { background-color: var(--bg-body) !important; color: var(--text-main) !important; border: 1px solid var(--border-color) !important; box-shadow: none !important; }
.btn-outline:hover { background-color: #e2e8f0 !important; }
.site-footer {
    text-align: center; padding: 30px 20px; background-color: var(--bg-surface); border-top: 1px solid var(--border-color);
    color: var(--text-muted); font-size: 0.95rem; margin-top: auto;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--secondary-color); text-decoration: underline; }
.site-footer .disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-top: 15px; line-height: 1.4; opacity: 0.8; }
.site-footer .disclaimer a { color: var(--text-muted); font-weight: normal; text-decoration: underline; }
.legal-content h2 { font-size: 1.25rem; color: var(--primary-color); margin-top: 30px; margin-bottom: 10px; }
.legal-content p, .legal-content ul { margin-bottom: 15px; color: var(--text-main); }
.legal-content ul { padding-left: 20px; }
#render-area { display: none; }
.qrcode-tool-layout { display: flex; gap: 30px; align-items: flex-start; margin-top: 20px; }
.settings-panel { flex: 1; min-width: 350px; }
.preview-panel { flex: 1; min-width: 400px; text-align: center; }
.qrcode-wrapper { background: var(--bg-surface); padding: 20px; border-radius: var(--radius); }
.qrcode-wrapper.preview-mode { border: 2px dashed var(--border-color); display: inline-block; margin-top: 20px; }
.qrcode-title { text-align: center; width: 100%; }
.qrcode-canvas canvas { max-width: 100%; height: auto !important; }
.action-buttons { margin-top: 25px; display: flex; gap: 15px; }

@media (max-width: 900px) {
    .qrcode-tool-layout { flex-direction: column; }
    .settings-panel, .preview-panel { width: 100%; min-width: 0; position: static !important; }
    .main-layout { flex-direction: column !important; }
}
@media (max-width: 768px) {
    body { flex-direction: column; }
    .app-sidebar { width: 100%; height: auto; position: sticky; border-right: none; border-bottom: none; }
    .sidebar-header { padding: 10px 0; }
    .sidebar-brand { padding: 5px 20px; width: auto; justify-content: flex-start; }
    .brand-logo { max-width: 150px; transform: scale(1.1); margin: 0; }
    .mobile-menu-toggle { display: block; }
    .sidebar-content {
        display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bg-surface);
        box-shadow: var(--shadow-md); max-height: calc(100vh - 70px); overflow-y: auto; flex-direction: column; border-bottom: 1px solid var(--border-color);
    }
    .sidebar-content.active { display: flex; }
    .main-layout { flex-direction: column; }
}