/* User Profile Modern Styles */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
.profile-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-back:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-title h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.btn-save {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Auth Button */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-auth {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-auth:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-auth.logged-in {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.btn-auth.logged-in:hover {
    background: #059669;
    border-color: #059669;
}

/* Main Content */
.profile-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.profile-container {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Profile Header */
.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-avatar {
    position: relative;
}

.avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.avatar-upload:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.profile-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Profile Tabs */
.profile-tabs {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tab-nav {
    display: flex;
    padding: 0 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    gap: 0.25rem;
    flex-wrap: nowrap;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.tab-nav::-webkit-scrollbar {
    height: 4px;
}

.tab-nav::-webkit-scrollbar-track {
    background: transparent;
}

.tab-nav::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.875rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: var(--bg-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-primary);
}

/* Tab Content */
.tab-content {
    padding: 2rem;
}

/* Applications Tab: Kein Padding für iframe, volle Höhe */
.tab-content {
    padding: 2rem;
}

.tab-content:has(#applications) {
    padding: 0 !important;
}

.tab-panel#applications {
    padding: 0 !important;
    margin: 0 !important;
    height: calc(100vh - 360px) !important;
    min-height: 600px !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Form Sections */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Settings */
.settings-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.setting-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.setting-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Progress Dashboard */
.progress-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--text-secondary);
}

/* Progress Overview */
.progress-overview {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.overview-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

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

.card-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Progress Ring */
.progress-ring {
    position: relative;
    display: inline-block;
}

.progress-ring-svg {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dasharray 0.3s ease;
}

.progress-ring-fill {
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.3s ease;
}

.progress-ring .progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.progress-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.progress-label {
    font-size: 0.875rem;
    color: white;
    opacity: 0.9;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    /* Stelle sicher, dass Karten beim Hover nicht übereinander liegen */
    align-items: start;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    z-index: 2;
    /* Stelle sicher, dass der Text beim Hover sichtbar bleibt */
    background: var(--bg-primary);
}

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

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.category-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.category-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Activity Section */
.activity-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.activity-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.activity-content h5 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.activity-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Achievements */
.achievements-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.achievement-card.earned {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.1));
}

.achievement-card.locked {
    opacity: 0.6;
    background: var(--bg-tertiary);
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.achievement-card.earned .achievement-icon {
    background: var(--success-color);
    color: white;
}

.achievement-card.locked .achievement-icon {
    background: var(--border-color);
    color: var(--text-light);
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.achievement-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.achievement-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.achievement-progress {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .profile-main {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .profile-stats {
        justify-content: center;
        gap: 1rem;
    }

    .tab-nav {
        flex-wrap: nowrap;
        padding: 0 0.5rem;
        gap: 0.125rem;
        /* Sichtbare Scrollbar auf Mobile */
        scrollbar-width: thin;
    }

    .tab-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.25rem;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
    }

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

    .categories-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-header {
        padding: 1.5rem 1rem;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 1.5rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .form-section {
        padding: 1rem;
    }
}

/* Applications Dashboard */
/* Embedded Dashboard */
.applications-dashboard-embed {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: none;
    overflow: hidden;
    background: white;
    position: relative;
    display: block;
}

.applications-dashboard-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 1;
    visibility: visible;
}

.iframe-loading-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: var(--text-secondary);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.iframe-loading-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: block;
}

.iframe-loading-state p {
    margin: 0;
    font-weight: 500;
}

.iframe-error-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-width: 400px;
}

.iframe-error-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--error-color);
    display: block;
}

.iframe-error-state p {
    margin: 0 0 1rem 0;
    font-weight: 500;
}

/* Embedded Mode - Hide Navigation in Dashboard */
.applications-dashboard-embed iframe[src*="embedded=true"] {
    /* Dashboard wird im iframe angezeigt */
}

@media (max-width: 768px) {
    .applications-dashboard-embed {
        height: calc(100vh - 150px);
        min-height: 500px;
    }
}

.applications-dashboard {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.applications-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.applications-section {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

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

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.application-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.application-item:hover {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.application-info {
    flex: 1;
}

.application-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.application-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.application-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.application-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.application-status.preparation {
    background: #fef3c7;
    color: #92400e;
}

.application-status.sent {
    background: #dbeafe;
    color: #1e40af;
}

.application-status.confirmed {
    background: #d1fae5;
    color: #065f46;
}

.application-status.interview {
    background: #e0e7ff;
    color: #3730a3;
}

.application-status.offer {
    background: #dcfce7;
    color: #166534;
}

.application-status.rejected {
    background: #fee2e2;
    color: #991b1b;
}

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

.btn-icon {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
    .applications-stats {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .application-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .application-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ========================================
   TRAINING TAB STYLES
   ======================================== */

.training-dashboard,
.nutrition-dashboard,
.coach-dashboard {
    padding: 1rem 0;
}

.training-stats-grid,
.nutrition-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.training-stat,
.nutrition-stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-stat:hover,
.nutrition-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.stat-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.current-plan-section,
.recent-workouts-section,
.recent-achievements-section,
.recommendations-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.current-plan-section h4,
.recent-workouts-section h4,
.recent-achievements-section h4,
.recommendations-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.plan-container {
    min-height: 100px;
}

.plan-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.plan-card h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.plan-card p {
    opacity: 0.9;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-link {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

.workouts-list,
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.workout-item,
.achievement-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.workout-item:hover,
.achievement-item:hover {
    background: var(--bg-tertiary);
}

.workout-icon,
.achievement-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.achievement-icon {
    font-size: 1.5rem;
    background: transparent;
}

.workout-info,
.achievement-info {
    flex: 1;
}

.workout-info h5,
.achievement-info h5 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0;
}

.workout-info span,
.achievement-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.workout-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.achievement-points {
    font-weight: 700;
    color: var(--primary-color);
}

.training-actions,
.nutrition-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: var(--bg-tertiary);
}

/* ========================================
   NUTRITION TAB STYLES
   ======================================== */

.today-summary {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.today-summary h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.calories-overview {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.calories-ring {
    position: relative;
    width: 150px;
    height: 150px;
}

.calories-ring-svg {
    transform: rotate(-90deg);
}

.calories-ring-svg circle {
    transition: stroke-dashoffset 0.5s ease;
}

.calories-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.calories-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calories-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.macros-breakdown {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.macro-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.macro-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.macro-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.macro-bar.protein .macro-fill {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.macro-bar.carbs .macro-fill {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.macro-bar.fat .macro-fill {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.macro-label {
    width: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.macro-value {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
}

/* ========================================
   COACH TAB STYLES
   ======================================== */

.level-section {
    margin-bottom: 2rem;
}

.level-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}

.level-badge {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.level-info {
    flex: 1;
    min-width: 200px;
}

.level-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.level-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: #fbbf24;
    border-radius: 5px;
    transition: width 0.5s ease;
}

.level-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.total-points {
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.total-points span:first-child {
    display: block;
    font-size: 2rem;
    font-weight: 800;
}

.points-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.success-categories {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.success-categories h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.success-categories .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.success-category {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.success-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-stats {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recommendation-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.recommendation-card:hover {
    background: var(--bg-tertiary);
}

.rec-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-md);
}

.rec-content {
    flex: 1;
}

.rec-content h5 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.rec-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
}

.rec-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.rec-action:hover {
    transform: scale(1.1);
}

/* ========================================
   MODAL STYLES
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* ========================================
   NOTIFICATION STYLES
   ======================================== */

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: notificationSlideIn 0.3s ease, notificationSlideOut 0.3s ease 2.7s;
    box-shadow: var(--shadow-lg);
}

.notification.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes notificationSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes notificationSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Empty state improvements */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state.small {
    padding: 1.5rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .training-stats-grid,
    .nutrition-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .calories-overview {
        flex-direction: column;
        align-items: center;
    }
    
    .level-card {
        flex-direction: column;
        text-align: center;
    }
    
    .total-points {
        width: 100%;
    }
    
    .success-categories .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .training-actions,
    .nutrition-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .training-stats-grid,
    .nutrition-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .success-categories .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   JOURNAL/TAGEBUCH STYLES
   ======================================== */

.journal-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.journal-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
}

.journal-stats-bar .stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.journal-stats-bar .stat-item i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.journal-stats-bar .stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.journal-stats-bar .stat-content p {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.25rem;
}

/* Heatmap Section */
.journal-heatmap-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.journal-heatmap-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.journal-heatmap-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.legend-colors {
    display: flex;
    gap: 2px;
}

.legend-colors span {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.heat-0 { background: var(--bg-tertiary); }
.heat-1 { background: #c6f6d5; }
.heat-2 { background: #68d391; }
.heat-3 { background: #38a169; }
.heat-4 { background: #276749; }

.heatmap-container {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-tertiary);
}

.heatmap-container::-webkit-scrollbar {
    height: 6px;
}

.heatmap-container::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.heatmap-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heatmap-day {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.heatmap-day:hover {
    transform: scale(1.4);
    z-index: 10;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
}

.heatmap-day.level-1 { background: #c6f6d5; }
.heatmap-day.level-2 { background: #68d391; }
.heatmap-day.level-3 { background: #38a169; }
.heatmap-day.level-4 { background: #276749; }

.heatmap-day.selected {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

/* Day View */
.journal-day-view {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.day-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

.day-nav-btn {
    background: var(--bg-tertiary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.day-nav-btn:hover {
    background: var(--primary-color);
    color: white;
}

.day-entries {
    min-height: 100px;
}

.day-entry {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.day-entry:hover {
    box-shadow: var(--shadow-sm);
}

.entry-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.entry-time .time {
    font-weight: 600;
    color: var(--text-primary);
}

.entry-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.entry-icon.journal { background: #ddd6fe; }
.entry-icon.training { background: #fecaca; }
.entry-icon.mood { background: #fef08a; }
.entry-icon.activity { background: #a5f3fc; }
.entry-icon.note { background: #d1d5db; }

.entry-content {
    flex: 1;
}

.entry-content h5 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.entry-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.entry-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
}

.entry-mood {
    font-size: 1.5rem;
}

/* Quick Entry Section */
.journal-quick-entry {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.journal-quick-entry h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.quick-entry-types {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.entry-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.entry-type-btn i {
    font-size: 1.25rem;
}

.entry-type-btn span {
    font-size: 0.8rem;
    font-weight: 500;
}

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

.entry-type-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: transparent;
}

.entry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mood-selector {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.mood-selector label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.mood-options {
    display: flex;
    justify-content: space-around;
}

.mood-btn {
    background: transparent;
    border: 2px solid transparent;
    font-size: 2rem;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.mood-btn:hover,
.mood-btn.selected {
    opacity: 1;
    transform: scale(1.2);
    border-color: var(--primary-color);
}

.training-fields {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.intensity-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.intensity-slider input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(to right, #10b981, #f59e0b, #ef4444);
}

.intensity-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    cursor: pointer;
}

#intensityValue {
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* Sleep Fields */
.sleep-fields {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.quality-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quality-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.quality-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.quality-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Meal Fields */
.meal-fields {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(245, 158, 11, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.satisfaction-selector {
    display: flex;
    gap: 0.5rem;
}

.satisfaction-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.5rem;
}

.satisfaction-btn:hover {
    border-color: var(--success-color);
    transform: scale(1.1);
}

.satisfaction-btn.active {
    background: var(--success-color);
    border-color: var(--success-color);
    transform: scale(1.1);
}

/* Checkbox Label für Ernährungssync */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-md);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--success-color);
    cursor: pointer;
}

/* Recent Entries */
.journal-recent-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.journal-recent-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.recent-entries-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recent-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.recent-entry:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.recent-entry-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.recent-entry-content {
    flex: 1;
}

.recent-entry-content h5 {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.recent-entry-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.recent-entry-date {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Journal Responsive */
@media (max-width: 768px) {
    .journal-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-entry-types {
        justify-content: center;
    }
    
    .entry-type-btn {
        flex: 1;
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .heatmap-container {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .journal-stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .journal-stats-bar .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .day-entry {
        flex-direction: column;
    }
    
    .entry-time {
        flex-direction: row;
        gap: 0.5rem;
        width: 100%;
    }
}