body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #4a6bff 0%, #2541b2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

#progress-bar {
    width: 80%;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px auto 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

#progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

/* New sticky progress container */
.sticky-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #4a6bff 0%, #2541b2 100%);
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.sticky-progress #sticky-progress-bar {
    width: 80%;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.sticky-progress #sticky-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

nav {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;          /* 🔴 prevent moving to next line */
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;           /* allow horizontal scroll if needed */
    white-space: nowrap;
}

nav li {
    margin: 0 8px;              /* 🔽 reduced from 15px */
    flex-shrink: 0;             /* prevents items from shrinking */
}


nav a {
    text-decoration: none;
    color: #2541b2;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #f0f4ff;
    color: #4a6bff;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #2541b2;
    border-bottom: 2px solid #f0f4ff;
    padding-bottom: 10px;
    margin-top: 0;
}

button {
    background: linear-gradient(135deg, #4a6bff 0%, #2541b2 100%);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

button:hover {
    background: linear-gradient(135deg, #5a77ff 0%, #3551c2 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input, select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin: 10px 0;
    width: 100%;
    max-width: 300px;
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 500;
}

#drag-container {
    width: 200px;
    height: 60px;
    background-color: #f0f4ff;
    margin: 15px 0;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#draggable {
    background: linear-gradient(135deg, #ff4a6b 0%, #b22541 100%);
    color: white;
    padding: 15px;
    text-align: center;
    cursor: grab;
    border-radius: 5px;
    width: 80%;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

#drop-container {
    width: 250px;
    height: 100px;
    background-color: #f0f4ff;
    margin: 15px 0;
    text-align: center;
    border: 2px dashed #4a6bff;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#drop-container.empty {
    line-height: 100px;
}

#drop-container:not(.empty) {
    line-height: normal;
}

#drop-container:hover {
    background-color: #e6ecff;
}

footer {
    text-align: center;
    background: linear-gradient(135deg, #2541b2 0%, #1a2d80 100%);
    color: white;
    padding: 20px;
    margin-top: 50px;
}

/* Result displays */
[id$="-result"] {
    margin-top: 15px;
    padding: 10px;
    background-color: #f0f4ff;
    border-left: 4px solid #4a6bff;
    border-radius: 0 5px 5px 0;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    section {
        padding: 20px;
    }
}


/* Mission 10 - Tooltip Hover */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  
  #tooltip-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #1D4D7F;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
  }
  
  #tooltip-box {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: #111;
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
  
    /* hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }
  
  #tooltip-box::after {
    content: "";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #111 transparent transparent;
  }
  
  /* show tooltip on hover */
  .tooltip-wrapper:hover #tooltip-box {
    opacity: 1;
    visibility: visible;
  }
  
/* Mission 11 - Table Styles */
.practice-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.practice-table thead tr {
    background-color: #2541b2;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

.practice-table th,
.practice-table td {
    padding: 12px 15px;
}

.practice-table tbody tr {
    border-bottom: 1px solid #dddddd;
    transition: background-color 0.2s ease;
}

.practice-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.practice-table tbody tr:last-of-type {
    border-bottom: 2px solid #2541b2;
}

.practice-table tbody tr:hover {
    background-color: #f0f4ff;
}

.practice-table button {
    margin-top: 0;
    padding: 5px 15px;
    font-size: 0.8rem;
}

.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status.pending {
    background-color: #ffeeba;
    color: #856404;
}

.status.processed {
    background-color: #d4edda;
    color: #155724;
}

@media screen and (max-width: 600px) {
    .practice-table {
        display: block;
        overflow-x: auto;
    }
}

/* Mission 12 - Column Drag Styles */
.drag-columns-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.drag-column {
    flex: 1;
    min-height: 200px;
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.drag-column h3 {
    text-align: center;
    color: #2541b2;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.drag-item {
    background: white;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: grab;
    border-left: 4px solid #4a6bff;
    font-weight: 500;
}

.drag-item:active {
    cursor: grabbing;
}

@media screen and (max-width: 600px) {
    .drag-columns-container {
        flex-direction: column;
    }
}

/* Mission 13 - Wizard Styles */
.wizard-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.wizard-step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.wizard-step-indicator.active {
    background: #4a6bff;
    color: white;
}

.wizard-step-line {
    height: 2px;
    background: #ddd;
    flex: 1;
    max-width: 50px;
    margin: 0 -5px;
}

.wizard-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

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

.wizard-panel h3 {
    margin-bottom: 15px;
    color: #2541b2;
}

.wizard-options {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.wizard-opt {
    flex: 1;
    padding: 15px;
    background: white;
    border: 2px solid #eee;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wizard-opt:hover {
    border-color: #4a6bff;
    background: #f0f4ff;
}

.wizard-opt.selected {
    border-color: #4a6bff;
    background: #4a6bff;
    color: white;
}

.wizard-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.secondary-button {
    background: #6c757d;
    color: white;
}

.secondary-button:hover {
    background: #5a6268;
}

/* Spinner for loading state */
.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(0,0,0,0.1);
    border-top: 4px solid #4a6bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
