/*
--------------------------
- 1.1 Default CSS
--------------------------
*/

/*google font*/

/*@import url('https://fonts.googleapis.com/css?family=Lato:300,400,700,900|Poppins:100,300,400,500,600,700,800,900');*/
/* Your default CSS. */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

*:focus {
    outline: 0;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    /* Fix for webkit rendering */
    -webkit-text-size-adjust: 100%;


    transition: opacity 0.3s ease-in-out;
}

#main_content {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#main_content.show {
    opacity: 1;
}

#main_content.hide {
    opacity: 0;
}


.fake-link:hover {
    color: #007BFF;
}

img {
    max-width: 100%;
    height: auto;
}

.logo img {
    max-width: 300%;
    height: auto;
}
/*custome css*/

/*--------------------------
   Padding top
---------------------------*/

.pt--0 {
    padding-top: 0
}

.pt--10 {
    padding-top: 10px
}

.pt--15 {
    padding-top: 15px
}

.pt--20 {
    padding-top: 20px
}

.pt--30 {
    padding-top: 30px
}

.pt--40 {
    padding-top: 40px
}

.pt--50 {
    padding-top: 50px
}

.pt--60 {
    padding-top: 60px
}

.pt--70 {
    padding-top: 70px
}

.pt--80 {
    padding-top: 80px
}

.pt--90 {
    padding-top: 90px
}

.pt--100 {
    padding-top: 100px
}

.pt--110 {
    padding-top: 110px
}

.pt--120 {
    padding-top: 120px
}

.pt--130 {
    padding-top: 130px
}

.pt--140 {
    padding-top: 140px
}

.pt--150 {
    padding-top: 150px
}

.pt--160 {
    padding-top: 160px
}

.pt--170 {
    padding-top: 170px
}

.pt--180 {
    padding-top: 180px
}

.pt--190 {
    padding-top: 190px
}

/*------------------------
   Padding bottom
---------------------------*/

.pb--0 {
    padding-bottom: 0
}

.pb--10 {
    padding-bottom: 10px
}

.pb--15 {
    padding-bottom: 15px
}

.pb--20 {
    padding-bottom: 20px
}

.pb--30 {
    padding-bottom: 30px
}

.pb--40 {
    padding-bottom: 40px
}

.pb--50 {
    padding-bottom: 50px
}

.pb--60 {
    padding-bottom: 60px
}

.pb--70 {
    padding-bottom: 70px
}

.pb--80 {
    padding-bottom: 80px
}

.pb--90 {
    padding-bottom: 90px
}

.pb--100 {
    padding-bottom: 100px
}

.pb--110 {
    padding-bottom: 110px
}

.pb--120 {
    padding-bottom: 120px
}

.pb--130 {
    padding-bottom: 130px
}

.pb--140 {
    padding-bottom: 140px
}

.pb--150 {
    padding-bottom: 150px
}

.pb--160 {
    padding-bottom: 160px
}

.pb--170 {
    padding-bottom: 170px
}

.pb--180 {
    padding-bottom: 180px
}

.pb--190 {
    padding-bottom: 190px
}

/*------------------------------
   Page section padding
-------------------------------*/

.ptb--0 {
    padding: 0
}

.ptb--10 {
    padding: 10px 0
}

.ptb--20 {
    padding: 20px 0
}

.ptb--30 {
    padding: 30px 0
}

.ptb--40 {
    padding: 40px 0
}

.ptb--50 {
    padding: 50px 0
}

.ptb--60 {
    padding: 60px 0
}

.ptb--70 {
    padding: 70px 0
}

.ptb--80 {
    padding: 80px 0
}

.ptb--90 {
    padding: 90px 0
}

.ptb--100 {
    padding: 100px 0
}

.ptb--110 {
    padding: 110px 0
}

.ptb--120 {
    padding: 120px 0
}

.ptb--130 {
    padding: 130px 0
}

.ptb--140 {
    padding: 140px 0
}

.ptb--150 {
    padding: 150px 0
}

.ptb--160 {
    padding: 160px 0
}

.ptb--170 {
    padding: 170px 0
}

.ptb--180 {
    padding: 180px 0
}

/*------------------------------
   Page section padding left
-------------------------------*/

.pl--0 {
    padding-left: 0px;
}

.pl--10 {
    padding-left: 10px;
}

.pl--20 {
    padding-left: 20px;
}

.pl--30 {
    padding-left: 30px;
}

.pl--40 {
    padding-left: 40px;
}

.pl--50 {
    padding-left: 50px;
}

.pl--60 {
    padding-left: 60px;
}

.pl--70 {
    padding-left: 70px;
}

.pl--80 {
    padding-left: 80px;
}

.pl--90 {
    padding-left: 90px;
}

.pl--100 {
    padding-left: 100px;
}

.pl--110 {
    padding-left: 110px;
}

/*------------------------------
   Page section padding right
-------------------------------*/

.pr--0 {
    padding-right: 0px;
}

.pr--10 {
    padding-right: 10px;
}

.pr--20 {
    padding-right: 20px;
}

.pr--30 {
    padding-right: 30px;
}

.pr--40 {
    padding-right: 40px;
}

.pr--50 {
    padding-right: 50px;
}

.pr--60 {
    padding-right: 60px;
}

.pr--70 {
    padding-right: 70px;
}

.pr--80 {
    padding-right: 80px;
}

.pr--90 {
    padding-right: 90px;
}

.pr--100 {
    padding-right: 100px;
}

.pr--110 {
    padding-right: 110px;
}

/* Colors */

:root {
    --primary-color: #28a745;
}

#preloader {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999;
    height: 100%;
    width: 100%;
    background: #fff;
    display: flex;
}
.loader{
    margin: auto;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    position: relative;
}
.loader:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #000;
    border-radius: 50%;
    opacity: 0;
    animation: popin 1.5s linear infinite 0s;
}
.loader:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #000;
    border-radius: 50%;
    opacity: 0;
    animation: popin 1.5s linear infinite 0.5s;
}

@keyframes popin{
    0%{
        opacity: 0;
        transform: scale(0);
    }
    1%{
        opacity: 0.1;
        transform: scale(0);
    }
    99%{
        opacity: 0;
        transform: scale(2);
    }
    100%{
        opacity: 0;
        transform: scale(0);
    }
}

.notification-icon {
    color: black !important;
}

.navbar-icon {
    font-size: 24px;
}

.black {
    color: black !important;
}

.white {
    color: white !important;
}

.download-form {
    max-width: 600px;
}

.form-container {
    padding: 10px;
}

.form-container textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #ccc;
    resize: vertical;
}

.form-container input[type=text] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid #ccc;
}

.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.1);
}

.file-upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.flashcard-file-import {
    padding: 7px 15px !important;;
}

/* Enhanced chip container */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 5px;
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

/* Hide scrollbar for Chrome/Safari/Opera */
.chip-container::-webkit-scrollbar {
    width: 6px;
}

.chip-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chip-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 10px;
}

/* Enhanced chip styles */
.enhanced-chip {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.enhanced-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Chip header with category */
.chip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Category styling based on predefined categories */
.enhanced-chip[data-category="Biologia"] .chip-header {
    background: linear-gradient(45deg, #34a853, #4285f4);
    color: white;
}

.enhanced-chip[data-category="Matematyka"] .chip-header {
    background: linear-gradient(45deg, #4285f4, #0f9d58);
    color: white;
}

.enhanced-chip[data-category="Chemia"] .chip-header {
    background: linear-gradient(45deg, #ea4335, #fbbc05);
    color: white;
}

.enhanced-chip[data-category="Muzyka"] .chip-header {
    background: linear-gradient(45deg, #9c27b0, #673ab7);
    color: white;
}

.enhanced-chip[data-category="Popularne zwroty"] .chip-header {
    background: linear-gradient(45deg, #fb8c00, #f4511e);
    color: white;
}

.enhanced-chip[data-category="Własne"] .chip-header {
    background: linear-gradient(45deg, #607d8b, #455a64);
    color: white;
}

/* Default gradient for other categories */
.enhanced-chip .chip-header {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
}

.chip-category {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.chip-remove-btn {
    background: none;
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
    background-color: rgba(255, 255, 255, 0.2);
}

.chip-remove-btn:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Chip content area */
.chip-content {
    padding: 15px;
}

.chip-word {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}

.chip-translation {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 8px;
    font-style: italic;
}

.chip-description {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Empty state for chip container */
.empty-chip-container {
    width: 100%;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: var(--border-radius);
    border: 1px dashed rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .enhanced-chip {
        width: calc(50% - 8px);
    }
}

@media (max-width: 767px) {
    .chip-container {
        max-height: 250px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.button_as_icon {
    background:none;
    border:none;
    padding: 0;
    cursor: pointer;
    z-index: -1;
    color: #000000;
}

.button_as_icon:hover {
    color: #007BFF;
}

.invalid {
    border-bottom: 1px solid red !important;
}

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

.flashcard {
    position: relative;
    width: 300px;
    height: 250px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s;
    transform-style: preserve-3d;
    z-index: 100;
}

.flashcard.is-flipped {
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);

    animation: flipCard 0.5s forwards;
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    /*transform: translateZ(0);*/
    will-change: transform;
}


.front {
    background-color: #007bff;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

.front p {
    margin-top: 20px;
}

.back {
    background-color: #F3F8FB;
    color: #007bff;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transform: rotateY(180deg) translateZ(1px);
}

.back p {
    margin-top: 20px;
}


.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.btn-container .btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

.btn-container .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-container .btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-container .btn span,
.btn-container .btn i {
    position: relative;
    z-index: 1;
}

.btn-container button {
    width: 98px;
    margin: 0 2px;
}

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

.notification-box {
    position: relative;
    top: -100px;
    left: 0;
    width: 300px;
    height: 60px;
    background-color: #28a745;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.5s ease-in-out;
    visibility: hidden;
}

.notification-box.show {
    top: 0;
    visibility: visible;
    z-index: 10;
}

.shape {
    position: absolute;
    width: 50px;
    height: 50px;
    transform: scale(0.8);
    z-index: 110;
}
.cir {
    position: absolute;
    border-radius: 50%;
    z-index: 110;
}

.congrats-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.new-words-text {
    font-size: 18px;
    color: #666;
}

.continue-learning-text {
    font-size: 16px;
    color: #888;
}
#userList {
    max-height: 100px;
    overflow-y: scroll;
}

#userList li {
    cursor: pointer;
}

#selectedUser {
    margin-top: 20px;
    font-weight: bold;
}

.chart-doughnut-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin-left: 2%;
}

.chart_loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-right: 130px;
}

.lds-ring {
    display: inline-block;
    position: relative;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #4159fe;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #4159fe transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.session-stats {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 10px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: capitalize;
}

.flashcard-icon-desc {
    font-size: 20px !important;
    font-weight: bold;
    color: #ffc107;
    cursor: pointer;
}

#flashcard_front_side {
    text-align: center !important;
}
#flashcard_back_side {
    text-align: center !important;
}

.flashcard_volume {
    font-size: 25px !important;
    color: #ffc107;
    cursor: pointer;
    font-weight: bold;
}

.story-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.story,
.translation {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 20px;
}

.story {
    background-color: #d97706;
}

.translation {
    background-color: var(--primary-dark);
}

.clickable {
    color: white;
    cursor: pointer;
}

.clickable:hover{
    color: #ffc107;
}

.flashcard_story_table_row:hover {
    background-color: #f3f8fb;
    cursor: pointer;
}

.story_badge {
    cursor: pointer;
}

.foggy {
    position: relative;
    overflow: hidden;
}

.foggy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

/* Dodaj styl dla preloadera */
.loader {
    border: 4px solid #f59e0b;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -15px;
    margin-left: -15px;
    z-index: 2;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media only screen and (max-width: 600px) {
    .category_stats {
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 0px !important;
        margin-top: 30px;
    }
}

.blue {
    color: #007bff
}

.yellow {
    color: #ffc107;
}

.orange {
    color: var(--warning)
}

.green {
    color: var(--success)
}

.purple {
    color: var(--primary);
}

.flashcard-delete-form {
    display: inline-block;
}

.card-gramma {
    border-radius: var(--border-radius, 12px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: #ffff;
    margin-bottom: 25px;
}

.card-header-gramma {
    font-size: 1.3em;
    background: var(--primary);
    padding: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

#userInput {
    border: 2px solid #ffcc00;
    border-radius: 5px;
    background-color: white;
    color: #0056b3;
    text-align: center;
}

#userInput::placeholder {
    color: #ccc;
}

.correct {
    color: #28a745;
    font-weight: bold;
}

.wrong {
    color: #dc3545;
    font-weight: bold;
}

@keyframes correctAnimation {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

@keyframes wrongAnimation {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(0.8);
    }
}

#wordToTranslate {
    text-align: center;
    font-size: large;
    font-weight: bold;
}

#gramma-lesson-result {
    text-align: center;
    font-size: large;
    font-weight: bold;
}

#gramma-lesson-translated-word {
    text-align: center;
    font-size: large;
    font-weight: bold;
    color: #007BFF;
}

.google-btn {
    border-radius: 0 !important;
}


.storyflash-config .config-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: none;
}


.storyflash-config .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.storyflash-config .section-title i {
    color: var(--primary);
}

.storyflash-config .option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.storyflash-config .option-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.storyflash-config .option-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.storyflash-config .option-card.selected {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.storyflash-config .option-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.storyflash-config .option-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.storyflash-config .option-desc {
    font-size: 0.9rem;
    color: #64748b;
}

.storyflash-config .custom-select {
    width: 100%;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.storyflash-config .custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.storyflash-config .amount-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.storyflash-config .amount-option {
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.storyflash-config .amount-option:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.storyflash-config .amount-option.selected {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

.storyflash-config .btn-container {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.storyflash-config .btn {
    flex: 1;
    padding: 18px 32px;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.storyflash-config .btn-secondary {
    background: white;
    color: #1e293b;
    border: 2px solid #e2e8f0;
}

.storyflash-config .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 20px;
    border-radius: 12px;
    margin-top: 30px;
}

/* Responsive word cards grid */
.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

/* Individual card styling */
.word-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
}

.word-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -40%;
    width: 120%;
    height: 120%;
    opacity: 0.05;
    transform: rotate(20deg);
}

.word-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.15);
}

/* Header (word + translation) */
.word-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.word-text {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.word-translation {
    font-size: 1.0rem;
    font-weight: 600;
    color: var(--primary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Category */
.word-category {
    margin-bottom: 12px;
}

/* Status section */
.word-status {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Adjust icons slightly */
.status-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
}

/* Mobile optimization */
@media (max-width: 480px) {
    .word-card {
        padding: 16px;
    }

    .word-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .word-translation {
        font-size: 1rem;
    }
}
