/* Reward & Cash Game Tracker - Glasmorphe Design in Pastellfarben */

:root {
    /* Pastellfarben */
    --pastel-mint: #a8d5ba;
    --pastel-pink: #f4b8c5;
    --pastel-blue: #a8c5e2;
    --pastel-lavender: #c5b8e8;
    --pastel-peach: #f5c6a5;
    --pastel-yellow: #f5e6a3;
    --pastel-coral: #f5a8a8;
    --pastel-cyan: #a8e0e5;
    
    /* Hauptfarben */
    --primary: #7eb8a8;
    --primary-dark: #5a9a88;
    --secondary: #e8a8c5;
    --accent: #a8c5e2;
    
    /* Texte */
    --text-dark: #2d3748;
    --text-light: #718096;
    --text-white: #ffffff;
    
    /* Hintergründe */
    --bg-gradient: linear-gradient(135deg, #e8f5e9 0%, #f3e5f5 50%, #e3f2fd 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.35);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --input-bg: rgba(255, 255, 255, 0.6);
    --input-bg-focus: rgba(255, 255, 255, 0.9);
    
    /* Sonstiges */
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: all 0.3s ease;
}

/* Dark Mode */
[data-theme="dark"] {
    --pastel-mint: #4a9a7c;
    --pastel-pink: #c47a8a;
    --pastel-blue: #6a95c2;
    --pastel-lavender: #9580d0;
    --pastel-peach: #c59070;
    --pastel-yellow: #c9b860;
    --pastel-coral: #c56a6a;
    --pastel-cyan: #5ab5bd;
    
    --primary: #5fb89a;
    --primary-dark: #4a9a80;
    --secondary: #c47a8a;
    --accent: #6a95c2;
    
    --text-dark: #e8e8e8;
    --text-light: #a0a0a0;
    --text-white: #ffffff;
    
    --bg-gradient: linear-gradient(135deg, #1a2a1f 0%, #2a1f2a 50%, #1a2030 100%);
    --glass-bg: rgba(30, 35, 40, 0.7);
    --glass-border: rgba(80, 90, 100, 0.4);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --input-bg: rgba(40, 45, 55, 0.8);
    --input-bg-focus: rgba(50, 55, 65, 0.95);
}

[data-theme="dark"] .shape { opacity: 0.3; }
[data-theme="dark"] table th, [data-theme="dark"] table td { border-bottom-color: var(--glass-border); }
[data-theme="dark"] .profit-positive { color: #5fdb9a; }
[data-theme="dark"] .profit-negative { color: #ff7070; }

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--glass-shadow);
}

.theme-toggle:hover { transform: scale(1.1); }
.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: block; }
[data-theme="dark"] .theme-toggle .fa-sun { display: block; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Animierte Hintergrund-Shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.shape-1 { width: 400px; height: 400px; background: var(--pastel-mint); top: -100px; left: -100px; animation-delay: 0s; }
.shape-2 { width: 350px; height: 350px; background: var(--pastel-pink); top: 50%; right: -100px; animation-delay: -5s; }
.shape-3 { width: 300px; height: 300px; background: var(--pastel-lavender); bottom: -100px; left: 30%; animation-delay: -10s; }
.shape-4 { width: 250px; height: 250px; background: var(--pastel-blue); top: 30%; left: 50%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}

/* Glasmorphe Karten */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.login-container { width: 100%; max-width: 420px; }
.login-card { text-align: center; }
.login-header { margin-bottom: 2rem; }

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
    box-shadow: 0 4px 20px rgba(126, 184, 168, 0.4);
}

.login-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
.login-header p { color: var(--text-light); font-size: 0.95rem; }

/* Formulare */
.form-group { margin-bottom: 1.25rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text-dark); font-size: 0.9rem; }
.form-group label i { margin-right: 0.5rem; color: var(--primary); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    background: var(--input-bg);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(126, 184, 168, 0.15);
}

.form-group input::placeholder { color: var(--text-light); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(126, 184, 168, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(126, 184, 168, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-dark);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.9); }

.btn-danger {
    background: linear-gradient(135deg, var(--pastel-coral), #e88888);
    color: var(--text-white);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: 10px; }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(245, 168, 168, 0.3);
    color: #c53030;
    border: 1px solid rgba(245, 168, 168, 0.5);
}

.alert-success {
    background: rgba(168, 213, 186, 0.3);
    color: #276749;
    border: 1px solid rgba(168, 213, 186, 0.5);
}

/* Login Footer */
.login-footer { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }
.login-footer a { color: var(--primary-dark); text-decoration: none; font-weight: 500; transition: var(--transition); }
.login-footer a:hover { color: var(--primary); }
.login-footer a i { margin-right: 0.5rem; }

/* Dashboard Layout */
.app-container { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem; }

.sidebar-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-blue));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
}

.sidebar-title h2 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); }
.sidebar-title span { font-size: 0.8rem; color: var(--text-light); }

/* Navigation */
.nav-menu { list-style: none; flex: 1; }
.nav-item { margin-bottom: 0.5rem; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover { background: rgba(255, 255, 255, 0.5); }

.nav-link.active {
    background: linear-gradient(135deg, var(--pastel-mint), var(--pastel-blue));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(126, 184, 168, 0.3);
}

.nav-link i { width: 20px; text-align: center; }

/* User Menu */
.user-menu { padding-top: 1.5rem; border-top: 1px solid var(--glass-border); }
.user-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--pastel-lavender), var(--pastel-pink));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-white);
}

.user-details h4 { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.user-details span { font-size: 0.8rem; color: var(--text-light); }
.logout-btn { width: 100%; justify-content: center; }

/* Main Content */
.main-content { flex: 1; margin-left: 280px; padding: 2rem; }

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); }
.page-header h1 i { margin-right: 0.75rem; color: var(--primary); }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card { padding: 1.5rem; }

.stat-card .stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.stat-card.mint .stat-icon { background: linear-gradient(135deg, var(--pastel-mint), #7ec9a8); }
.stat-card.pink .stat-icon { background: linear-gradient(135deg, var(--pastel-pink), #e8a0b0); }
.stat-card.blue .stat-icon { background: linear-gradient(135deg, var(--pastel-blue), #90b5d8); }
.stat-card.lavender .stat-icon { background: linear-gradient(135deg, var(--pastel-lavender), #b5a8e0); }

.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.25rem; }
.stat-card .stat-label { font-size: 0.9rem; color: var(--text-light); }

/* Profit Colors */
.profit-positive { color: #38a169; }
.profit-negative { color: #e53e3e; }
.profit-neutral { color: var(--text-light); }

/* Tables */
.table-container { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--glass-border); }
table th { font-weight: 600; color: var(--text-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
table td { color: var(--text-dark); }
table tbody tr:hover { background: rgba(255, 255, 255, 0.3); }

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Type Badges */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.type-badge.reward {
    background: rgba(168, 213, 186, 0.3);
    color: #2d6a4f;
}

.type-badge.cashgame {
    background: rgba(245, 198, 165, 0.3);
    color: #9c4221;
}

/* Type Selector */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.type-option input { display: none; }
.type-option i { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-light); }
.type-option span { font-weight: 600; color: var(--text-dark); }
.type-option small { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

.type-option:hover { border-color: var(--primary); }

.type-option.selected {
    border-color: var(--primary);
    background: rgba(126, 184, 168, 0.1);
}

.type-option.selected i { color: var(--primary); }

/* Star Rating Display */
.star-rating { display: inline-flex; gap: 2px; }
.star-rating i { font-size: 0.9rem; }

/* Star Rating Input */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-input input { display: none; }

.star-input label {
    cursor: pointer;
    font-size: 1.75rem;
    color: #ddd;
    transition: var(--transition);
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f5c518;
}

.actions { display: flex; gap: 0.5rem; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-overlay.active { display: flex; }

.modal {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); }
.modal-header h3 i { margin-right: 0.75rem; color: var(--primary); }

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: var(--transition);
}

.modal-close:hover { background: rgba(255, 255, 255, 0.8); }

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.modal-footer .btn { flex: 1; }

/* Color Picker */
.color-options { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
}

.color-option:hover { transform: scale(1.1); }
.color-option.selected { border-color: var(--text-dark); box-shadow: 0 0 0 2px var(--text-white); }

/* Icon Picker */
.icon-options { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }

.icon-option {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.icon-option:hover { background: rgba(255, 255, 255, 0.8); }

.icon-option.selected {
    border-color: var(--primary);
    background: var(--pastel-mint);
    color: var(--text-dark);
}

/* Empty State */
.empty-state { text-align: center; padding: 3rem; }
.empty-state i { font-size: 4rem; color: var(--pastel-lavender); margin-bottom: 1.5rem; }
.empty-state h3 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-light); margin-bottom: 1.5rem; }

/* Chart Container */
.chart-container { position: relative; height: 300px; margin-top: 1rem; }

/* Prognose Cards */
.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.forecast-card { padding: 1.25rem; text-align: center; }

.forecast-card .forecast-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
}

.forecast-card.week .forecast-icon { background: linear-gradient(135deg, var(--pastel-cyan), #7dc9d0); color: var(--text-white); }
.forecast-card.month .forecast-icon { background: linear-gradient(135deg, var(--pastel-peach), #e0a080); color: var(--text-white); }
.forecast-card.year .forecast-icon { background: linear-gradient(135deg, var(--pastel-lavender), #a090d0); color: var(--text-white); }

.forecast-card .forecast-label { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.05em; }
.forecast-card .forecast-value { font-size: 1.5rem; font-weight: 700; }
.forecast-card .forecast-basis { font-size: 0.75rem; color: var(--text-light); margin-top: 0.5rem; }

/* Form Row */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .sidebar { width: 240px; }
    .main-content { margin-left: 240px; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: var(--transition); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: flex; }
    .page-header { flex-direction: column; gap: 1rem; align-items: flex-start; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .type-selector { grid-template-columns: 1fr; }
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
}

/* Mode Filter */
.mode-filter {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    width: fit-content;
}

.mode-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.mode-btn:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.3);
}

.mode-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(126, 184, 168, 0.3);
}

.mode-btn i {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .mode-filter {
        width: 100%;
        justify-content: center;
    }
    .mode-btn span {
        display: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
