/* =====================================================
   Quarterly Data Widget — Frontend Styles v2
   ===================================================== */

.qdw-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: transparent;
    border-radius: 12px;
    padding: 32px;
    box-sizing: border-box;
    max-width: 100%;
}

.qdw-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff!important;
    margin: 0 0 24px;
    line-height: 1.2;
}

/* Dropdown */
.qdw-dropdown-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 320px;
    margin-bottom: 28px;
}

.qdw-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #f4f6fb1a;
    border: 2px solid #d0d5e8;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    padding: 5px 33px;

}

.qdw-select:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67,97,238,0.15);
}

.qdw-select-arrow {
    pointer-events: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.qdw-dropdown-wrap:focus-within .qdw-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

/* Entry card */
.qdw-quarters-grid { animation: qdwFadeIn 0.3s ease; }

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

.qdw-entry-card {
    background: #ffffff2e;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qdw-entry-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff!important;
    margin: 0;
    line-height: 1.4;

}

/* Buttons row */
.qdw-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.qdw-btn {
    display: inline-flex;
    align-items: center;
    gap: 0;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.5;
    /* fill: #FFFFFFE0; */
    color: #FFFFFFE0;
    border-style: solid;
    border-width: 02px;
    border-color: #FFFFFFE0;
    padding: 15px 45px;
    text-decoration: none !important;
    background: transparent !important;
    margin: 0 !important;
}

.qdw-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    text-decoration: none;
}

.qdw-btn:active { transform: translateY(0); }

.qdw-btn-primary {
    background-color: #4361ee;
    color: #fff !important;
}

.qdw-btn-secondary {
 
}

/* Loading dots */
.qdw-loading { display: flex; gap: 8px; padding: 16px 0; }

.qdw-loading span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4361ee;
    animation: qdwBounce 0.8s infinite ease-in-out;
}

.qdw-loading span:nth-child(2) { animation-delay: 0.15s; }
.qdw-loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes qdwBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40%            { transform: scale(1);   opacity: 1; }
}

/* Empty state */
.qdw-empty {
    color: #9ca3af;
    font-size: 0.9rem;
    padding: 20px 0;
    text-align: center;
    font-style: italic;
}

@media (max-width: 480px) {
    .qdw-wrap { padding: 20px; }
    .qdw-title { font-size: 1.3rem; }
    .qdw-dropdown-wrap { max-width: 100%; }
    .qdw-btn-row { flex-direction: column; }
    .qdw-btn { justify-content: center; }
}
