/* Live Weather & Real-time Forex Ticker Styles for ISOERP */

.iso-header-widgets-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
}

/* Individual Pill with Glassmorphism & High Contrast */
.iso-widget-pill,
.iso-pill-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.iso-widget-pill:hover,
.iso-pill-widget:hover,
.iso-widget-pill.iso-hover-active,
.iso-pill-widget.iso-hover-active {
    background: rgba(30, 41, 59, 0.95);
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.iso-widget-icon {
    font-size: 15px;
    margin-right: 6px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.iso-widget-label {
    font-weight: 700;
    margin-right: 5px;
    color: #e2e8f0;
}

.iso-widget-value {
    color: #38bdf8;
    font-weight: 700;
}

.iso-forex-ticker-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    max-width: 300px;
}

.iso-forex-pair {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 0 2px;
}

.iso-forex-code {
    font-weight: 700;
    color: #94a3b8;
    font-size: 11px;
}

.iso-forex-rate {
    font-weight: 700;
    color: #34d399;
}

/* Detail Dropdown Modal/Card */
.iso-widget-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 999999;
    background: #0f172a;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: 1px solid #1e293b;
    padding: 16px;
    min-width: 320px;
    display: none;
    cursor: default;
    animation: isoFadeIn 0.2s ease-out;
    color: #f8fafc;
}

/* Invisible bridge so mouse moving from pill into dropdown never leaves hover zone */
.iso-widget-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.iso-widget-dropdown.dropdown-right {
    left: auto;
    right: 0;
}

.iso-widget-pill.iso-active .iso-widget-dropdown,
.iso-pill-widget.iso-active .iso-widget-dropdown {
    display: block !important;
}

@keyframes isoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.iso-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iso-dropdown-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.iso-dropdown-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #f8fafc;
}

.iso-live-clock-bar {
    font-size: 11px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.iso-live-clock-time {
    color: #38bdf8;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}

.iso-live-clock-date {
    color: #94a3b8;
}

.iso-dropdown-badge,
.iso-live-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.4);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Weather Statistics 2x3 Grid */
.iso-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.iso-weather-item,
.iso-grid-item {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iso-weather-item-label,
.iso-lbl {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.iso-weather-item-val,
.iso-val {
    font-size: 12px;
    font-weight: 700;
    color: #f8fafc;
}

/* Forex Table in Dropdown */
.iso-forex-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin-bottom: 12px;
}

.iso-forex-table th {
    text-align: left;
    padding: 6px 8px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iso-forex-table td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #f8fafc;
}

.iso-forex-table tr:last-child td {
    border-bottom: none;
}

.iso-widget-footer {
    font-size: 10px;
    color: #64748b;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    margin-top: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .iso-header-widgets-container {
        display: none !important;
    }
}
