* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, #2c3e50, #1a2530);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.header-container {
    max-width: 1400px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.pcce-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pcce-logo-img {
    width: 60px;
    height: 60px;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

.pcce-logo-text {
    display: flex;
    flex-direction: column;
}

.pcce-logo-text .main {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.pcce-logo-text .sub {
    font-size: 12px;
    opacity: 0.9;
}

.header-divider {
    width: 2px;
    height: 45px;
    background: rgba(255, 255, 255, 0.3);
}

.virtual-labs-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.virtual-labs-logo i {
    font-size: 32px;
    color: #3498db;
}

.virtual-labs-logo h1 {
    font-size: 26px;
    font-weight: 600;
}

.virtual-labs-logo span {
    color: #3498db;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.user-info i {
    font-size: 20px;
    color: #3498db;
}

.page-wrapper {
    display: flex;
    flex: 1 0 auto;
    width: 100%;
    margin: 0;
    gap: 0;
    background-color: #f8f9fa;
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #2c3e50, #1a2530);
    padding: 20px 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: fit-content;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: white;
    border-left-color: #3498db;
}

.nav-item.active {
    background-color: rgba(52, 152, 219, 0.2);
    color: white;
    border-left-color: #3498db;
}

.nav-item i {
    font-size: 20px;
    color: #3498db;
    width: 24px;
    text-align: center;
}

.nav-item span {
    font-size: 16px;
    font-weight: 500;
}

/* Main Content */
.container.home-content {
    flex: 1;
    padding: 40px 60px;
    margin: 0;
    max-width: none;
    width: 100%;
}

.content {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

/* Content Header */
.content-header {
    background-color: white;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    max-width: 1200px;
}

.content-header h2 {
    font-size: 32px;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
}

.content-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin-top: 5px;
}

.breadcrumb {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

/* Aim Content */
.aim-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 175px;
    max-width: 1200px;
}

.aim-content ul {
    list-style-type: disc;
    padding-left: 30px;
}

.aim-content ul li {
    color: #2c3e50;
    font-size: 17px;
    line-height: 2;
    margin-bottom: 15px;
}

/* Landing Page */
.landing-screen {
    height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.landing-screen h2 {
    font-size: 32px;
    color: #2c3e50;
}

.landing-screen p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
}

.start-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(to right, #3498db, #2c80b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* home page */
.aim-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.section-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.section-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.section-card.active {
    background-color: #e8f4fc;
    border-color: #3498db;
}

.section-card i {
    font-size: 32px;
    color: #3498db;
    margin-bottom: 15px;
}

.section-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.section-card p {
    font-size: 14px;
    color: #7f8c8d;
}

.section-card a {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    padding: 20px;
}

/* questions */
.question-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
}

.question-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 22px;
}

.question-text {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Feedback */
.feedback-section {
    background-color: #e8f4fc;
    border-radius: 8px;
    padding: 25px;
    border: 1px solid #d1e7ff;
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feedback-header i {
    font-size: 28px;
    color: #3498db;
}

.feedback-header h3 {
    color: #2c3e50;
    font-size: 22px;
}

.feedback-content {
    margin-bottom: 25px;
}

.feedback-content p {
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.6;
}

.feedback-button {
    background: linear-gradient(to right, #3498db, #2c80b9);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.feedback-button:hover {
    background: linear-gradient(to right, #2c80b9, #216794);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Footer */
footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    border-top: 1px solid #eee;
    background-color: white;
    width: 100%;
}

.footer-logo {
    display: inline-block;
    margin: 0 5px;
    font-weight: bold;
    color: #2c3e50;
}

/* Tablets */
@media (max-width: 900px) {
    .header-container {
        justify-content: center;
        text-align: center;
    }

    .pcce-logo-container {
        border-right: none;
        padding-right: 0;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
        align-items: center;
    }

    .pcce-logo-container {
        flex-direction: column;
        align-items: center;
        padding-right: 0;
        border-right: none;
    }

    .header-divider {
        width: 80%;
        height: 2px;
        margin: 10px auto;
    }

    .pcce-logo-img {
        display: block;
        margin: 0 auto 8px auto;
    }

    .virtual-labs-logo,
    .user-info {
        justify-content: center;
        margin-top: 8px;
    }

    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: none;
        position: relative;
        padding: 10px 0;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 5px;
        padding: 0 10px;
    }

    .nav-item {
        flex-direction: column;
        padding: 10px 15px;
        min-width: 80px;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
        gap: 5px;
    }

    .nav-item:hover,
    .nav-item.active {
        border-left: none;
        border-bottom-color: #3498db;
    }

    .nav-item span {
        font-size: 12px;
    }

    .container.home-content {
        padding: 20px;
    }

    .content-header {
        padding: 20px;
    }

    .aim-content {
        padding: 20px;
    }
}

/* Small Mobile */
@media (max-width: 600px) {
    .virtual-labs-logo h1 {
        font-size: 22px;
    }

    .pcce-logo-text .main {
        font-size: 16px;
    }

    .content-header h2 {
        font-size: 24px;
    }

    .aim-content ul li {
        font-size: 15px;
    }
}

/* Theory */
.theory-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
}

.theory-section {
    margin-bottom: 40px;
}

.theory-section h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    padding-left: 15px;
    font-weight: 600;
}

.theory-section p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.theory-section ul,
.theory-section ol {
    padding-left: 30px;
    margin-bottom: 15px;
}

.theory-section ul li,
.theory-section ol li {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.theory-section ol {
    list-style-type: decimal;
}

.theory-section ul {
    list-style-type: disc;
}

.formula {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #2c3e50;
    border-left: 3px solid #3498db;
    margin: 15px 0;
}

.theory-table {
    width: 100%;
    max-width: 600px;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.theory-table thead tr {
    background-color: #3498db;
    color: white;
}

.theory-table th,
.theory-table td {
    border: 1px solid #ddd;
    padding: 12px 15px;
    text-align: center;
}

.theory-table th {
    font-weight: 600;
    font-size: 16px;
}

.theory-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.theory-table tbody tr:hover {
    background-color: #e8f4fc;
}

.theory-table td {
    color: #2c3e50;
    font-size: 15px;
}

/* pretest-postest */
.pretest-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
}

.question-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.question-number {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.question-header i {
    font-size: 24px;
    color: #3498db;
}

.question-text {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
    font-weight: 500;
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    margin-bottom: 12px;
    background-color: white;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #3498db;
    background-color: #f0f8ff;
    transform: translateX(5px);
}

.option.selected {
    border-color: #3498db;
    background-color: #e8f4fc;
    border-width: 3px;
}

.option.correct-answer {
    border-color: #27ae60;
    background-color: #e8f8f0;
}

.option.wrong-answer {
    border-color: #e74c3c;
    background-color: #fef5f5;
}

.option-label {
    font-weight: 600;
    color: #3498db;
    min-width: 30px;
}

.option span:last-of-type {
    color: #2c3e50;
    font-size: 16px;
    flex: 1;
}

/* Feedback */
.feedback {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.correct-feedback {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wrong-feedback {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.feedback i {
    font-size: 18px;
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(to right, #3498db, #2c80b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(to right, #2c80b9, #216794);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

/* Results Section */
.results-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-top: 30px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.results-header i {
    font-size: 32px;
}

.results-header h3 {
    font-size: 28px;
    margin: 0;
}

.results-body {
    margin-bottom: 30px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.score-label {
    font-size: 20px;
    font-weight: 500;
}

.score-value {
    font-size: 36px;
    font-weight: 700;
}

.score-percentage {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.score-message {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
}

.retry-btn {
    background-color: white;
    color: #667eea;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.review-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.review-btn:hover {
    background-color: white;
    color: #667eea;
    transform: scale(1.05);
}

/* Reference */
.references-content {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
}

.reference-section {
    margin-bottom: 40px;
}

.reference-section h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.reference-section h3 i {
    color: #3498db;
    font-size: 24px;
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reference-list li {
    margin-bottom: 20px;
}

.reference-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
}

.reference-item:hover {
    background-color: #e8f4fc;
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reference-item>i {
    color: #3498db;
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.reference-details {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
}

.reference-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.reference-details em {
    color: #3498db;
    font-style: italic;
}

.reference-details a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
}

.reference-details a:hover {
    color: #2c80b9;
    text-decoration: underline;
}

.reference-details a i {
    font-size: 12px;
}

.note-box {
    background: linear-gradient(135deg, #e8f4fc 0%, #d4edfc 100%);
    border: 2px solid #3498db;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.note-box>i {
    color: #3498db;
    font-size: 24px;
    flex-shrink: 0;
}

.note-box strong {
    color: #2c3e50;
    font-weight: 600;
}

.note-box div {
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
}

/* Contributors */
.contributor-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #3498db;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contributor-card:hover {
    background-color: #e8f4fc;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-card {
    margin-bottom: 20px;
}

.contributor-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #3498db, #2c80b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid rgb(95, 162, 244);
}

.guide-card:last-child .contributor-avatar img {
    object-position: center 0.1%;
}

.contributor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contributor-info {
    flex: 1;
}

.contributor-info h4 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 600;
}

.contributor-role {
    font-size: 14px;
    color: #3498db;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contributor-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #2c3e50;
    font-size: 15px;
}

.detail-item i {
    color: #3498db;
    font-size: 16px;
    width: 20px;
}

.detail-item a {
    color: #3498db;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: all 0.3s ease;
}

.detail-item a:hover {
    color: #2c80b9;
    text-decoration: underline;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.developers-grid .contributor-card:first-child .contributor-avatar img {
    transform: scale(1.1);
    object-position: center;
}

.developers-grid .contributor-card:nth-child(2) .contributor-avatar img {
    transform: scale(1.1);
    object-position: center;
}

@media (max-width: 768px) {
    .contributor-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contributor-details {
        align-items: center;
    }

    .developers-grid {
        grid-template-columns: 1fr;
    }
}

/* Feedback */
.feedback-content-page {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
}

.feedback-intro {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: linear-gradient(135deg, #e8f4fc 0%, #d4edfc 100%);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 5px solid #3498db;
}

.feedback-intro>i {
    font-size: 48px;
    color: #3498db;
    flex-shrink: 0;
}

.feedback-intro h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.feedback-intro p {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.feedback-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-group label i {
    color: #3498db;
    font-size: 18px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 32px;
    color: #ddd;
    transition: all 0.2s ease;
    margin: 0;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #ffc107;
}

.star-rating label:hover {
    transform: scale(1.1);
}

.rating-text {
    font-size: 15px;
    color: #7f8c8d;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.submit-feedback-btn {
    background: linear-gradient(to right, #3498db, #2c80b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-feedback-btn:hover {
    background: linear-gradient(to right, #2c80b9, #216794);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.reset-btn {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.reset-btn:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    border: 2px solid #28a745;
}

.success-message i {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 28px;
    color: #155724;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message p {
    font-size: 16px;
    color: #155724;
    margin-bottom: 25px;
    max-width: 500px;
}

.submit-another-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.submit-another-btn:hover {
    background-color: #218838;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .feedback-content-page {
        padding: 20px;
    }

    .feedback-intro {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 20px;
    }

    .feedback-intro>i {
        font-size: 36px;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-feedback-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }

    .rating-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .star-rating label {
        font-size: 28px;
    }
}

/* Simulation */
.simulation-content {
    max-width: 1200px;
}

.simulation-box {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #3498db;
    margin-bottom: 30px;
}

.simulation-box h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.simulation-box h3 i {
    color: #3498db;
    font-size: 24px;
}

.sim-form-group {
    margin-bottom: 20px;
}

.sim-form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.sim-form-group label i {
    color: #3498db;
    font-size: 18px;
}

.sim-form-group select,
.sim-form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.sim-form-group select:focus,
.sim-form-group input:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sim-form-group select {
    cursor: pointer;
}

.input-hint {
    display: block;
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
    font-style: italic;
}

.solve-btn {
    width: 100%;
    background: linear-gradient(to right, #3498db, #2c80b9);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.solve-btn:hover {
    background: linear-gradient(to right, #2c80b9, #216794);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.error-message {
    background-color: #fee2e2;
    border: 2px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
    font-weight: 500;
}

#resultsContainer {
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
}

.result-box {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
    border-left: 5px solid #27ae60;
    width: 100%;
    box-sizing: border-box;
}

.result-box.minimized {
    border-left-color: #f39c12;
}

.result-box.kmap-visual {
    border-left-color: #9b59b6;
    overflow-x: auto;
}

.result-box h3 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-box h3 i {
    font-size: 22px;
}

.result-box:nth-child(1) h3 i {
    color: #27ae60;
}

.result-box:nth-child(2) h3 i {
    color: #f39c12;
}

.result-box:nth-child(3) h3 i {
    color: #9b59b6;
}

.output-display {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-radius: 6px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 18px;
    color: #2c3e50;
    border: 1px solid #e0e0e0;
    min-height: 50px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

/* K-Map Table */

#kmap {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

.kmap-table {
    border-collapse: collapse;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 100%;
}

.kmap-table th,
.kmap-table td {
    border: 2px solid #94a3b8;
    padding: 12px 18px;
    text-align: center;
    font-size: 16px;
}

.kmap-table th {
    background-color: #e2e8f0;
    color: #2c3e50;
    font-weight: 700;
}

.kmap-table td {
    background-color: white;
    color: #64748b;
    font-weight: 500;
    min-width: 60px;
}

.kmap-table td.one {
    background-color: #dcfce7;
    color: #166534;
    font-weight: 700;
    font-size: 18px;
}

@media (max-width: 768px) {
    .simulation-box {
        padding: 20px;
    }

    .solve-btn {
        font-size: 16px;
        padding: 12px 30px;
    }

    .output-display {
        font-size: 15px;
        padding: 12px 15px;
    }


    .kmap-table {
        font-size: 12px;
    }

    .kmap-table th,
    .kmap-table td {
        padding: 6px 8px;
        min-width: 40px;
    }

    /* Circuit Mobile */
    .circuit-canvas {
        padding: 10px;
    }

    .circuit-canvas svg {
        width: 100%;
        max-width: none;
    }

    .circuit-description {
        padding: 15px;
        font-size: 14px;
    }
}

/* Logic Circuit */
.circuit-visual {
    border-left-color: #e74c3c;
    overflow-x: auto;
}

.circuit-visual h3 i {
    color: #e74c3c;
}

.circuit-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow-x: auto;
    width: 100%;
}

.circuit-canvas svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.circuit-description {
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.circuit-description p {
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
}

.circuit-description ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.circuit-description li {
    padding: 8px 0;
    color: #2c3e50;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.circuit-description li:last-child {
    border-bottom: none;
}

.circuit-description strong {
    color: #3498db;
}

@media (max-width: 768px) {
    .circuit-canvas {
        padding: 10px;
    }

    .circuit-description {
        padding: 15px;
    }
}

@media (max-width: 480px) {

    .kmap-table th,
    .kmap-table td {
        padding: 4px 6px;
        min-width: 35px;
        font-size: 11px;
    }

    .circuit-canvas {
        padding: 5px;
    }
}