/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Softwert CI Colors */
    --primary-red: #e40134;
    --primary-cyan: #24b4e9;
    --dark-blue: #23305e;
    --purple-1: #6239bd;
    --purple-2: #8e4292;

    /* Dark Theme Colors */
    --bg-dark: #0a0e1a;
    --bg-gradient: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f1322 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Accent Colors */
    --accent-glow: rgba(228, 1, 52, 0.3);
    --cyan-glow: rgba(36, 180, 233, 0.3);
    --success: #10B981;
    --danger: var(--primary-red);
    --warning: #F59E0B;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Animated Background Pattern - Stronger Softwert CI Colors */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(228, 1, 52, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(36, 180, 233, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 30%, rgba(228, 1, 52, 0.15) 0%, transparent 60%);
    animation: moveBackground 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 260px;
    background: rgba(15, 19, 34, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.logo {
    padding: 32px 24px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, rgba(228, 1, 52, 0.1) 0%, rgba(36, 180, 233, 0.1) 100%);
}

.logo h2 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav {
    flex: 1;
    padding: 24px 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-cyan));
    transition: width 0.3s ease;
    z-index: -1;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    transform: translateX(4px);
}

.nav-item:hover::before {
    width: 3px;
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(228, 1, 52, 0.25), rgba(36, 180, 233, 0.2));
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 25px rgba(228, 1, 52, 0.4), 0 0 15px rgba(36, 180, 233, 0.2);
    border-left: 3px solid var(--primary-red);
}

.nav-item .icon {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 0 4px rgba(228, 1, 52, 0.3));
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: rgba(15, 19, 34, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    filter: drop-shadow(0 0 20px rgba(228, 1, 52, 0.4));
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Event Switcher */
.event-switcher {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.event-select {
    padding: 6px 12px;
    background: #1a1a2e;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.event-select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 2px rgba(36, 180, 233, 0.2);
}

.event-select option {
    background: #1a1a2e;
    color: var(--text-primary);
    padding: 8px;
}

.status-badge {
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.status-badge.active {
    background: linear-gradient(135deg, rgba(228, 1, 52, 0.2), rgba(36, 180, 233, 0.2));
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 25px rgba(36, 180, 233, 0.5), 0 0 10px rgba(228, 1, 52, 0.3);
}

/* ===== VIEWS ===== */
.view {
    display: none;
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.view.active {
    display: block;
}

.view-header {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

/* ===== DASHBOARD ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(228, 1, 52, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(228, 1, 52, 0.2);
    border-color: rgba(228, 1, 52, 0.3);
}

.stat-card[style*="cursor: pointer"] {
    cursor: pointer !important;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    width: 52px;
    height: 52px;
    stroke: url(#iconGradient);
    filter: drop-shadow(0 0 10px rgba(228, 1, 52, 0.5));
}

.stat-info h3 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.welcome-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 64px 48px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: var(--glass-shadow);
}

.welcome-card h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #c7012c);
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(228, 1, 52, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(228, 1, 52, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(228, 1, 52, 0.1), rgba(36, 180, 233, 0.1));
    border-color: var(--primary-cyan);
    box-shadow: 0 0 25px rgba(36, 180, 233, 0.4), 0 4px 15px rgba(228, 1, 52, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #0d9668);
    border-color: var(--success);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c7012c);
    border-color: var(--danger);
    box-shadow: 0 4px 15px rgba(228, 1, 52, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 8px 25px rgba(228, 1, 52, 0.5);
}

/* ===== FORMS ===== */
.search-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(228, 1, 52, 0.2),
                0 0 20px rgba(228, 1, 52, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* ===== DATA LIST ===== */
.data-list {
    display: grid;
    gap: 20px;
}

.data-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.data-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(228, 1, 52, 0.1), transparent);
    transition: left 0.5s;
}

.data-card:hover::after {
    left: 100%;
}

.data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(228, 1, 52, 0.15);
    border-color: rgba(228, 1, 52, 0.3);
}

.data-card-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.data-card-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.data-card-actions {
    display: flex;
    gap: 8px;
}

.data-card-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== NOTIFICATIONS ===== */
.notifications {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification {
    padding: 18px 24px;
    background: rgba(15, 19, 34, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    min-width: 320px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    border-left: 4px solid var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.notification.error {
    border-left: 4px solid var(--danger);
    box-shadow: 0 0 20px rgba(228, 1, 52, 0.3);
}

.notification.info {
    border-left: 4px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(36, 180, 233, 0.3);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    background: rgba(15, 19, 34, 0.95);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 640px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 32px;
}

.modal-footer {
    padding: 20px 32px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(228, 1, 52, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    /* Force dark background and light text for all browsers */
    background-color: #1a1a2e !important;
    color: #e5e7eb !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%2324b4e9' d='M6 9L1 4h10z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-group select option {
    background-color: #1a1a2e !important;
    color: #e5e7eb !important;
    padding: 8px;
}

/* Webkit browsers (Chrome, Safari) */
.form-group select option:checked,
.form-group select option:hover {
    background-color: #2d2d44 !important;
    color: #ffffff !important;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.badge.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.badge.danger {
    background: rgba(228, 1, 52, 0.2);
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: 0 0 10px rgba(228, 1, 52, 0.2);
}

.badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    border-color: var(--warning);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.badge.info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.badge.violet {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
    border-color: #8b5cf6;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.badge.kopie {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* ===== SEARCH DROPDOWNS ===== */
.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.search-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
}

.search-dropdown-item:hover {
    background: var(--background);
}

.search-dropdown-category {
    padding: 8px 12px;
    background: var(--background);
    font-weight: 600;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
}

/* ===== CUSTOMER DETAIL VIEW ===== */
.customer-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.detail-section {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.detail-section h3 {
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--text-primary);
}

.detail-section p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.detail-section-header h3 {
    margin: 0;
}

.detail-item {
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(228, 1, 52, 0.3);
}

.detail-item strong {
    font-size: 14px;
    color: var(--text-primary);
}

.detail-item span {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* ===== REMINDER OVERDUE ===== */
.reminder-overdue {
    border-left: 4px solid var(--danger);
    box-shadow: 0 0 20px rgba(228, 1, 52, 0.3);
    background: linear-gradient(135deg, rgba(228, 1, 52, 0.05), rgba(255, 255, 255, 0.03));
}

.reminder-overdue:hover {
    box-shadow: 0 0 30px rgba(228, 1, 52, 0.4);
}

/* ===== REMINDER COMPLETED ===== */
.reminder-completed {
    opacity: 0.6;
    border-left: 4px solid var(--success);
}

.reminder-completed .data-card-info h3 {
    text-decoration: line-through;
}

/* ===== REMINDERS WIDGET ===== */
.reminders-widget {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    padding: 24px;
}

.reminder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.reminder-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(228, 1, 52, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(228, 1, 52, 0.2);
}

.reminder-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 4px;
}

.reminder-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.reminder-date {
    color: var(--primary-cyan);
    font-size: 14px;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 16px;
}

/* ===== REMINDER TYPE GROUPS ===== */
.reminder-type-group {
    margin-bottom: 24px;
}

.reminder-type-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--glass-border);
    background: linear-gradient(135deg, var(--primary-red), var(--primary-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reminder-type-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== REMINDER TIME GROUPS ===== */
.reminder-time-group {
    margin-bottom: 32px;
}

.reminder-time-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.overdue-title {
    background: linear-gradient(135deg, rgba(228, 1, 52, 0.15), rgba(255, 0, 0, 0.1));
    color: var(--danger);
    border-left: 4px solid var(--danger);
    box-shadow: 0 0 20px rgba(228, 1, 52, 0.2);
}

.today-title {
    background: linear-gradient(135deg, rgba(36, 180, 233, 0.15), rgba(0, 150, 255, 0.1));
    color: var(--primary-cyan);
    border-left: 4px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(36, 180, 233, 0.2);
}

.upcoming-title {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(0, 200, 150, 0.1));
    color: var(--success);
    border-left: 4px solid var(--success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.reminder-today {
    border-left: 4px solid var(--primary-cyan);
    background: linear-gradient(135deg, rgba(36, 180, 233, 0.05), rgba(255, 255, 255, 0.03));
}

.reminder-today:hover {
    box-shadow: 0 4px 16px rgba(36, 180, 233, 0.3);
}

/* ===== CONTACT LINKS ===== */
.contact-link {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(36, 180, 233, 0.3);
}

.contact-link:hover {
    color: var(--primary-red);
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(228, 1, 52, 0.5);
}

/* ===== PRODUCT KATEGORIE GROUPS ===== */
.product-kategorie-group {
    margin-bottom: 32px;
}

.product-kategorie-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(36, 180, 233, 0.15), rgba(228, 1, 52, 0.1));
    color: var(--text-primary);
    border-left: 4px solid var(--primary-cyan);
    box-shadow: 0 0 20px rgba(36, 180, 233, 0.2);
}

.product-kategorie-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-cyan));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-red));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .header {
        padding: 16px 24px;
    }

    .header h1 {
        font-size: 24px;
    }

    .view {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
