/* ========================================
   IdeenPool - Main Stylesheet
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* ========================================
   Login Screen
   ======================================== */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pool-light) 0%, var(--pool-dark) 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2rem; /* Weiter reduziert */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); /* Angepasst */
    width: 100%;
    max-width: 380px; /* Noch schmaler */
    z-index: 10;
    position: relative;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem; /* Deutlich reduziert */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.login-logo {
    width: 60px; /* Kleiner, um neben dem Text zu passen */
    height: 60px;
    margin-bottom: 0;
}

.app-title {
    font-size: 2.2rem; /* Angepasst für Harmonie */
    color: var(--pool-primary);
    margin-bottom: 0;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Login Form */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1rem; /* Kompakter */
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d1d6;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fafafa;
    color: var(--text-primary);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
    background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #86868b;
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    color: #86868b;
    font-size: 0.875rem;
}

.voucher-input {
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--pool-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--pool-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 192, 222, 0.3);
}

.btn-login {
    width: 100%;
    padding: 0.8rem; /* Etwas kompakter */
    font-size: 1.1rem;
    margin-top: 0.5rem; /* Reduziert */
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.login-footer {
    text-align: center;
    margin-top: 1rem; /* Reduziert */
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--pool-primary);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Wave Animation - Seamless Parallax Effect */
.login-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; /* Mehr Platz für überlappende Wellen */
    overflow: hidden;
}

/* Pseudo-Elemente für die Wellen */
.login-decoration::before,
.login-decoration::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%; /* Doppelte Breite für nahtlose Wiederholung */
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,50 C250,120 350,-20 500,50 C650,120 850,-20 1000,50 L1000,100 L0,100 Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: 50% 100px;
    background-repeat: repeat-x;
    animation-name: wave;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Welle 1 (Vordergrund) */
.login-decoration::before {
    animation-duration: 10s;
    opacity: 0.7;
    z-index: 3;
}

/* Welle 2 (Hintergrund) */
.login-decoration::after {
    animation-duration: 15s;
    animation-direction: reverse;
    opacity: 0.5;
    z-index: 2;
    bottom: 5px;
}

/* Keyframe-Animation für die Wellenbewegung */
@keyframes wave {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Verschiebt um die halbe Breite (nahtlos) */
    }
}

/* Haifischflosse - Bewegt sich zwischen den Wellen */
.shark-fin {
    position: absolute;
    bottom: 20px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 40px solid rgba(44, 62, 80, 0.7); /* Dunkler, passend zum Stil */
    transform: rotate(-15deg);
    animation: shark-swim 20s linear infinite;
    z-index: 4; /* Zwischen den Wellen positioniert */
}

/* Wasser-Spritzer um die Flosse */
.shark-fin::after {
    content: '';
    position: absolute;
    bottom: -45px;
    left: -20px;
    width: 40px;
    height: 15px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: scaleX(2);
    animation: splash 1s ease-in-out infinite;
}

@keyframes splash {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(2) scaleY(1);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(2.5) scaleY(1.2);
    }
}

@keyframes shark-swim {
    0% {
        left: -50px;
        transform: rotate(-15deg) translateY(0);
    }
    10% {
        transform: rotate(-15deg) translateY(-5px);
    }
    20% {
        transform: rotate(-15deg) translateY(0);
    }
    30% {
        transform: rotate(-15deg) translateY(-3px);
    }
    40% {
        transform: rotate(-15deg) translateY(0);
    }
    50% {
        transform: rotate(-15deg) translateY(-5px);
    }
    60% {
        transform: rotate(-15deg) translateY(0);
    }
    70% {
        transform: rotate(-15deg) translateY(-3px);
    }
    80% {
        transform: rotate(-15deg) translateY(0);
    }
    90% {
        transform: rotate(-15deg) translateY(-5px);
    }
    100% {
        left: 110%;
        transform: rotate(-15deg) translateY(0);
    }
}

/* Zweite Haifischflosse mit anderem Timing */
.shark-fin-2 {
    animation-delay: -10s;
    animation-duration: 25s;
    bottom: 35px;
    z-index: 1; /* Hinter den Wellen */
    border-bottom-color: rgba(44, 62, 80, 0.5); /* Leichter verblasst */
}

/* ========================================
   Main App Layout
   ======================================== */

.app-container {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar main";
    grid-template-columns: 280px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
}

/* Header */
.main-header {
    grid-area: header;
    background: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 140px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    margin-right: 2rem;
}

.header-logo {
    width: 120px;
    height: 120px;
    filter: drop-shadow(0 2px 8px rgba(91, 192, 222, 0.3));
    flex-shrink: 0;
}

/* Phase Navigation */
.phase-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    position: relative;
    padding: 1rem 1rem;
    margin: 0 1rem;
}

/* Die verbindende Linie mit Pfeilspitze */
.phase-nav::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25px;
    right: 25px;
    height: 4px;
    background: linear-gradient(90deg, var(--pool-light) 0%, var(--pool-primary) 100%);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

/* Pfeilspitze am Ende der Linie */
.phase-nav::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--pool-primary);
    transform: translateY(-50%);
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(91, 192, 222, 0.3));
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    z-index: 3;
    position: relative;
    transition: all 0.3s ease;
    flex: 0 1 auto;
    text-align: center;
    min-width: 80px;
}

.nav-item .nav-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-item .custom-icon-nav {
    width: 28px;
    height: 28px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Spezifische Icons größer darstellen */
.nav-item .custom-icon-nav[src*="icon_poolbar.png"],
.nav-item .custom-icon-nav[src*="icon_hotelschlüssel.png"] {
    width: 32px;
    height: 32px;
}

.nav-item .nav-text {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Hover-Zustand */
.nav-item:hover .nav-icon {
    border-color: var(--pool-primary);
}

.nav-item:hover .nav-text {
    color: var(--pool-primary);
}

.nav-item:hover .custom-icon-nav {
    filter: grayscale(0%);
    opacity: 1;
}

/* Aktiver Zustand */
.nav-item.active .nav-icon {
    border-color: var(--pool-primary);
    background-color: var(--pool-light);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(91, 192, 222, 0.5);
}

.nav-item.active .nav-text {
    color: var(--pool-primary);
    font-weight: 700;
}

.nav-item.active .custom-icon-nav {
    filter: grayscale(0%);
    opacity: 1;
}


/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-quick-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-quick-add:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pool-points {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-weight: 600;
}

.user-avatar {
    position: relative;
    cursor: pointer;
    font-size: 1rem; /* war 1.2rem */
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--pool-primary);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    z-index: 1000;
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    display: block;
    font-weight: 600;
}

.user-role {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s ease;
}

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

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

/* Sidebar */
.sidebar {
    grid-area: sidebar;
    background: white;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
}

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

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: var(--bg-tertiary);
}

.link-count,
.link-badge {
    margin-left: auto;
    padding: 0.125rem 0.5rem;
    background: var(--pool-primary);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pool Stats */
.pool-stats {
    background: white;
    border-radius: 8px;
    padding: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

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

.stat-value {
    font-weight: 600;
}

/* Leaderboard */
.leaderboard {
    list-style: none;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.leaderboard-rank {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--pool-primary);
    min-width: 30px;
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.8rem; /* war 0.9rem */
}

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-weight: 500;
}

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

/* Pool Party Button */
.pool-party-section {
    margin-top: auto;
}

.btn-special {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-dark) 100%);
    color: white;
    font-size: 1.1rem;
    padding: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Main Content */
.main-content {
    grid-area: main;
    padding: 1rem 2rem;
    overflow-y: auto;
    border-top: 1px solid var(--border-color);
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.modal.active {
    display: block;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

.modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease;
}

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

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.modal-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    background: white;
}

.modal-footer {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: white;
}

/* Modal button styles to match card buttons */
.modal-footer .btn-small {
    padding: 0.5rem 0.75rem;
    background: var(--pool-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-footer .btn-small:hover {
    background: var(--pool-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 192, 222, 0.3);
}

/* Legacy modal support */
.modal-content {
    /* Redirect to new structure */
    position: static;
    transform: none;
    padding: 0;
}

.modal-actions {
    /* Redirect to modal-footer */
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10000;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

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

.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast-info {
    border-left: 4px solid var(--pool-primary);
}

/* Onboarding Dialog - Nutze Standard Modal Styles */
#onboarding-modal .modal-dialog {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

#onboarding-modal .modal-body {
    text-align: center;
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.onboarding-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.onboarding-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 420px;
}

.onboarding-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s ease;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-y: auto;
}

.onboarding-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.onboarding-slide h2 {
    color: var(--pool-primary);
    margin-bottom: 1rem;
}

.onboarding-slide h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.onboarding-slide p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.slide-icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.slide-arrow {
    color: var(--text-light);
}

.onboarding-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.onboarding-dots {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--pool-primary);
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(91, 192, 222, 0.4);
}

/* Onboarding Content Styles */
.feature-highlights {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(91, 192, 222, 0.08) 0%, rgba(91, 192, 222, 0.03) 100%);
    border-radius: 12px;
    border: 1px solid rgba(91, 192, 222, 0.1);
    box-shadow: 0 2px 15px rgba(91, 192, 222, 0.05);
}

.feature-highlights p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.phase-item {
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(91, 192, 222, 0.08) 0%, rgba(91, 192, 222, 0.03) 100%);
    border-radius: 20px;
    border: 1px solid rgba(91, 192, 222, 0.15);
    box-shadow: 0 4px 20px rgba(91, 192, 222, 0.08);
    transition: all 0.3s ease;
}

.phase-item.single-phase {
    margin-bottom: 0;
    text-align: center;
    padding: 1.25rem;
}

.phase-item.single-phase .phase-description {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.phase-details {
    text-align: left;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(91, 192, 222, 0.2);
}

.phase-details h4 {
    color: var(--pool-primary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.phase-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.phase-details li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(91, 192, 222, 0.1);
    font-size: 0.85rem;
    line-height: 1.3;
}

.phase-details li:last-child {
    border-bottom: none;
}

.phase-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(91, 192, 222, 0.15);
}

.phase-header-inline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.phase-header-inline h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--pool-primary);
    font-weight: 600;
}

.phase-header-inline h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--pool-primary);
    font-weight: 700;
}

.phase-icon-small {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(91, 192, 222, 0.3));
}

.phase-icon-large {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(91, 192, 222, 0.4));
}

.phase-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}


/* Responsive */
@media (max-width: 1024px) {
    .phase-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }
    
    .phase-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-container {
        grid-template-areas:
            "header"
            "main";
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .main-header {
        padding: 1rem;
        min-height: 100px;
    }
    
    .header-left {
        gap: 1rem;
        margin-right: 1rem;
    }
    
    .header-logo {
        width: 80px;
        height: 80px;
    }
    
    .phase-nav {
        padding: 0.5rem;
        margin: 0 0.5rem;
    }
    
    .phase-nav::before {
        left: 15px;
        right: 15px;
        height: 3px;
    }
    
    .phase-nav::after {
        border-left-width: 10px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
    
    .nav-text {
        font-size: 0.7rem;
    }
    
    .nav-item {
        min-width: 60px;
    }
    
    .nav-item .nav-icon {
        width: 42px;
        height: 42px;
    }
    
    .nav-item .custom-icon-nav {
        width: 24px;
        height: 24px;
    }
    
    /* Spezifische Icons auch mobil größer */
    .nav-item .custom-icon-nav[src*="icon_poolbar.png"],
    .nav-item .custom-icon-nav[src*="icon_hotelschlüssel.png"] {
        width: 28px;
        height: 28px;
    }
    
    .main-content {
        padding: 1rem;
    }
} 

/* Custom Icons */
.custom-icon {
    height: 24px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
}

.custom-icon-small {
    height: 20px;
    width: auto;
}

.custom-icon-large {
    height: 32px;
    width: auto;
}

.custom-icon-nav {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

/* Phase-specific icon adjustments */
.nav-icon img {
    margin-right: 0.25rem;
}

.btn-icon img {
    margin-left: 0.25rem;
} 

/* ===========================================
   DEBUG STYLES
   =========================================== */
.debug-log {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 40%;
    background-color: rgba(0, 0, 0, 0.85);
    color: #f1f1f1;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    padding: 15px;
    overflow-y: auto;
    border-top: 3px solid var(--pool-orange);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
}

.debug-log-entry {
    padding: 8px;
    border-bottom: 1px solid #444;
    white-space: pre-wrap;
    word-break: break-all;
}

.debug-log-entry.error {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ffbaba;
}

.debug-log-entry strong {
    color: var(--pool-orange);
}

.debug-log-entry pre {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
    color: #a7d1ff;
} 

/* ===========================================
   Profile Page Styles
   =========================================== */
.profile-container {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-wrapper {
    position: relative;
    margin-right: 2rem;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    border: 4px solid var(--pool-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.edit-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-info .profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.profile-info .profile-username {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
}

.profile-info .profile-since {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.profile-stats .stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-stats .stat-item .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    color: var(--pool-primary);
}

.profile-stats .stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.profile-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pool-primary);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

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

/* Skeleton Loader for Profile */
.skeleton .skeleton-avatar {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-color: var(--border-color);
    animation: pulse 1.5s infinite;
}

.skeleton .skeleton-line {
    height: 20px;
    background-color: var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.skeleton .skeleton-line.title {
    width: 60%;
    height: 30px;
}

.skeleton .skeleton-line.text {
    width: 40%;
}

/* CSS Variables from pool-theme.css */
:root {
    /* Pool Colors */
    --pool-primary: #5BC0DE;
    --pool-light: #9DDCEC;
    --pool-dark: #2FA4CC;
    --pool-deep: #1B6B8C;
    
    /* Accent Colors */
    --accent-primary: #FF9800;
    --accent-light: #FFB74D;
    --accent-dark: #F57C00;
    --sunny-yellow: #FFC107;
}

/* Idea Card Additions */




/* Error State */
.error-state {
    text-align: center;
    padding: 3rem;
}

.error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
} 

/* ===========================================
   POOL VIEW - IDEEN-KACHELN MIT ANIMATIONEN
   =========================================== */

/* Phase Content Container */
.phase-header {
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.phase-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

/* .phase-icon entfernt - wird nicht mehr verwendet */

.phase-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
    white-space: nowrap;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.wave {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pool-primary);
    margin: 0 4px;
    animation: wave-loading 1.4s ease-in-out infinite;
}

.wave-1 { animation-delay: -0.32s; }
.wave-2 { animation-delay: -0.16s; }
.wave-3 { animation-delay: 0; }

@keyframes wave-loading {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ideas Grid */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Idea Card mit Schwimm-Animation */
.idea-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(91, 192, 222, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 350px;
    display: flex;
    flex-direction: column;
}

/* Wasser-Effekt Hintergrund */
.idea-card::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    right: -10px;
    height: 40px;
    background: linear-gradient(180deg, transparent 0%, rgba(91, 192, 222, 0.05) 50%, rgba(91, 192, 222, 0.1) 100%);
    border-radius: 50%;
    transform: scaleX(1.2);
}

/* Wellen-Animation für Pool-Ideen */
.idea-card.floating {
    animation: wave-motion 8s ease-in-out infinite;
}

/* Wellenphase 1: Erste Karte jeder 3er-Gruppe (1, 4, 7, 10...) */
.idea-card:nth-child(3n+1) {
    animation-delay: 0s;
}

/* Wellenphase 2: Zweite Karte jeder 3er-Gruppe (2, 5, 8, 11...) */
.idea-card:nth-child(3n+2) {
    animation-delay: -1.3s;
}

/* Wellenphase 3: Dritte Karte jeder 3er-Gruppe (3, 6, 9, 12...) */
.idea-card:nth-child(3n) {
    animation-delay: -2.7s;
}

@keyframes wave-motion {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-12px);
    }
    50% {
        transform: translateY(-6px);
    }
    75% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Hover-Effekt mit Wellen */
.idea-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(91, 192, 222, 0.25);
}

.idea-card:hover::before {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scaleX(1.2) scaleY(1);
    }
    50% {
        transform: scaleX(1.3) scaleY(1.1);
    }
    100% {
        transform: scaleX(1.2) scaleY(1);
    }
}

/* Idea Card Content */
.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.idea-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    padding-right: 1rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.86em; /* Fixed height to prevent layout shifts */
}

.idea-phase-badge {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    background: var(--pool-primary);
    color: white;
    border: none;
    border-radius: 1rem;
    white-space: nowrap;
    font-weight: 500;
}



.idea-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.idea-author-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.idea-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pool-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pool-primary);
    font-weight: bold;
    font-size: 0.7rem; /* war 0.75rem */
    flex-shrink: 0;
}

.idea-author {
    font-weight: 500;
}

/* Idea Tags */
.idea-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem; /* Halved from 0.5rem */
    position: relative;
    z-index: 1;
}

.idea-tags .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(91, 192, 222, 0.1);
    color: var(--pool-dark);
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.idea-tags .tag:hover {
    background: rgba(91, 192, 222, 0.2);
    transform: scale(1.05);
}

/* Idea Footer */
.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Voting */
.idea-votes {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vote-btn {
    background: none;
    border: none;
    padding: 0.2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 4px;
}

.vote-btn:hover {
    transform: scale(1.1);
    background: rgba(91, 192, 222, 0.1);
}

.vote-btn img {
    width: 20px;
    height: 20px;
}

.vote-btn.vote-up:hover {
    background: rgba(91, 192, 222, 0.1);
}

.vote-btn.vote-down:hover {
    background: rgba(244, 67, 54, 0.1);
}

.vote-btn.active {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vote-btn.vote-up.active {
    background: rgba(91, 192, 222, 0.2);
    border: 2px solid var(--pool-primary);
}

.vote-btn.vote-up.active img {
    filter: brightness(1.2) saturate(1.3);
}

.vote-btn.vote-down.active {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid #f44336;
}

.vote-btn.vote-down.active img {
    filter: brightness(1.2) saturate(1.3);
}

.vote-count {
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 30px;
    text-align: center;
}

/* Idea Actions */
.idea-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn-small {
    padding: 0.5rem 0.75rem;
    background: var(--pool-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-small:hover {
    background: var(--pool-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 192, 222, 0.3);
}

/* Spezifischer Stil für den Edit-Button für bessere Abgrenzung */
.btn-edit {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.5;
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
}

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

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Text Color Variables */
:root {
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #95a5a6;
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --bg-tertiary: #dee2e6;
    --border-color: #dee2e6;
    --success-color: #4caf50;
    --error-color: #f44336;
} 

/* ===========================================
   IDEA DETAILS MODAL
   =========================================== */

.idea-details {
    padding: 1rem 0;
}

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

.idea-details-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.idea-details-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.idea-details-section {
    margin-bottom: 1.5rem;
}

.idea-details-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.idea-details-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Cursor für klickbare Karten */
.idea-card {
    cursor: pointer;
}

.idea-card .btn-small {
    cursor: pointer;
}

/* ============================
   Styles moved from index.js to prevent conflicts
   ============================ */

/* Note: Some of these styles might override existing ones above - this is intentional to maintain JS functionality */

.phase-header {
    margin-bottom: 2rem;
}

.phase-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.phase-icon {
    font-size: 2.5rem;
}

.phase-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
}

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

.idea-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 320px; /* Compact height */
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.25rem; /* Halved from 0.5rem */
}

.idea-title {
    font-size: 1.25rem;
    font-weight: 600; /* Semi-bold instead of bold */
    color: var(--text-primary);
    margin: 0;
}

.idea-content {
    flex: 1; /* Takes available space */
    display: flex;
    flex-direction: column;
    margin-bottom: 0; /* Removed margin - text has its own margin now */
}

.idea-problem {
    color: var(--text-light); /* Same color as idea-date */
    font-weight: 400; /* Normal weight like date formatting */
    margin: 0 0 0.5rem 0; /* Add bottom margin to push meta down */
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Reduced to 4 lines for better balance */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1; /* Take available space in the content area */
}

.idea-meta-section {
    margin-bottom: 0.25rem; /* Halved from 0.5rem */
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Push to bottom */
    padding-top: 0.25rem; /* Halved from 0.5rem */
}



.vote-count {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 25px;
    text-align: center;
}

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

.empty-state {
    text-align: center;
    padding: 4rem;
}

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

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Text Tooltip Styles */
.text-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    line-height: 1.4;
    max-width: 300px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: tooltipFadeIn 0.2s ease;
}

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

/* ========================================
   Pool-Bar Phase Styles
   ======================================== */

.bar-layout {
    display: flex;
    gap: 15px;
    height: calc(100vh - 200px);
    margin-top: -0.25rem;
}

.bar-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 15px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bar-sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
}

.bar-ideas-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bar-idea-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.bar-idea-card:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-color: var(--pool-primary);
}

.bar-idea-card.active {
    background: var(--pool-light);
    border-color: var(--pool-primary);
    box-shadow: 0 3px 10px rgba(0, 174, 239, 0.2);
}

.bar-idea-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.bar-idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Universal Phase Badge Styles */
.idea-phase-badge,
.bar-phase-badge {
    background: var(--pool-primary);
    color: white;
    border: none;
    white-space: nowrap;
    font-weight: 500;
}

.bar-phase-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.bar-idea-author-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bar-idea-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pool-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pool-primary);
    font-weight: bold;
    font-size: 0.6rem; /* war 0.7rem */
    flex-shrink: 0;
}

.bar-idea-author {
    opacity: 0.8;
}

.bar-idea-votes {
    font-weight: 500;
    color: var(--pool-primary);
}

.bar-main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Challenge Details */
.challenge-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
}

.challenge-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.challenge-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.challenge-author-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pool-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pool-primary);
    font-weight: bold;
    font-size: 0.7rem; /* war 0.75rem */
    flex-shrink: 0;
}

.challenge-problem,
.challenge-description {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 174, 239, 0.05);
    border-radius: 8px;
}

.challenge-problem h3,
.challenge-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.challenge-problem p,
.challenge-description p {
    color: var(--text-primary);
    line-height: 1.6;
}

.challenge-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-section {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 18px;
}

.challenge-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.challenge-questions {
    list-style: none;
    padding: 0;
}

.challenge-questions li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.95rem;
}

.challenge-questions li:last-child {
    border-bottom: none;
}

.challenge-questions strong {
    color: var(--pool-primary);
}

/* Challenge Response Form */
.challenge-response-form {
    background: rgba(0, 174, 239, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.form-select {
    width: 130px;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    background: white;
    cursor: pointer;
}

.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 70px;
    margin-bottom: 10px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--pool-primary);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

/* Challenge Responses */
.challenge-responses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.challenge-response {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s ease;
}

.challenge-response:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.challenge-response.pro {
    background: rgba(76, 175, 80, 0.05);
}

.challenge-response.contra {
    background: rgba(244, 67, 54, 0.05);
}

.challenge-response.neutral {
    background: rgba(158, 158, 158, 0.05);
}

.response-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.response-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--pool-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pool-primary);
    font-weight: bold;
    font-size: 0.7rem; /* war 0.8rem */
}

.response-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.response-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.response-type-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
}

.response-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.response-drinks {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-drink {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.2);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    color: var(--pool-primary);
}

.btn-drink:hover {
    background: var(--pool-primary);
    color: white;
    transform: scale(1.05);
}

/* Removed btn-drink img styles as we use emoji now */

.response-content {
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 0.9rem;
}

.no-responses {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Placeholder sections */
.analysis-placeholder,
.revenue-placeholder {
    padding: 30px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive Design for Bar */
@media (max-width: 1024px) {
    .bar-layout {
        flex-direction: column;
        height: auto;
    }
    
    .bar-sidebar {
        width: 100%;
        height: 200px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .bar-ideas-list {
        flex-direction: row;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .bar-idea-card {
        min-width: 250px;
    }
    
    .bar-main-content {
        height: auto;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .challenge-title {
        font-size: 1.5rem;
    }
    
    .challenge-section {
        padding: 15px;
    }
    
    .bar-main-content {
        padding: 20px;
    }
    
    .challenge-response-form {
        padding: 15px;
    }
    
    .response-header {
        flex-wrap: wrap;
    }
    
    .response-meta {
        flex: none;
        width: 100%;
    }
} 