#matoabt-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 0;
    background: #fdfdfd;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    color: #333;
    box-sizing: border-box;
}

.matoabt-test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.matoabt-test-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.matoabt-test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.matoabt-btn {
    background: #e91e63;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.matoabt-btn:hover {
    background: #c2185b;
}

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

.matoabt-user-info {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.matoabt-user-info input, .matoabt-user-info select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

/* Optical Sheet Styles */
.optical-sheet-container {
    background: white;
    border: 2px solid #e91e63;
    border-radius: 5px;
    padding: 0;
    overflow: hidden;
}

.optical-header {
    background: #e91e63;
    color: white;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.optical-columns {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #fff;
}

.optical-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.optical-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.q-num {
    width: 30px;
    text-align: right;
    color: #e91e63;
    font-weight: bold;
    font-size: 16px;
}

.bubbles {
    display: flex;
    gap: 5px;
}

.bubble {
    width: 36px;
    height: 36px;
    border: 2px solid #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #e91e63;
    transition: all 0.2s;
    user-select: none;
}

.bubble:hover {
    background: #fce4ec;
}

.bubble.active {
    background: #444;
    color: white;
    border-color: #444;
}

.matoabt-btn-submit {
    display: block;
    width: fit-content;
    min-width: 200px;
    margin: 30px auto;
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.matoabt-btn-submit:hover {
    background: #43a047;
}

/* Result Card */
.result-card {
    text-align: center;
    padding: 20px;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.stat-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.stat-box.highlight {
    background: #e3f2fd;
    border: 1px solid #2196f3;
}

.ranking-info {
    margin: 20px 0;
    font-size: 18px;
    color: #555;
}

.ranking-info strong {
    color: #e91e63;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #matoabt-container {
        padding: 10px;
    }

    .matoabt-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .matoabt-header h2 {
        font-size: 18px;
        margin: 0;
    }

    .matoabt-user-info {
        flex-direction: column;
    }

    .optical-columns {
        flex-direction: column;
        gap: 0;
        padding: 10px 5px;
    }

    .optical-column {
        width: 100%;
    }

    .optical-row {
        justify-content: center;
        padding: 5px 0;
        border-bottom: 1px solid #f9f9f9;
    }

    .q-num {
        width: 25px;
        font-size: 14px;
    }

    .bubbles {
        gap: 8px;
    }

    .bubble {
        width: 40px; /* Slightly larger for easier touch */
        height: 40px;
        font-size: 18px;
    }

    .matoabt-test-grid {
        grid-template-columns: 1fr;
    }
}
