/* Všeobecné */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f8f9fa;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/* Nadpis */
h1 {
    font-weight: 800;
    font-size: 2.5rem;
    color: #1a1a2e;
}

/* Karty */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

/* Tlačidlo */
.btn-success {
    background: linear-gradient(135deg, #198754, #20c997);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25,135,84,0.4);
}

/* Formulár */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    transition: border-color 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25,135,84,0.1);
}

/* Tabuľka */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
    color: #fff;
}

.table-hover tbody tr:hover {
    background: #f0fff4;
    cursor: pointer;
}

/* ETF tooltip trigger */
.etf-tooltip-trigger {
    cursor: help;
    border-bottom: 1px dashed #198754;
}


/* Alert odporúčanie */
.alert-success {
    background: linear-gradient(135deg, #d1fae5, #ecfdf5);
    border: none;
    border-left: 4px solid #198754;
    border-radius: 12px;
}

/* Broker tabuľka - XTB highlight */
.table-success td {
    background: #f0fff4 !important;
    font-weight: 600;
}

/* Graf */
#graf {
    max-height: 400px;
}

/* Animácia výsledkov */
#vysledky {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Custom broker tooltip */
#broker-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    max-width: 320px;
    background: #1a1a2e;
    color: #f0f0f0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    pointer-events: none;
}

#broker-tooltip strong {
    color: #fff;
}

#broker-tooltip.wide {
    max-width: 480px;
}

/* Dotykove zariadenia — tooltip ukotveny naspodku obrazovky (poloha nezavisi od kurzora) */
#broker-tooltip.tip-touch {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 16px !important;
    max-width: none;
    width: auto;
}

@media (max-width: 576px) {
    #broker-tooltip.wide {
        left: 8px !important;
        right: 8px !important;
        top: auto !important;
        bottom: 16px !important;
        max-width: calc(100vw - 16px);
        width: calc(100vw - 16px);
    }
}

.broker-tip {
    cursor: help;
    border-bottom: 1px dashed #aaa;
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    .table { font-size: 0.85rem; }
    .hide-mobile { display: none; }
}
/* Footer */
.footer-main {
    background: linear-gradient(135deg, #0f0f1a, #1a1a2e);
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-text {
    color: rgba(255,255,255,0.55);
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-links {
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 4px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 1.5rem 0 1rem;
}

.footer-copy {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

/* Language switcher */
.lang-btn {
  padding: 2px 6px;
  font-size: 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: #fff;
  transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.8); }
.lang-btn.active { color: #dc3545; border-color: #dc3545; }