* { 
    box-sizing: border-box; 
}

body {
    font-family: Arial, sans-serif;
    background-color: #6c757d;
    background-image: url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.quiz-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.hidden { 
    display: none !important; 
}

/* Pogas un ieguvumu elementi */
button, .btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

button:hover, .btn:hover { 
    background-color: #0056b3; 
}

.btn-danger { background-color: #dc3545; }
.btn-danger:hover { background-color: #bd2130; }
.btn-secondary { background-color: #6c757d; }
.btn-secondary:hover { background-color: #545b62; }

/* Tabulas Admin skatā */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

.data-table th, .data-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Formas elementu stili */
input[type="text"], select {
    width: 100%;
    padding: 10px;
    margin: 10px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

.form-group {
    text-align: left;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: bold;
    font-size: 14px;
}

.error-message {
    color: #721c24;
    background-color: #f8d7da;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.progress-container {
    margin-bottom: 20px;
}
.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    font-weight: bold;
}
.progress-bar-background {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    transition: width 0.3s ease-in-out;
}
.feedback {
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
}
.correct { background-color: #d4edda; color: #155724; }
.incorrect { background-color: #f8d7da; color: #721c24; }
.explanation {
    font-weight: normal;
    font-size: 14px;
    margin: 10px 0;
}
.next-btn {
    margin-top: 10px;
    background-color: #28a745;
}
.next-btn:hover {
    background-color: #218838;
}