.missions-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.mission-title-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Main Missions View Layout */
#view-missions {
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
    gap: 20px;
    align-items: flex-start;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    box-sizing: border-box;
}

#view-missions.planning-mode {
    position: relative;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 30px !important;
    padding: 20px 40px !important;
    height: auto !important;
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 80px !important;
}

#view-missions.planning-mode #mission-planning {
    flex: 0 0 280px;
    height: 100%;
    overflow-y: auto;
    padding: 0;
}

#view-missions.planning-mode #missions-top-bar {
    display: none !important;
}

#view-missions.hidden {
    display: none !important;
}

.planning-hero-area {
    flex: 1;
    display: flex;
    height: 100%;
    overflow: hidden;
}

.available-heroes-column {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    overflow: hidden;
}

.mission-hero-selector {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.mission-hero-selector::-webkit-scrollbar {
    width: 6px;
}

.mission-hero-selector::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.mission-hero-selector::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.mission-hero-selector.hidden {
    display: none;
}

.mission-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    padding-right: 5px;
}

.mission-grid .mission-card {
    box-sizing: border-box;
    max-width: none;
    min-width: 0;
}

/* Planning Dashboard Components */
.mission-planning {
    width: 100%;
    margin-bottom: 20px;
}

.planning-dashboard {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 20px;
}

.dashboard-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.dashboard-difficulty {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.dashboard-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all var(--transition-fast);
}

.dashboard-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 700;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eee;
}

.class-toggle-bar-v2 {
    display: flex;
    background: #111;
    padding: 8px 12px;
    gap: 8px;
    align-items: center;
}

.class-toggle-bar-v2 .toggle-btn {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #888;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast);
}

.class-toggle-bar-v2 .toggle-btn.active {
    background: #333;
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

#btn-start-mission {
    position: absolute;
    bottom: 25px;
    left: 175px;
    /* Aligned with dashboard col */
    transform: translateX(-50%);
    width: auto;
    min-width: 220px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 100;
    background: var(--hp-gradient);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(211, 47, 47, 0.4);
}

#btn-start-mission:hover:not(:disabled) {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(211, 47, 47, 0.6);
}

#btn-cancel-mission {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 100;
    background: #222;
    color: #888;
    border: 2px solid #444;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    transition: all var(--transition-fast);
}

#btn-cancel-mission:hover {
    background: #333;
    color: #fff;
    border-color: #666;
    transform: scale(1.1) rotate(90deg);
}

/* .empty-state-msg styles removed and moved to empty_states.css */

.hint {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    width: 100%;
}