/* converter.css */
:root {
    --zinc-950: #09090b;
    --zinc-900: #18181b;
    --zinc-800: #27272a;
    --zinc-700: #3f3f46;
    --zinc-400: #a1a1aa;
    --blue-500: #3b82f6;
}

.white-logo { color: #fff !important; text-decoration: none; font-weight: 800; }

.converter-section { 
    max-width: 900px; 
    margin: 40px auto; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

/* --- Główny pasek wyszukiwania --- */
.main-bar {
    background: #000; 
    border: 1px solid #1a1a1a; 
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    padding: 10px 15px; 
    gap: 15px;
}

.input-wrapper { flex: 1; }
#urlInput {
    width: 100%; 
    background: transparent; 
    border: none; 
    color: #fff;
    font-size: 15px; 
    outline: none;
}

.bar-separator { color: #444; font-weight: bold; }

/* --- Dropdown Agenta --- */
.agent-dropdown {
    position: relative; 
    background: #0a0a0a; 
    border: 1px solid #222;
    border-radius: 10px; 
    min-width: 150px; 
    cursor: pointer;
}

.agent-selected { display: flex; align-items: center; padding: 8px 12px; gap: 10px; color: #fff; }
.agent-logo-img, .list-agent-logo { width: 20px; height: 20px; border-radius: 50%; background: #fff; }

.agent-list {
    display: none; 
    position: absolute; 
    top: 120%; 
    left: 0; 
    width: 100%;
    background: #0a0a0a; 
    border: 1px solid #222; 
    border-radius: 10px; 
    z-index: 999;
}
.agent-list.show { display: block; }
.agent-item { padding: 10px; display: flex; align-items: center; gap: 10px; color: #ccc; }
.agent-item:hover { background: #1a1a1a; color: #fff; }

.btn-primary {
    background: #fff; 
    color: #000; 
    border: none; 
    padding: 10px 20px;
    border-radius: 8px; 
    font-weight: 700; 
    cursor: pointer;
}

/* --- PANEL WYNIKU (Ten nowy, w jednej linii) --- */
.result-panel {
    margin-top: 30px;
    background: var(--zinc-950);
    border: 1px solid var(--zinc-800);
    border-radius: 12px;
    padding: 15px 20px;
}

.result-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-icon {
    background: var(--zinc-900);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-500);
    font-size: 18px;
}

.result-label {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
}

.result-input-wrapper {
    flex: 1;
    overflow: hidden;
}

#resultUrl {
    width: 100%;
    background: transparent;
    border: none;
    color: #71717a;
    font-size: 14px;
    outline: none;
    text-overflow: ellipsis;
}

.btn-copy-new {
    background: #000;
    color: #fff;
    border: 1px solid var(--zinc-800);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}

.btn-copy-new:hover {
    background: var(--zinc-900);
    border-color: var(--zinc-700);
}

/* --- SIATKA KART (3 kolumny w jednej linii) --- */
.qc-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    transition: var(--transition);
    cursor: default;
}

.qc-card:hover {
    transform: translateY(-5px);
    background: #161616;
    border-color: #444;
}

.qc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.blue-icon { background: rgba(59, 130, 246, 0.1); color: var(--blue-500); }
.green-icon { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.purple-icon { background: rgba(168, 85, 247, 0.1); color: #a855f7; }

.qc-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: white;
}

.qc-card p {
    color: var(--zinc-400);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Nawigacja i Dropdowny ustawień --- */
.nav-icons { display: flex; align-items: center; gap: 15px; }
.settings-container { position: relative; }

.settings-dropdown {
    display: none; 
    position: absolute;
    top: 45px;
    right: 0;
    width: 220px;
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 12px;
    z-index: 9999;
}

.settings-dropdown.active { display: block; }

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.setting-label { color: #888; font-size: 0.85rem; font-weight: 500; }

.opt-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opt-btn.active { background: var(--blue-500); border-color: var(--blue-500); }

.row-left { display: flex; align-items: center; gap: 12px; }
.row-icon { color: #a1a1aa; width: 16px; text-align: center; }

/* Waluty i Flagi */
.currency-list { display: none; margin-top: 5px; padding-left: 10px; }
.currency-list.show { display: block; }
.curr-option {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    border-radius: 8px; cursor: pointer; color: var(--zinc-400); font-size: 0.9rem;
}
.curr-option:hover { background: #1a1a1a; color: white; }

.flag-icon {
    width: 24px; height: 24px; border-radius: 50%; object-fit: cover;
    opacity: 0.5; border: 2px solid transparent; transition: 0.2s;
}
.flag-icon.active { opacity: 1; border-color: white; }

/* Narzędzia */
#toolsDropdown .settings-row {
    display: flex; align-items: center; padding: 12px; border-radius: 8px; transition: 0.2s;
}
#toolsDropdown .settings-row:hover { background: #1a1a1a; cursor: pointer; }
#toolsBtn { color: white; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* Responsywność dla kart */
@media (max-width: 768px) {
    .qc-grid { grid-template-columns: 1fr; }
    .result-container { flex-wrap: wrap; }
    .result-input-wrapper { width: 100%; order: 3; }
}