input[type="text"],
select {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

input:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

.question-card {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.question-number {
    font-weight: bold;
    margin-bottom: 10px;
}

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

.option-btn {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.option-btn:hover {
    background: #f1f1f1;
}

.leaderboard {
    margin: 20px auto;
    max-width: 600px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    padding: 15px;
    margin: 10px 0;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards ease-out;
}

.result-card:hover {
    transform: translateY(-3px);
}

.result-rank {
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
}

.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background: #999;
}

.rank-badge.top1 {
    background: #FFD700;
    color: #333;
}

.rank-badge.top2 {
    background: #C0C0C0;
    color: #333;
}

.rank-badge.top3 {
    background: #CD7F32;
    color: #fff;
}

.progress {
    width: 100%;
    height: 18px;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    transition: width 1.5s ease;
    background-color: #e58024;
}

.share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card {
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: none;
    background: #fff;
}

.card-header {
    background: #4f46e5;
    color: #fff;
    font-weight: bold;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.option-btn {
    display: block;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.option-btn:hover {
    border-color: #4f46e5;
    background: #f3f4ff;
}

.option-btn input {
    margin-right: 8px;
}

.table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table th {
    background: #f3f4f6;
    text-align: center;
}

.table td {
    text-align: center;
}

/* أزرار المشاركة */
.share-buttons a img {
    border-radius: 50%;
    transition: transform 0.2s;
}

.share-buttons a img:hover {
    transform: scale(1.1);
}


#createNewQuiz {
    position: fixed;
    bottom: 20%;
    right: 0px;
    z-index: 1000;
    border: none;
    outline: none;
    background-color: #e58024;
    color: white;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 5px 0px 0px 5px;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#createNewQuiz:hover {
    background-color: #b1580a;
}