/* General Body & Container Styling */

.container {
    max-width 900px;
    margin: auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #005a9c; /* A professional blue */
}

.intro {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
}

/* Level Selector Tabs */
.level-selector {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.level-tab {
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background-color: transparent;
    font-size: 1em;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.level-tab:hover {
    color: #005a9c;
}

.level-tab.active {
    border-bottom: 3px solid #005a9c;
    color: #005a9c;
    font-weight: bold;
}

/* Level Description Box Styling */
#level-description-container {
    margin-bottom: 30px;
}

.level-description {
    display: none; /* Hide by default, JS will show the correct one */
    padding: 15px 20px;
    background-color: #eaf2f8; /* A light, informative blue */
    border-left: 5px solid #005a9c;
    border-radius: 5px;
    text-align: left;
    animation: fadeIn 0.5s;
}

.level-description p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* PDCA Cycle Styling */
.pdca-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.pdca-cycle {
    position: relative;
    width: 300px;
    height: 300px;
    border: 10px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdca-stage {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, color 0.3s, border-color 0.3s;
    font-weight: bold;
}

.pdca-stage:hover {
    transform: scale(1.05);
}

/* Positioning the stages */
#plan  { top: -25px;  left: 50%; transform: translateX(-50%); }
#do    { right: -25px; top: 50%;  transform: translateY(-50%); }
#check { bottom: -25px; left: 50%; transform: translateX(-50%); }
#act   { left: -25px;  top: 50%;  transform: translateY(-50%); }

.pdca-center {
    font-size: 1.2em;
    font-weight: bold;
    color: #666;
}

/* Default Stage Colors */
#plan  { background-color: #ffeedb; color: #f39c12; }
#do    { background-color: #e9ecef; color: #6c757d; }
#check { background-color: #fff9c4; color: #f1c40f; }
#act   { background-color: #dbeafe; color: #2563eb; }

/* Hover Stage Colors */
#plan:hover  { background-color: #fde8cf; }
#do:hover    { background-color: #dee2e6; }
#check:hover { background-color: #fff5b1; }
#act:hover   { background-color: #d0e3fd; }

/* Active Stage Colors */
#plan.active {
    background-color: #f39c12; /* Orange */
    border-color: #d35400;
    color: #fff;
}
#do.active {
    background-color: #6c757d; /* Grey */
    border-color: #495057;
    color: #fff;
}
#check.active {
    background-color: #f1c40f; /* Yellow */
    border-color: #c29d0b;
    color: #333; /* Dark text for yellow bg */
}
#act.active {
    background-color: #2563eb; /* Blue */
    border-color: #1d4ed8;
    color: #fff;
}

/* Content Display Area */
#content-display {
    text-align: left;
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
    min-height: 200px; /* Ensures container doesn't jump in size */
}

.content-block {
    display: none; /* Hide all content blocks by default */
    animation: fadeIn 0.5s;
}

.content-block h3 {
    color: #005a9c;
    margin-top: 0;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.content-block ul {
    list-style-type: disc;
    padding-left: 20px;
}

.content-block li {
    margin-bottom: 10px;
}

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