/* static/css/app.css */

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

/* PREMIUM SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--rund-klein);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

#settings-btn {
    text-decoration: none;
    font-size: 1.4rem;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#settings-btn:hover {
    transform: rotate(45deg);
    color: var(--text-color);
}

/* PREMIUM GRIDS */
.summary-grid, .details-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.3fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
    .summary-grid, .details-grid {
        grid-template-columns: 1fr;
    }
}

/* DETAIL LIST STYLING */
.sub-stats-list, .detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sub-stats-list li:last-child, .detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-stats-list li span, .detail-item span {
    color: var(--text-light);
    font-weight: 500;
}

.sub-stats-list li strong, .detail-item strong {
    font-weight: 600;
    color: var(--text-color);
}

/* LIVE INCOME ANIMATION */
#dividend-clock {
    font-variant-numeric: tabular-nums;
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-glow);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0% { opacity: 0.95; }
    50% { opacity: 1; transform: scale(1.01); text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
    100% { opacity: 0.95; }
}

/* MEILENSTEINE (MILESTONES) PROGRESS */
.goal-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.goal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: opacity 0.3s;
}

.goal-icon {
    font-size: 1.1rem;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.goal-details {
    flex-grow: 1;
}

.goal-title {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.goal-title span:first-child {
    color: var(--text-color);
}

.goal-title span:last-child {
    color: var(--text-light);
}

.goal-progress-bar-container {
    background: var(--bg-subtle);
    height: 8px;
    border-radius: var(--rund-klein);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.goal-progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: var(--rund-klein);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-item.achieved .goal-title span:first-child {
    color: var(--primary-color);
    font-weight: 700;
}

.goal-item.locked {
    opacity: 0.35;
}

/* CALENDAR STYLING */
.dividend-calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .dividend-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-subtle);
    padding: 0.85rem;
    border-radius: var(--rund);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, background-color 0.3s, border-color 0.3s;
}

.calendar-card:hover {
    transform: scale(1.02);
    border-color: rgba(16, 185, 129, 0.2);
}

.cal-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--rund);
    min-width: 48px;
    height: 48px;
    box-shadow: var(--schatten-1);
    transition: background-color 0.3s, border-color 0.3s;
}

.cal-mon {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 2px;
}

.cal-day {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1;
}

.cal-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cal-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-amount {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* YIELD ON COST WIDGET */
.yoc-widget {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--rund);
    transition: background-color 0.3s, border-color 0.3s;
}

.yoc-value {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
}

.detail-subtitle {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    font-size: 0.85rem;
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* PREMIUM INTERACTIVE SLIDERS AND OVERLAYS */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-subtle);
    border-radius: var(--rund-klein);
    outline: none;
    transition: background-color 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    transition: transform 0.1s ease, background-color 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-hover);
}

/* INPUTS & SELECTS SLATE STYLING */
input[type="number"], input[type="text"], input[type="month"], select {
    background-color: var(--bg-subtle);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--rund-klein);
    padding: 0.65rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.3s;
}

input[type="number"]:focus, input[type="text"]:focus, input[type="month"]:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--card-color);
    padding: 2.25rem;
    border-radius: var(--rund);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 480px;
    box-shadow: var(--schatten-3);
    animation: slideInModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: background-color 0.3s, border-color 0.3s;
}

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

