@import url('./design-tokens.css');
/* ============================================================================
   UPCOMING EVENTS - "Heute steht an" Feature
   ============================================================================ */

/* Topbar Button with Badge */
.upcoming-btn {
    position: relative;
}

.upcoming-icon {
    font-size: 20px;
    line-height: 1;
}

.upcoming-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
    animation: badge-pulse 2s ease-in-out infinite;
}

.upcoming-badge.has-today {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5);
    animation: badge-pulse-urgent 1s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes badge-pulse-urgent {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(245, 158, 11, 0.5); }
    50% { transform: scale(1.15); box-shadow: 0 4px 12px rgba(245, 158, 11, 0.7); }
}

/* Panel Styles */
.upcoming-panel {
    position: fixed;
    top: 60px;
    right: 80px;
    width: 360px;
    max-height: 500px;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    z-index: var(--z-max);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideDown 0.2s ease-out;
}

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

.upcoming-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.upcoming-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.upcoming-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.upcoming-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.upcoming-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    max-height: 380px;
}

.upcoming-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
    gap: var(--space-3);
}

.upcoming-spinner {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

/* Event Groups */
.upcoming-group {
    margin-bottom: 16px;
}

.upcoming-group-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.5);
}

.upcoming-group-header.today {
    color: #f59e0b;
}

.upcoming-group-header.tomorrow {
    color: var(--color-secondary);
}

.upcoming-group-header.week {
    color: #8b5cf6;
}

/* Event Items */
.upcoming-event {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.upcoming-event:hover {
    background: var(--glass-bg-light);
    border-color: var(--glass-border);
}

.upcoming-event.today {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border-color: rgba(245, 158, 11, 0.2);
}

.upcoming-event-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg-light);
    border-radius: 10px;
}

.upcoming-event-info {
    flex: 1;
    min-width: 0;
}

.upcoming-event-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upcoming-event-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.upcoming-event-category {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 2px 6px;
    background: var(--glass-bg-light);
    border-radius: var(--radius-xs);
}

/* Empty State */
.upcoming-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.upcoming-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.upcoming-empty-text {
    font-size: 14px;
    margin-bottom: 8px;
}

.upcoming-empty-hint {
    font-size: 12px;
    opacity: 0.7;
}

/* Footer */
.upcoming-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.upcoming-add-btn {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(var(--color-secondary-rgb), 0.3);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upcoming-add-btn:hover {
    background: linear-gradient(135deg, rgba(var(--color-secondary-rgb), 0.3) 0%, rgba(139, 92, 246, 0.25) 100%);
    border-color: rgba(var(--color-secondary-rgb), 0.5);
}

/* Scrollbar */


.upcoming-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

.upcoming-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.upcoming-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   REMINDER MODAL - Add New Reminder
   ============================================================================ */

.reminder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    z-index: var(--z-dropdown);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.reminder-modal-overlay.closing {
    animation: fadeOut 0.2s ease-out forwards;
}

.reminder-modal {
    width: 400px;
    max-width: 90vw;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(var(--glass-blur-md));
    -webkit-backdrop-filter: blur(var(--glass-blur-md));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: modalSlideIn 0.25s ease-out;
}

.reminder-modal-overlay.closing .reminder-modal {
    animation: modalSlideOut 0.2s ease-out forwards;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
}

.reminder-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(234, 88, 12, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl) 16px 0 0;
}

.reminder-modal-icon {
    font-size: 20px;
}

.reminder-modal-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.reminder-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reminder-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.reminder-modal-body {
    padding: 20px;
}

.reminder-form-group {
    margin-bottom: 16px;
}

.reminder-form-group:last-child {
    margin-bottom: 0;
}

.reminder-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.reminder-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--glass-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.reminder-input:focus {
    outline: none;
    border-color: rgba(245, 158, 11, 0.5);
    background: var(--glass-bg-light);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.reminder-input.error {
    border-color: rgba(239, 68, 68, 0.6);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.reminder-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.reminder-date-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reminder-date-input {
    flex: 1;
}

.reminder-quick-dates {
    display: flex;
    gap: var(--spacing-sm);
}

.reminder-quick-btn {
    flex: 1;
    padding: 8px 10px;
    background: var(--glass-bg-light);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reminder-quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.reminder-quick-btn.active {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(234, 88, 12, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.reminder-modal-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reminder-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reminder-btn-cancel {
    background: var(--glass-bg-light);
    color: rgba(255, 255, 255, 0.7);
}

.reminder-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.reminder-btn-save {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(234, 88, 12, 0.2) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.reminder-btn-save:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(234, 88, 12, 0.3) 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.reminder-btn-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}









