/* General Body Styles */
body {
    background-color: #f0f2f5;
    font-family: 'Pretendard', sans-serif;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to the top */
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1800px; /* Increased max-width */
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

header h1 {
    font-size: 2.5rem; /* Slightly smaller */
    font-weight: 900;
    color: #2c3e50; /* Darker text */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    
}

header .buttons .button {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 0.7rem 1.5rem;
    border-radius: 25px; /* Pill-shaped */
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none;
}

#edit-btn {
    background-color: #8e44ad; /* Purple */
    color: white;
    border-color: #8e44ad;
}

#reset-btn {
    background-color: #2c3e50; /* Dark Gray */
    color: white;
    border-color: #2c3e50;
}

/* Main Layout */
main {
    display: grid;
    grid-template-columns: 1fr 2fr 2fr; /* 3 columns */
    gap: 2rem;
}

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

.card {
    background-color: #fff;
    border-radius: 25px; /* More rounded */
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: none;
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #34495e; /* Slightly different dark blue */
}

/* Title Bars */
.title-bar {
    background-color: #fff;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #34495e;
}

.title-bar span:last-child {
    font-weight: 900;
    font-size: 2rem;
    color: #8e44ad;
}


/* Left Column: Status Card */
.status-card {
    background-color: transparent; /* Make it transparent */
    box-shadow: none;
    padding: 0;
}
.status-card h2 {
    padding-left: 1rem;
}
.status-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
    border-radius: 25px;
    padding: 1rem;
     box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.status-card li {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem; /* Adjusted */
    padding: 1.2rem 1rem;
    border-bottom: 1px solid #f0f2f5;
}
.status-card li:last-child {
    border-bottom: none;
}
.status-card li span:first-child {
    font-weight: 500;
    color: #555;
}
.status-card li span:last-child {
    font-weight: bold;
    color: #333;
}

/* Middle Column: Bingo */
.bingo-card #bingo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.bingo-cell {
    background-color: #f5f0fa; /* Light lavender */
    border-radius: 18px; /* Softer corners */
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #5a3e7b;
    transition: all 0.3s ease;
}

.bingo-cell.completed {
    background-color: #8e44ad;
    color: white;
}

/* Right Column: Mission List */
.mission-card #mission-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mission-item {
    background-color: #f5f0fa; /* Light lavender */
    padding: 1rem;
    border-radius: 15px;
}

.mission-item .title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #555;
}

.mission-item .progress-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mission-item .progress-bar-container {
    background-color: #e8ddee; /* Lighter purple */
    border-radius: 20px;
    height: 12px;
    flex-grow: 1; /* Take remaining space */
}

.mission-item .progress-bar {
    background-color: #9b59b6; /* Main purple */
    height: 100%;
    border-radius: 20px;
    width: 0%;
    transition: width 0.4s ease;
}

.mission-item .progress-text {
    font-size: 1rem;
    font-weight: bold;
    color: #9b59b6;
    background-color: #e8ddee;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.mission-item.completed .progress-bar {
    background-color: #27ae60; /* Green for completion */
}
