* {
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    background-color: #f3f4f6;
}

body {
    font-family: 'Arial';
    background-color: #f3f4f6;
    color: #1F2937;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
}

main {
    flex-grow: 1;
    background-image: url('../tlo3.png');
}

.footer{
    background-color: #111827;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.footer > *{
    color: white;
    margin: 5px 5px;
    align-self: center;
}

.footer a{
    color: coral;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.navbar {
    background-color: #111827;
    padding: 1rem 1.5rem;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
    width: 200px;
    align-items: center;
}

.navbar-brand a{
    justify-self: center;
    align-self: center;
}

.navbar-brand img{
    vertical-align: middle;
    margin-right: 10px;
    height: 40px;
    display: inline-block;
}

.nav-links {
    display: none;
}

.hamburger {
    display: block;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background-color: #111827;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem;
    /* border-radius: 0.5rem; */
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.2); */
    z-index: 1000;
    width: 100%;
}

.nav-links.active {
    display: flex;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: end;
        gap: 2rem;
        background: none;
        box-shadow: none;
        padding: 0;
    }

    .logout-form {
        margin-top: 0;
    }
}


.nav-link {
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FFFFFF;
}

.logout-form .logout-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #DC2626;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.logout-form .logout-button:hover {
    background-color: #B91C1C;
}

/* --- Strona Główna (home.blade.php) --- */
.home-container {
    min-height: calc(100vh - 218px);
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.forms-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    /* max-width: 80rem; */
    margin-top: 5rem;
}

.forms-wrapper2{
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 896px;
    margin: 0px auto;
    background-color: #FFFFFF;
    padding: 8px 0;
}

.forms-wrapper2 > a{
    max-width: 300px;
}

.form-panel2{
    max-width: 100%;
    padding: 2rem;
    background-color: #FFFFFF;
}

@media (max-width: 768px) {
    .forms-wrapper {
        flex-direction: column;
    }
}

.form-panel {
    max-width: 100%;
    padding: 2rem;
    background-color: #FFFFFF;
    /* border-radius: 0.75rem; */
    /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); */
    /* transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; */
}

/* .form-panel:hover {
    transform: scale(1.05);
    background-color: #EEF2FF;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
} */

@media(min-width: 768px) {
    .form-panel {
        width: 50%;
    }
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1F2937;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group:last-child {
     margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B5563;
}

.form-input {
    margin-top: 0.25rem;
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0.75rem;
}

.form-input:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-submit {
    display: block;
    width: 80%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    background-color: #4F46E5;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    margin: 0 auto;
}

.btn-submit:hover {
    background-color: #4338CA;
}

.messages-container {
    width: 100%;
    max-width: 48rem;
    margin-top: 1.5rem;
}

.message-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.success-message {
    background-color: #D1FAE5;
    border: 1px solid #6EE7B7;
    color: #065F46;
}

.error-message {
    background-color: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

.error-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    text-align: left;
}
.error-list li {
    margin-top: 0.25rem;
}

.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9CA3AF;
    margin: 1.5rem 0;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E5E7EB;
}

.social-login-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-social {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin: 10px auto;
    padding: 0.6rem 1rem;
    background-color: #FFFFFF;
    color: #4B5563;
    font-weight: 600;
    border: 1px solid #D1D5DB;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-social:hover {
    background-color: #F9FAFB;
}

.btn-social img {
    height: 20px;
    margin-right: 0.75rem;
}

.btn-social-apple-wrapper {
    margin-top: 0.75rem;
}

.btn-social.btn-apple {
    background-color: #000000;
    color: #FFFFFF;
    border-color: #000000;
}
.btn-social.btn-apple:hover {
    background-color: #333333;
}

.btn-social.btn-apple img {
    filter: invert(1);
}

/* nauka/index.blade.php */
.page-container{
    max-width: 1000px;
    margin: 20px auto;
}

.success-message-box {
    width: 400px;
    margin: 0 auto;
    background-color: #D1FAE5;
    color: #065F46;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    text-align: center;
}

/* nauka/index.blade.php - wybieranie kategorii */

.category-selection-form {
    text-align: center;
    max-width: 1000px;
    margin: 10px auto;
    max-height: auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-grid label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.category-tile {
    padding: 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: #FFFFFF;
}
.category-tile:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.category-grid label input[type="radio"]:checked + .category-tile {
    border-color: #111827;
    box-shadow: 0 0 0 2px #111827;
}

.start-learning-btn {
    margin-top: 2rem;
    background-color: #111827;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

/* nauka/index.blade.php - po wybraniu katerogii */

.nauka-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nauka-title {
    text-align: center;
    margin: 20px 0;
    font-size: 1.875rem;
    font-weight: 700;
}

.nauka-title span {
    color: #2563EB;
}

@media (max-width: 768px) {
    .nauka-header{
        display: flex;
        flex-direction: column;
    }

    .nauka-title {
        font-size: 1.2rem;
    }
}

.ai-teacher-button {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #3B82F6;
    color: white;
    font-weight: 700;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    gap: 5px;
    margin-bottom: 10px;
}

.ai-teacher-button:hover {
    background-color: #2563EB;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ai-teacher-button.ai-locked {
    background-color: #6B7280;
    /* opacity: 0.7; */
    cursor: not-allowed;
}

.ai-teacher-button.ai-locked:hover {
    background-color: #6B7280;
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: not-allowed;
}

.thematic-categories-list > *:not(:last-child) {
    margin-bottom: 1rem;
}

.category-card {
    display: block;
    background-color: #FFFFFF;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    border: 1px solid gray;
}

.category-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.category-card-content {
    display: flex;
    align-items: center;
}

.category-icon-wrapper {
    background-color: #DBEAFE;
    padding: 8px;
    border-radius: 9999px;
    display: flex;
}

.category-icon-wrapper .material-icons {
    color: #111827;
}

.category-details {
    border-left: 1px solid black;
    margin-left: 10px;
    padding-left: 10px;
    flex-grow: 1;
}

.category-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: #1F2937;
}

.category-subtitle {
    font-size: 0.875rem;
    color: #4B5563;
}

.category-progress {
    margin-top: 0.5rem;
    display: flex;
    font-size: 0.75rem;
}

.progress-item {
    display: flex;
    align-items: center;
    margin: 0 5px;
}

.progress-item .material-icons {
    font-size: 1rem;
    margin-right: 0.25rem;
}

@media(max-width: 400px) {
    .category-progress {
        flex-direction: column;
        align-items: flex-start;
    }
    .progress-item {
        margin: 2px 0;
    }
}

.progress-correct {
    color: #059669;
}

.progress-incorrect {
    color: #DC2626;
}

/* section.blade.php */

.section-header {
    margin: 20px auto;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-header .back-link {
    color: #111827;
}

.section-header .back-link .material-icons {
    font-size: 1.875rem;
}

.section-header .title-group {
    margin-left: 1rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1F2937;
}

.section-subtitle {
    color: #6B7280;
}

.questions-list > *:not(:last-child) {
    margin-bottom: 1rem;
}

.question-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-style: solid;
    transition: all 0.3s ease;
}
.question-card.border-transparent { 
    border-color: transparent; 
}

.question-card.border-green-500 { 
    border-color: #10B981; 
}

.question-card.border-red-500 { 
    border-color: #EF4444; 
}

.question-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-header p {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1F2937;
    padding-right: 1rem;
}

.question-header p .font-bold { 
    font-weight: 700; 
}

.question-header .expand-icon {
    color: #9CA3AF;
    transition: transform 0.3s ease;
}

@media(max-width: 768px) {
    .question-header {
        padding: 0.5rem;
    }
    .question-header p {
        font-size: 1rem;
    }
    .questions-list > *:not(:last-child){
        padding: 0.5rem;
    }
}

.question-card.expanded .expand-icon {
    transform: rotate(180deg);
}

.question-content {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.question-card.expanded .question-content {
    display: block;
    max-height: 1000px;
}

.media-container {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.media-container img, .media-container video {
    width: 100%;
    border-radius: 0.5rem;
}

.media-placeholder .material-icons {
    font-size: 2.25rem;
    color: #9CA3AF;
}

.answer-options > *:not(:last-child) {
    margin-bottom: 0.75rem;
}

.answer-option {
    border-width: 2px;
    padding: 1rem;
    border-radius: 0.5rem;
}
.answer-option.cursor-pointer { 
    cursor: pointer; 
}

.answer-option.cursor-pointer:hover { 
    background-color: #F9FAFB; 
}

.answer-option.cursor-not-allowed { 
    cursor: not-allowed; 
}

.answer-option.selected { 
    border-color: #3b82f6; 
    background-color: #eff6ff; 
}

.answer-option.correct { 
    border-color: #10B981 !important; 
    background-color: #f0fdf4 !important; 
    color: #15803d; 
}

.answer-option.incorrect { 
    border-color: #dc2626 !important; 
    background-color: #fef2f2 !important;  
    color: #b91c1c; 
}

.answer-option span { 
    font-weight: 600; 
}

.check-answer-btn {
    margin-top: 1rem;
    width: 100%;
    background-color: #374151;
    color: #FFFFFF;
    font-weight: 700;
    padding: 0.75rem 0;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.check-answer-btn:hover { 
    background-color: #1F2937; 
}

.empty-questions {
    text-align: center;
    color: #6B7280;
}

/* ai_teacher.blade.php */
.ai-teacher-page .nauka-title {
    margin-bottom: 1rem;
}

.ai-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.ai-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.ai-card .card-header .material-icons {
    color: #111827;
    font-size: 2rem;
}

.ai-card .card-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
}

.ai-card .card-content .card-content-about{
    color: black;
    text-align: center;
}

.ai-card .card-content p {
    color: black;
    margin: 5px 0;
}

.markdown-content ul {
    list-style-position: inside;
    padding-left: 1rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.placeholder-card {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: #F3F4F6;
    border: 2px dashed #D1D5DB;
}

.placeholder-card .material-icons {
    font-size: 3rem;
    color: #9CA3AF;
    margin-bottom: 1rem;
}

.placeholder-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1F2937;
}

.placeholder-card p {
    color: #6B7280;
}

@media (max-width: 768px) {
    .placeholder-card{
        padding: 1rem 1rem;
    }
}

/* Plan Generator */
.plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.exam-date-picker{
    margin: 0 auto;
}

.plan-option-btn {
    display: flex;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 5px;
    border: none;
    cursor: pointer;
    background-color: #111827;
    color: white;
}

.plan-option-btn > *{
    margin: 5px;
}

.plan-option-btn:disabled {
    background-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.plan-option-btn .material-icons {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-option-btn strong {
    font-weight: 700;
}

.plan-option-btn span {
    font-size: 0.8rem;
    text-align: center;
}

.plan-option-btn p {
    color: white;
}

@media(max-width: 768px) {
    .plan-options {
        grid-template-columns: 1fr;
    }
}

.exam-date-notice {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #6B7280;
    margin-top: 1rem;
}

.generate-analysis-container {
    text-align: center;
    margin-bottom: 2rem;
}

.generate-analysis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: #10B981;
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.generate-analysis-btn:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

.generate-analysis-btn:disabled {
    background-color: #D1D5DB;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cooldown-notice {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #6B7280;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Style dla modala wyboru trybu */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mode-option {
    margin-bottom: 1rem;
}

.mode-option input[type="radio"] {
    display: none;
}

.modal-btn-secondary, .modal-btn-primary {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.modal-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.modal-btn-primary {
    background-color: #111827;
    color: white;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.exam-date{
    margin: 0 auto 10px;
    text-align: center;
    color: black;
}

.plan-option-btn2 {
    display: flex;
    margin: 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    padding: 5px;
    border: none;
    cursor: pointer;
    background-color: #111827;
    color: white;
}

.plan-option-btn2 > *{
    margin: 5px;
}

.plan-option-btn2:disabled {
    background-color: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.plan-option-btn2 .material-icons {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.plan-option-btn2 strong {
    font-weight: 700;
}

.plan-option-btn2 span {
    font-size: 0.8rem;
    text-align: center;
}


/* wygenerowany plan nauki */
.ai-card-deck .deck-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.ai-card-deck .deck-summary {
    color: #4B5563;
    margin-bottom: 1.5rem;
}

.day-card {
    background: #fff;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    border-left: 5px solid #111827;
}

.day-card.is-today {
    border-color: #3B82F6;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -2px rgba(59, 130, 246, 0.1);
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #F3F4F6;
    margin-bottom: 1rem;
}

.day-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.day-header span {
    font-size: 0.9rem;
    color: #6B7280;
}

.task-tile {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #F9FAFB;
}

.task-tile .task-icon {
    background-color: #DBEAFE;
    padding: 8px;
    border-radius: 9999px;
    display: flex;
}

.task-tile .task-details {
    border-left: 1px solid black;
    margin-left: 10px;
    padding-left: 10px;
    flex-grow: 1;
}

.task-tile .task-details strong {
    font-weight: 600;
}

.task-tile .task-details span {
    display: block;
    font-size: 0.8rem;
    color: #6B7280;
}

.task-tile .task-link {
    color: #111827;
}

.task-tile.daily-test {
    background-color: #D1FAE5;
}

.task-tile.daily-test .task-icon {
    background-color: #A7F3D0;
    color: #065F46;
}

.task-link.disabled {
    pointer-events: none;
    color: #D1D5DB;
}

.no-tasks {
    font-style: italic;
    color: #6B7280;
    padding: 1rem;
    text-align: center;
}

.task-link-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #111827;
}

/* daily_quiz_session.blade.php */

.test-session-page .question-card-active {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.test-session-page .question-text {
    font-size: 1.25rem;
    margin: 1.5rem 0;
}

.test-session-page .question-media {
    display: block;
    margin: 0 auto;
    max-width: 80%;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.answer-options-active .answer-option {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid gray;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: white;
}

.answer-options-active .answer-option:hover {
    background-color: #F9FAFB;
}

.answer-options-active .answer-option.selected {
    border-color: #111827;
    background-color: #DBEAFE;
}

.test-navigation {
    padding: 1rem;
    text-align: center;
}

.next-btn {
    background-color: #10B981;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
}

.next-btn:disabled {
    background-color: #D1D5DB;
}

.result-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    border-top: 5px solid;
    margin-bottom: 2.5rem;
}

.result-card.result-success { border-color: #34D399; }
.result-card.result-warning { border-color: #FBBF24; }
.result-card.result-error { border-color: #F87171; }

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.result-card.result-success .result-icon { color: #34D399; }
.result-card.result-warning .result-icon { color: #FBBF24; }
.result-card.result-error .result-icon { color: #F87171; }

.result-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.result-score {
    font-size: 1.25rem;
    color: #4B5563;
}

.result-accuracy {
    font-size: 1rem;
    color: #6B7280;
}

.back-to-plan-btn {
    display: inline-block;
    background-color: #3B82F6;
    color: white;
    padding: 15px 10px;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.back-to-plan-btn:hover {
    background-color: #2563EB;
}

.quiz-header {
    padding: 1rem;
    background-color: #fff;
    border-radius: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    border: 2px solid gray;
}

.quiz-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: #374151;
}

.timer-container {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #111827;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 700;
}

.timer-progress-bar-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: #E5E7EB;
}

.timer-progress-bar-fill {
    height: 100%;
    width: 100%;
    background-color: #111827;
    border-radius: 0 3px 3px 0;
}

.test-session-page .question-card-active {
    /* background: none; */
    background: #fff;
    padding: 10px;
    box-shadow: none;
}

/* Style dla wyników quizu */
.questions-list-results {
    margin-top: 2rem;
}

.results-list-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.result-question-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.result-answer-options {
    margin-top: 1rem;
}

.result-answer-option {
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
}

.result-answer-option strong {
    font-weight: 700;
}

.result-answer-option.correct {
    border-color: #16a34a;
    background-color: #f0fdf4;
    color: #15803d;
}

.result-answer-option.incorrect {
    border-color: #dc2626;
    background-color: #fef2f2;
    color: #b91c1c;
}

.result-answer-option.user-choice {
    position: relative;
}

.result-answer-option.user-choice::before {
    content: 'Twoja odpowiedź';
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
}

.result-answer-option.correct.user-choice::before {
    background-color: #f0fdf4;
    color: #15803d;
}

/* test.blade.php */

.error-message-box {
    background-color: #FEE2E2;
    border-left: 4px solid #EF4444;
    color: #991B1B;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 600;
    border-radius: 0.5rem;
}

.test-container {
    max-width: 100%;
    /* background: linear-gradient(to bottom right, #ffffff, #e0f7ff); */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-top: 7.5rem;
}

.test-box {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
}

.card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(1rem);
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    text-align: center;
}

.card h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: #1f2937;
}

.category-container {
    margin-top: 1rem;
}

.category {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2563eb;
}

.exam-info {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: left;
    color: #4b5563;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    color: #3b82f6;
    margin-right: 0.75rem;
}

.test-mode {
    margin-bottom: 1.5rem;
}

.test-mode-title {
    font-weight: 700;
    color: #1f2937;
}

.change-mode {
    font-size: 0.875rem;
    color: #2563eb;
    cursor: pointer;
}

.change-mode:hover {
    text-decoration: underline;
}

.start-button {
    width: 100%;
    background-image: linear-gradient(to right, #3b82f6, #06b6d4);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.start-button:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-0.25rem);
}

.start-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-icon {
    margin-left: 0.75rem;
}

/* Style dla modala wyboru trybu */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    width: 80%;
    max-width: 400px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mode-option {
    margin-bottom: 1rem;
}

.mode-option input[type="radio"] {
    display: none;
}

.mode-option label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.mode-option input[type="radio"]:checked + label {
    border-color: #2563EB;
    background-color: #eff6ff;
}
.mode-option input[type="radio"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6;
}


.mode-option label .material-icons {
    font-size: 2rem;
    color: #2563EB;
    margin-right: 1rem;
}

.mode-option label strong {
    font-weight: 700;
    color: #1f2937;
}

.mode-option label p {
    font-size: 0.875rem;
    color: #4b5563;
}

.modal-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.modal-btn-secondary, .modal-btn-primary {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.modal-btn-secondary {
    background-color: #e5e7eb;
    color: #374151;
}

.modal-btn-primary {
    background-color: #2563EB;
    color: white;
}

/* Style dla test_session.blade.php */
.test-session-container {
    /* background-color: #f3f4f6; */
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    margin-bottom: 1rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.2rem;
    font-weight: 700;
}

.timer {
    display: flex;
    align-items: center;
    background-color: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.timer-icon {
    margin-right: 0.5rem;
}

.progress-bar-container {
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.625rem;
    margin-top: 1rem;
}

#progress-bar {
    background-color: #2563eb;
    height: 0.625rem;
    border-radius: 9999px;
    width: 0%;
}

.question-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 6px;
    display: flex;
    flex-direction: column;
}

#question-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

#media-container {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.media-element {
    max-height: 300px;
    border-radius: 0.5rem;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

#question-points-container {
    display: flex;
    align-items: center;
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

#question-points-container .material-icons {
    font-size: 1rem;
    margin-right: 0.25rem;
}

#question-timer-container {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
}

#answer-options {
    margin-top: 0.5rem;
}
.answer-option {
    border: 2px solid black;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    margin: 10px;
    /* margin-bottm: 0.75rem; */
}

.answer-option:hover {
    border-color: #93c5fd;
}

.answer-option.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.option-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.option-text {
    font-weight: 600;
}


.navigation {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-counter {
    font-weight: 700;
    color: #374151;
}

#next-btn {
    padding: 0.75rem 2rem;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: none;
}

#next-btn:hover {
    background-color: #1d4ed8;
}

.next-icon {
    margin-left: 0.5rem;
}

/* Style dla wyników */
#result-container {
    min-height: 100vh;
    padding: 1rem;
}

.result-content {
    margin: 0 auto;
    max-width: 56rem;
}

#result-summary {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
}

.result-score {
    font-size: 3.75rem;
    font-weight: 900;
    margin: 1rem 0;
}

.result-score.passed {
    color: #16a34a;
}
.result-score.failed {
    color: #dc2626;
}

.total-points {
    font-size: 1.875rem;
    font-weight: 700;
    color: #6b7280;
}

.result-status {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 700;
}
.result-status.passed-bg {
    background-color: #22c55e;
}
.result-status.failed-bg {
    background-color: #ef4444;
}

.details-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

#result-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-detail-item {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    border-left: 4px solid;
}
.result-detail-item.correct {
    border-color: #22c55e;
}
.result-detail-item.incorrect {
    border-color: #ef4444;
}

.question-text-result {
    font-weight: 700;
    color: #1f2937;
}

.divider {
    margin: 0.75rem 0;
    border-color: #e5e7eb;
}

.answers-container {
    font-size: 0.875rem;
}
.answer-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}
.answer-line.skipped {
    color: #ca8a04;
}
.answer-line.correct-answer {
    color: #15803d;
}

.answer-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}
.icon.correct-icon {
    color: #22c55e;
}
.icon.incorrect-icon {
    color: #ef4444;
}


.result-actions {
    text-align: center;
    margin: 2rem 0;
}

.action-button {
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: #1d4ed8;
}

.secondary-action {
    margin-left: 1rem;
    color: #4b5563;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: text-decoration 0.2s;
    background-color: white;
    border: 1px solid gray;
}

.secondary-action:hover {
    text-decoration: underline;
}

/* Ogólne style */
body {
    font-family: sans-serif;
}

.statistics-container, .page-container {
    /* width: 100%; */
    min-height: calc(100vh - 218px);
    /* background-color: #f3f4f6; */
    padding: 0rem 1rem 1rem 1rem;
}

.container {
    margin: 0 auto;
    /* max-width: 56rem; */
}

.header {
    margin-bottom: 1.5rem;
    margin-top: 10px;
}

.header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
}

.header .category {
    color: #2563eb;
    font-size: 1.875rem;
}

/* Brak statystyk */
.no-stats-info, .no-category-info, .empty-state-card {
    text-align: center;
    padding: 2.5rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-top: 2.5rem;
}

.no-stats-info .icon, .no-category-info .icon, .empty-state-icon {
    font-size: 3.75rem;
    color: #d1d5db;
}

.no-stats-info h2, .no-category-info h2, .empty-state-title {
    margin-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
}

.no-stats-info p, .no-category-info p, .empty-state-text {
    margin-top: 0.5rem;
    color: #6b7280;
}

/* Linki */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card-link {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.card-link:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-link .icon {
    font-size: 1.875rem;
    margin-right: 1rem;
    color: #3b82f6;
}

.card-link .icon.star {
    color: #f59e0b;
}

.card-link span {
    font-weight: 700;
    color: #374151;
    font-size: 1.125rem;
}

/* Podsumowanie */
.summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.summary-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.summary-card h3 {
    font-weight: 700;
    color: #4b5563;
}

.summary-value {
    font-size: 2.25rem;
    font-weight: 900;
}

.summary-value.blue {
    color: #2563eb;
}

.summary-value.green {
    color: #16a34a;
}

/* Aktywność */
.activity-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.activity-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 10rem;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12.5%;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 0.25rem;
}

.chart-bar {
    width: 1.5rem;
    display: flex;
    flex-direction: column-reverse;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: #e5e7eb;
    height: 100%;
}

.chart-bar-passed {
    background-color: #6ee7b7;
}

.chart-bar-failed {
    background-color: #f87171;
}

.chart-bar-day {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* Postępy */
.progress-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 1.5rem;
}

.progress-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.progress-item {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto minmax(0, 3fr);
    gap: 1rem;
    align-items: center;
}

.progress-title {
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.percentage {
    font-size: 0.875rem;
    font-weight: 700;
    color: #6b7280;
    text-align: right;
}

.progress-bar-background {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.75rem;
}

.progress-bar-foreground {
    background-color: #3b82f6;
    height: 100%;
    border-radius: 9999px;
}

/* Ostatnie testy */
.recent-tests-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.recent-tests-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.tests-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.test-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.test-item.passed {
    background-color: #f0fdf4;
}

.test-item.passed:hover {
    background-color: #dcfce7;
}

.test-item.failed {
    background-color: #fef2f2;
}

.test-item.failed:hover {
    background-color: #fee2e2;
}

.test-item .icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.test-item .passed-icon {
    color: #16a34a;
}

.test-item .failed-icon {
    color: #dc2626;
}

.test-details {
    flex-grow: 1;
}

.test-details .score {
    font-weight: 700;
    color: #1f2937;
}

.test-details .date {
    font-size: 0.75rem;
    color: #6b7280;
}

.status {
    font-size: 0.875rem;
    font-weight: 600;
}

.passed-text {
    color: #15803d;
}

.failed-text {
    color: #b91c1c;
}

.arrow-icon {
    color: #9ca3af;
    margin-left: 0.5rem;
}

/* Link do profilu */
.profile-link {
    margin-top: 1.5rem;
    display: inline-block;
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.profile-link:hover {
    background-color: #1d4ed8;
}

/* =================================================== */
/* === NOWE STYLE DLA DODATKOWYCH PLIKÓW === */
/* =================================================== */

/* ----- Style dla question_detail.blade.php ----- */

.back-link-container {
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #1d4ed8;
}

.back-link .material-icons {
    font-size: 1.875rem;
}

.card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
}

.question-text-main {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.media-container-detail {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f3f4f6;
    min-height: 200px;
}

.no-media-text {
    color: #9ca3af;
    font-size: 0.875rem;
}

.media-element-full {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.options-container {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.option-item {
    border: 2px solid #e5e7eb;
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
}

.option-item.correct {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

.option-icon {
    color: #16a34a;
    margin-right: 0.75rem;
}

.option-text {
    font-weight: 600;
}


/* ----- Style dla saved_questions.blade.php i test_history.blade.php ----- */

.page-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.page-header h1, .page-header-detail h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
}

.category-highlight {
    color: #2563eb;
}

.back-arrow {
    color: #2563eb;
    margin-right: 1rem;
    text-decoration: none;
}
.back-arrow:hover {
    color: #1d4ed8;
}

.back-arrow .material-icons {
    font-size: 1.875rem;
}

.saved-questions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.saved-question-item {
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease-in-out;
}
.saved-question-item:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.item-content {
    display: flex;
    align-items: flex-start;
}

.item-icon-container {
    background-color: #fef3c7;
    padding: 0.75rem;
    border-radius: 9999px;
    margin-right: 1rem;
}

.item-icon-star {
    color: #f59e0b;
}

.item-text-container {
    flex-grow: 1;
}

.item-question-text {
    font-weight: 700;
    color: #1f2937;
}

.item-question-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.delete-button {
    color: #ef4444;
    margin-left: 1rem;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.delete-button:hover {
    color: #b91c1c;
    background-color: #fee2e2;
}

/* ----- Style dla test_history.blade.php ----- */

.history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .history-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.history-card {
    background-color: white;
    padding: 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}
.history-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-0.25rem);
}

.history-card-icon-container {
    padding: 1rem;
    border-radius: 9999px;
}
.history-card-icon-container.passed {
    background-color: #dcfce7;
}
.history-card-icon-container.failed {
    background-color: #fee2e2;
}

.history-card-icon {
    font-size: 2.25rem;
}
.history-card-icon-container.passed .history-card-icon {
    color: #16a34a;
}
.history-card-icon-container.failed .history-card-icon {
    color: #dc2626;
}

.history-card-score {
    font-size: 1.875rem;
    font-weight: 900;
    color: #1f2937;
    margin-top: 0.75rem;
}

.history-card-category {
    font-weight: 600;
    color: #4b5563;
}

.history-card-date {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}


/* ----- Style dla test_history_detail.blade.php ----- */

.page-header-detail {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.header-date {
    font-size: 0.875rem;
    color: #6b7280;
}

.result-summary-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.result-score-detail {
    font-size: 3.75rem;
    font-weight: 900;
    margin: 1rem 0;
}
.result-score-detail.passed {
    color: #16a34a;
}
.result-score-detail.failed {
    color: #dc2626;
}

.total-points-detail {
    font-size: 1.875rem;
    font-weight: 700;
    color: #6b7280;
}

.result-status-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    color: white;
    font-weight: 700;
}
.result-status-badge.passed {
    background-color: #22c55e;
}
.result-status-badge.failed {
    background-color: #ef4444;
}

.answers-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem;
}

.answers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.answer-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    border-left: 4px solid;
}
.answer-card.correct {
    border-color: #22c55e;
}
.answer-card.incorrect {
    border-color: #ef4444;
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.answer-question-link {
    flex-grow: 1;
    padding-right: 1rem;
    text-decoration: none;
}

.answer-question-text {
    font-weight: 700;
    color: #1f2937;
    transition: color 0.2s;
}
.answer-question-text:hover {
    color: #2563eb;
}

.save-btn {
    padding: 0.25rem;
    margin-left: 0.5rem;
    border-radius: 9999px;
    transition: color 0.2s;
    color: #9ca3af;
    background: none;
    border: none;
    cursor: pointer;
}
.save-btn:hover {
    color: #f59e0b;
}
.save-btn.saved {
    color: #f59e0b;
}

.answer-divider {
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.answer-details-container {
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.answer-line {
    display: flex;
    align-items: center;
}
.answer-line.skipped {
    color: #ca8a04;
}
.answer-line.correct-answer {
    color: #15803d;
}

.answer-icon {
    font-size: 1rem;
    margin-right: 0.5rem;
}
.answer-icon.correct {
    color: #16a34a;
}
.answer-icon.incorrect {
    color: #dc2626;
}

.answer-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

.result-media{
    display: block;
    width: 80%;
    margin: 10px auto;
}

/* profil */

.profile-container {
    /* width: 100%; */
    min-height: 100vh;
    /* background-color: #f3f4f6; */
    background-image: url('../tlo3.png');
    padding: 1rem;
}

.profile-container .container {
    margin: 0 auto;
    max-width: 42rem; /* 672px */
}

.profile-container .card {
    background-color: white;
    border-radius: 1rem; /* 16px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem; /* 24px */
    margin-bottom: 1.5rem; /* 24px */
}

.profile-container .card.text-center {
    text-align: center;
}

.profile-container h1 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: #1f2937;
}

.profile-container .username {
    color: #2563eb;
}

.profile-container .subtitle {
    color: #6b7280;
    margin-top: 0.25rem; /* 4px */
}

.profile-container .card{
    border: 2px solid gray;
}

/* ----- Alerty ----- */

.alert {
    padding: 1rem; /* 16px */
    margin-bottom: 1.5rem; /* 24px */
    border-left-width: 4px;
    border-radius: 0.25rem;
}
.alert-success {
    background-color: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}
.alert-danger {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

/* ----- Sekcja "Moje Kategorie" ----- */

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem; /* 16px */
}

.card-header h2 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #374151;
}

.button-link {
    color: #2563eb;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem; /* 8px */
    text-decoration: none;
    transition: background-color 0.2s;
}
.button-link:hover {
    background-color: #eff6ff;
}

.categories-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* 12px */
}

.category-tag {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    padding: 0.5rem 1rem; /* 8px 16px */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

.category-tag .material-icons {
    font-size: 1.25rem; /* 20px */
}

.delete-form {
    margin-left: 0.25rem; /* 4px */
}

.delete-category-btn {
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
}
.delete-category-btn:hover {
    color: #ef4444;
}
.delete-category-btn .material-icons {
    font-size: 1rem; /* 16px */
}

.empty-text {
    color: #6b7280;
    width: 100%;
}

/* ----- Sekcja "Zarządzanie danymi" (Danger Zone) ----- */

.danger-zone {
    border-top: 4px solid #ef4444;
}

.danger-zone h2 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 1rem; /* 16px */
}

.danger-zone-content {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* 16px */
}

.danger-zone h3 {
    font-weight: 600;
    color: #1f2937;
}

.description {
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
    margin: 0.8rem 0; /* 8px */
}

.disabled-text {
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: #9ca3af;
}

.divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
}

/* ----- Sekcja "Informacje" ----- */

.info-section {
    border-top: 4px solid #d1d5db;
}

.info-section h2 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #374151;
    margin-bottom: 1rem; /* 16px */
}

.info-links-container {
    border-top: 1px solid #e5e7eb;
    margin: 0 -1.5rem; /* Rozciąga na całą szerokość karty */
}

.info-link {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
}
.info-link:last-child {
    border-bottom: none;
}

.info-link-content {
    padding: 1rem 1.5rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}
.info-link:hover .info-link-content {
    background-color: #f9fafb;
    color: #2563eb;
}

.info-link .material-icons {
    color: #9ca3af;
    margin-right: 1rem; /* 16px */
}
.info-link span:not(.material-icons) {
    font-weight: 600;
}
.info-link .arrow {
    margin-left: auto;
    margin-right: 0;
}


/* ----- Style dla edit_categories.blade.php ----- */

.page-header {
    margin-bottom: 1.5rem; /* 24px */
    display: flex;
    align-items: center;
}

.back-arrow {
    color: #2563eb;
    margin-right: 1rem; /* 16px */
    text-decoration: none;
}
.back-arrow:hover {
    color: #1d4ed8;
}

.back-arrow .material-icons {
    font-size: 1.875rem; /* 30px */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem; /* 16px */
}
@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* 16px */
    border: 2px solid #e5e7eb;
    background-color: white;
    border-radius: 0.5rem; /* 8px */
    cursor: pointer;
    transition: all 0.2s;
}

.hidden-checkbox {
    display: none;
}

.category-icon {
    font-size: 2.25rem; /* 36px */
    margin-bottom: 0.5rem; /* 8px */
    color: #9ca3af;
}

.category-name {
    font-weight: 700;
    font-size: 1.125rem; /* 18px */
    color: #374151;
}

/* Style dla zaznaczonego kafelka */
.category-tile.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.category-tile.selected .category-icon,
.category-tile.selected .category-name {
    color: #2563eb;
}

.form-actions {
    margin-top: 1.5rem; /* 24px */
    text-align: center;
}

/* ----- Style dla przycisków ----- */

.button {
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem; /* 8px */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button-warning {
    background-color: #f59e0b;
}
.button-warning:hover {
    background-color: #d97706;
}

.button-danger {
    background-color: #dc2626;
}
.button-danger:hover {
    background-color: #b91c1c;
}

.button-success {
    background-color: #22c55e;
    width: 100%;
}
.button-success:hover {
    background-color: #16a34a;
}
@media (min-width: 640px) {
    .button-success {
        width: auto;
    }
}

.font-bold {
    font-weight: 700;
}


/* ----- Style dla privacy_policy.blade.php i terms_of_use.blade.php ----- */

.legal-container {
    margin: 0 auto;
    max-width: 52rem; /* 832px */
    background-color: white;
    border-radius: 1rem; /* 16px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem; /* 24px */
}
@media (min-width: 768px) {
    .legal-container {
        padding: 2rem; /* 32px */
    }
}

.prose-content {
    color: #374151;
    text-align: justify;
}

.prose-content .date-text {
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
    font-style: italic;
}

.prose-section {
    margin-top: 1rem; /* 16px */
    margin-bottom: 1rem; /* 16px */
}

.prose-content h2 {
    font-size: 1.25rem; /* 20px */
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.prose-content h3 {
    font-size: 1.125rem; /* 18px */
    font-weight: 700;
    color: #1f2937;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.prose-content h4 {
    font-weight: 700;
}

.prose-content p, .prose-content ul {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.prose-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.prose-content .link {
    color: #2563eb;
    text-decoration: underline;
}

.prose-content .highlight-box {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    font-style: italic;
    margin: 1rem 0;
}

.category-tag-container {
    position: relative;
    margin: 6px;
    display: inline-block;
}

.set-active-form {
    display: inline;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f3f5;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    color: #495057;
    border: 2px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.category-tag.clickable:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    border-color: #007bff;
}

.category-tag.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
}

.category-tag-container .delete-form {
    position: absolute;
    top: -8px;
    right: -8px;
    z-index: 1;
}

.category-tag-container .delete-category-btn {
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s, transform 0.2s;
}

.category-tag-container .delete-category-btn:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

.category-tag-container .delete-category-btn .material-icons {
    font-size: 16px;
}

.about-section{
    margin: 20px 0;
}

.feature-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.download-button {
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.download-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 128, 0, 0.3);
}

.app-store-button:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 255, 0.3);
}

.question-option {
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.question-option:hover {
    background-color: #e0f2fe;
}
.question-option.selected {
    border-color: #2563eb;
    background-color: #bfdbfe;
}
.question-option.correct {
    background-color: #d1fae5;
    border-color: #10b981;
}
.question-option.incorrect {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}
.faq-question {
    cursor: pointer;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #2d3748;
}
.faq-answer {
    padding-bottom: 1rem;
    color: #4a5568;
    display: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    max-height: 0;
}
.faq-answer.active {
    display: block;
}
.faq-question svg {
    transition: transform 0.3s ease-in-out;
}
.faq-question.active svg {
    transform: rotate(180deg);
}

.screenshot-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

@keyframes fadeOutScaleDown {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}
@keyframes fadeInScaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.animate-fade-out-scale-down {
    animation: fadeOutScaleDown 0.3s ease-out forwards;
}
.animate-fade-in-scale-up {
    animation: fadeInScaleUp 0.3s ease-out forwards;
}

#scroll-to-download-btn {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    z-index: 1000;
    background-color: #2563eb;
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    font-weight: 600;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    opacity: 1;
    visibility: visible;
}
#scroll-to-download-btn.hidden-btn {
    opacity: 0;
    visibility: hidden;
}
#scroll-to-download-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}
#scroll-to-download-btn svg {
    margin-right: 0.5rem;
}
@media (max-width: 640px) {
    #scroll-to-download-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    #scroll-to-download-btn svg {
        width: 1rem;
        height: 1rem;
        margin-right: 0.25rem;
    }
}


/* ========================================= */
/* === Style dla wyników w stylu section === */
/* ========================================= */

#result-details .question-card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-style: solid;
    transition: all 0.3s ease;
    padding: 0; /* Usuwamy padding z karty, bo header i content go mają */
    margin-bottom: 1rem;
}

#result-details .question-header {
    padding: 1.5rem;
    cursor: pointer;
}

#result-details .question-content {
    display: none;
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#result-details .question-card.expanded .question-content {
    display: block;
    max-height: 1000px; /* Wystarczająco duża wartość */
}

#result-details .media-container .no-media-text {
     color: #9CA3AF; 
     font-size: 0.875rem;
}

#question-text{
    margin: 10px;
}