/* ===== ZMIENNE ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --accent: #f97316;
    --background: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --card: #ffffff;
    --card-hover: #f1f5f9;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
}

/* Features and How It Works Sections */
.features,
.how-it-works {
    padding: 100px 0;
}

.form-section {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.how-it-works {
    background-color: #f1f5f9;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.step-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta .btn {
    background-color: white;
    color: var(--primary);
    margin: 0 10px;
}

.cta .btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.contact-item {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-item i {
    color: var(--primary);
}

.contact-item p {
    margin: 0;
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary));
    border-radius: 50%;
    opacity: 0.1;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary),);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s forwards;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 1s 0.2s forwards;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 1s 0.4s forwards;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: floatIn 1s 0.6s forwards;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container .text {
    color: white;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--primary);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text);
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-icon {
    position: relative;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.notification-icon:hover {
    color: var(--primary);
}

.notification-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.main-content {
    flex: 1;
    padding: 120px 0 60px;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-title p {
    color: var(--text-light);
    max-width: 600px;
}

.card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
}

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

.card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.card-body {
    padding: 15px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-success:focus {
    background-color: #059669;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--accent);
    color: white;
}

.btn-warning:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    color: white;
}

.btn-warning:focus {
    background-color: #d97706;
    transform: translateY(-2px);
    color: white;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-danger:focus {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.button-ai {
    background: linear-gradient(to right, #ef4444, #f97316);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button-ai:hover {
    transform: translateY(-2px);
}

/* ===== FORMULARZE ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    background-color: white;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group .form-control {
    flex: 1;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--text-light);
}

.input-icon .form-control {
    padding-left: 45px;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ===== ALERTY ===== */
.alert {
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-warning {
    background-color: var(--warning);
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert i {
    font-size: 1.2rem;
}

.flashcard-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    perspective: 1000px;
}

.flashcard {
    width: 100%;
    max-width: 500px;
    height: 300px;
    border-radius: 20px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.front, .back, .flashcard-front, .flashcard-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: var(--card-shadow);
}

.front, .flashcard-front {
    background: var(--card);
    color: white;
}

.front h3 {
    color: #1b1e21;
}

.front .flashcard_volume {
    color: var(--primary);
}

.back, .flashcard-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: rotateY(180deg);
}

.flashcard-item {
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 200px;
    perspective: 1000px;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard-item:hover .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.flashcard-word {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashcard-back .flashcard-word {
    color: white;
}

/* ===== GRAMATYKA ===== */
.grammar-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background-color: white;
    transition: var(--transition);
}

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

.grammar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    font-size: 1.2rem;
}

.grammar-body {
    padding: 30px;
}

.word-to-translate {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text);
}

.summary-card {
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.summary-content {
    position: relative;
    z-index: 1;
}

.summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: white;
}

.summary-icon.blue {
    background: linear-gradient(135deg, var(--primary), var(--info));
}

.summary-icon.green {
    background: linear-gradient(135deg, var(--secondary), var(--success));
}

.summary-icon.orange {
    background: linear-gradient(135deg, var(--accent), var(--warning));
}

.summary-icon.red {
    background: linear-gradient(135deg, var(--danger), var(--accent));
}

.chart-container {
    position: relative;
    margin: auto;
    height: 400px;
    width: 100%;
}

.chart-container.small {
    height: 300px;
}

.accordion {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.accordion-item {
    border-radius: var(--border-radius);
    background-color: var(--card);
    box-shadow: var(--card-shadow);
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.accordion-header {
    padding: 18px 20px;
    background-color: var(--card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--card-hover);
}

.accordion-header.active {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 2000px;
}

.table-container {
    margin: 2rem 0;
    overflow-x: auto;
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: white !important;
}
.table thead {
    color: white;
}

.table th {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #6366f1;
    color: white;
    text-align: center;
    padding: 15px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

table th:first-child {
    border-top-left-radius: 8px;
}

table th:last-child {
    border-top-right-radius: 8px;
}

table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text);
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background-color: var(--card-hover);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.2rem;
    justify-content: center;
    margin-top: 1.5rem;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px !important;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.page-link:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
}

.page-item.active .page-link {
    background: #6366f1;
    border-color: #6366f1;
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.status-icon.success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-icon.danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.progress-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-dots {
    display: flex;
    gap: 8px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    transition: var(--transition);
}

.progress-dot.active {
    background-color: var(--primary);
}

.progress-dot.completed {
    background-color: var(--success);
}

/* Style do centrowania modalnych okien Bootstrap */
.modal {
    text-align: center;
    padding: 0 !important;
}

.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
    max-width: 500px;
    width: 90%;
    margin: 30px auto;
}

/* Ulepszony wygląd modalnych okien */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
    background-color: #f8fafc;
}

/* Przycisk zamykania */
.close {
    color: white;
    opacity: 0.7;
    text-shadow: none;
    transition: opacity 0.3s ease;
}

.close:hover {
    color: white;
    opacity: 1;
}

/* Animacja modala */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Przyciski w modalu */
.modal .btn {
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 500;
}

.modal .btn-primary {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

.modal .btn-primary:hover {
    background-color: #4338ca;
    border-color: #4338ca;
}

.modal .btn-secondary {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #475569;
}

.modal .btn-secondary:hover {
    background-color: #cbd5e1;
    border-color: #cbd5e1;
    color: #334155;
}

/* Responsywność */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 20px auto;
        width: 95%;
    }

    .modal-body {
        padding: 15px;
    }
}

.notification-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.notification-box {
    padding: 15px 25px;
    border-radius: var(--border-radius);
    background-color: #e0e7ff;
    color: var(--primary-dark);
    display: none;
    animation: fadeIn 0.3s forwards;
}

/* Badges */
.badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.story_badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Generate Button */
.button-ai {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.button-ai:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    color: white;
}

.button-ai:active {
    transform: translateY(0);
}

/* Story Container */
.story-container {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
}

.story-container p {
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flashcard_volume {
    cursor: pointer;
    font-size: 1.25rem;
    transition: all 0.2s;
}

.flashcard_volume:hover {
    transform: scale(1.2);
    color: #6366f1;
}

.flashcard_volume.purple {
    color: #8b5cf6;
}

.translation, .story {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.clickable {
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
    color: black;
}

.clickable:hover {
    background: #ddd6fe;
    color: #6366f1;
}

.clickable-badge {
    display: inline-block;
}

/* Loader */
.loader {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-container {
        font-size: 0.875rem;
    }
}

hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 1.5rem 0;
}

em {
    color: #6366f1;
    font-style: normal;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chip-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.chip {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.chip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.chip-category {
    background: var(--primary-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip-remove-btn {
    background: var(--danger);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chip-remove-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.chip-content {
    text-align: center;
}

.chip-word {
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.chip-translation {
    font-size: 1rem;
    color: #6b7a90;
    font-style: italic;
}

/* ===== FOOTER ===== */
footer {
    background-color: #1e293b;
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1 1 300px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo i {
    margin-right: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    max-width: 300px;
    margin-top: 10px;
    line-height: 1.6;
}

.footer-links {
    flex: 1 1 200px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-contact {
    flex: 1 1 300px;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}


.testimonials {
    padding: 100px 0;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 15px;
    right: 30px;
    font-size: 5rem;
    color: rgba(99, 102, 241, 0.1);
    font-family: sans-serif;
    line-height: 1;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary));
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.login-container {
    width: 100%;
    max-width: 450px;
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    animation: fadeInUp 0.8s forwards;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    color: var(--text-light);
}

.input-icon .form-control {
    padding-left: 45px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    accent-color: var(--primary);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.forgot-password {
    font-size: 0.9rem;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.social-login {
    text-align: center;
}

.social-login-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 15px;
    position: relative;
}

.social-login-text::before,
.social-login-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #e2e8f0;
}

.social-login-text::before {
    left: 0;
}

.social-login-text::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google {
    color: #ea4335;
}

.register-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    margin-bottom: 25px;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.social-btn.facebook {
    color: #1877f2;
}

.social-btn.apple {
    color: #000000;
}

.register-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.register-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.register-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark));
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.register-container {
    width: 100%;
    max-width: 500px;
    background-color: var(--card);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 40px;
    animation: fadeInUp 0.8s forwards;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.register-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.learn-dropdown {
    position: relative;
    display: inline-block;
}

.learn-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text, #1e293b);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.learn-toggle:hover {
    color: var(--primary, #6366f1);
}

.learn-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

/* Nauka */
.learn-page-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 8%;
}

.learn-page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary, #6366f1);
    letter-spacing: -0.02em;
}

.learn-page-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    font-weight: 400;
}

.learn-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.learn-mode-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.learn-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.learn-mode-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.learn-mode-card:hover::before {
    opacity: 0.03;
}

.learn-mode-card.learn-flashcards-mode {
    --gradient: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    --icon-bg: #eef2ff;
    --icon-color: #6366f1;
}

.learn-mode-card.learn-stories-mode {
    --gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --icon-bg: #ecfdf5;
    --icon-color: #10b981;
}

.learn-mode-card.learn-grammar-mode {
    --gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --icon-bg: #fffbeb;
    --icon-color: #f59e0b;
}

.learn-mode-card.learn-history-mode {
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --icon-bg: #faf5ff;
    --icon-color: #8b5cf6;
}

.learn-mode-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.learn-mode-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
    font-size: 2rem;
    color: var(--icon-color);
    background: var(--icon-bg);
    transition: all 0.3s ease;
}

.learn-mode-card:hover .learn-mode-card-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
}

.learn-mode-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.learn-mode-card-description {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Grid centering dla 4 elementów */
.learn-modes-grid:has(.learn-mode-card:nth-child(4):not(:nth-child(5))) {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    max-width: 900px;
}

/* Animations */
@keyframes learnPageFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.learn-mode-card {
    animation: learnPageFadeInUp 0.6s ease forwards;
    opacity: 0;
}

.learn-mode-card:nth-child(1) {
    animation-delay: 0.1s;
}

.learn-mode-card:nth-child(2) {
    animation-delay: 0.2s;
}

.learn-mode-card:nth-child(3) {
    animation-delay: 0.3s;
}

.learn-mode-card:nth-child(4) {
    animation-delay: 0.4s;
}

.learn-page-header {
    animation: learnPageFadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
    .learn-modes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 800px;
    }

    .learn-page-title {
        font-size: 2.3rem;
    }
}

@media (max-width: 576px) {
    .learn-modes-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .learn-mode-card {
        padding: 2rem 1.5rem;
    }

    .learn-page-title {
        font-size: 2rem;
    }

    .learn-page-subtitle {
        font-size: 1rem;
    }

    .learn-mode-card-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    .learn-mode-card-title {
        font-size: 1.3rem;
    }
}


/* Menu domyślnie ukryte */
.learn-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 10px;
    z-index: 1000;
}

/* Trójkątny wskaźnik nad menu */
.learn-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.learn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text, #1e293b);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.learn-item:hover {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary, #6366f1);
}

.learn-item i {
    font-size: 1rem;
    color: var(--primary, #6366f1);
}

.container .row {
    margin-top: 5%;
}

.row .container {
    margin-top: 5%;
}

.icon_link {
    color: black;
}

.icon_link:hover {
    color: var(--primary, #6366f1);
}

/* Style dla odświeżonego widoku powiadomień */
.dropdown.settings-btn {
    position: relative;
}

.dropdown-toggle.fa-bell {
    font-size: 1.2rem;
    color: var(--text, #1e293b);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-toggle.fa-bell:hover {
    color: var(--primary, #6366f1);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent, #f97316);
    color: white;
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(249, 115, 22, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

.notify-box {
    width: 320px !important;
    border-radius: var(--border-radius, 12px) !important;
    overflow: hidden !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 0 !important;
}

.notify-header {
    background: linear-gradient(135deg, var(--primary, #6366f1), var(--primary-dark, #4f46e5));
    color: white;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notify-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.unread_notifcation_number {
    background-color: white;
    color: var(--primary, #6366f1);
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    min-width: 20px;
    text-align: center;
}

.nofity-list {
    background-color: white;
}

.notify-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text, #1e293b);
    position: relative;
    transition: all 0.3s ease;
}

.notify-item:hover {
    background-color: var(--card-hover, #f1f5f9);
}

.notify-item.unread {
    background-color: rgba(99, 102, 241, 0.05);
}

.notify-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notify-thumb i {
    font-size: 1rem;
}

.notify-text {
    flex: 1;
}

.notify-text p {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notify-text span {
    font-size: 0.75rem;
    color: var(--text-light, #64748b);
    display: flex;
    align-items: center;
    gap: 4px;
}

.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary, #6366f1);
    display: block;
    flex-shrink: 0;
}

.empty-notifications {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-light, #64748b);
}

.empty-notifications i {
    font-size: 2.5rem;
    opacity: 0.3;
    margin-bottom: 15px;
    display: block;
}

.empty-notifications p {
    margin: 0;
    font-size: 0.9rem;
}

.notify-footer {
    padding: 12px;
    background-color: #f8fafc;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.all-notifications {
    color: var(--primary, #6366f1);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.all-notifications:hover {
    color: var(--primary-dark, #4f46e5);
    text-decoration: none;
}

/* Niestandardowy scrollbar dla przeglądarek webkit */
.slimScrollDiv::-webkit-scrollbar,
.nofity-list::-webkit-scrollbar {
    width: 5px;
}

.slimScrollDiv::-webkit-scrollbar-track,
.nofity-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.slimScrollDiv::-webkit-scrollbar-thumb,
.nofity-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 5px;
}

.slimScrollDiv::-webkit-scrollbar-thumb:hover,
.nofity-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.orange-box {
    background-color: var(--accent);
    color: white;
    font-size: 14px;
}

.token-count {
    background-color: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.custom-select-category {
    width: 100%;
    padding: 0 20px;
    margin: 8px 0;
    border-radius: var(--border-radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    border: none;
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    border-bottom: 1px solid #ccc;
    transition: var(--transition);
}

.quick-learn-button {
    display: block;
}

.quick-learn-button-mobile {
    display: none;
}

/* Add these styles to your CSS file */

/* Use your site's color scheme */
.chart_loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 51px;
    height: 51px;
    margin: 6px;
    border: 6px solid var(--primary, #6366f1);
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--primary, #6366f1) 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);
    }
}

.card {
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--card-shadow, 0 10px 25px -5px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: var(--card, #ffffff);
}

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

.header-title {
    color: #64748b;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1%;
}

.custom-select {
    border-radius: var(--border-radius, 12px);
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231e293b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: all 0.3s ease;
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Make canvas responsive */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Gradient title for the Flashcard section */
.gradient-title {
    background: linear-gradient(45deg, var(--primary, #6366f1), var(--accent, #f97316));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 20px;
    }

    .header-title {
        font-size: 1.1rem;
    }
}

/* Animation for chart appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out forwards;
}

.col-lg-4:nth-child(2) .card {
    animation-delay: 0.1s;
}

.col-lg-4:nth-child(3) .card {
    animation-delay: 0.2s;
}

@media (max-width: 998px) {
    .quick-learn-button {
        display: none;
    }

    .quick-learn-button-mobile {
        display: block;
        min-width: 205px;
    }

    .quick-learn-button-mobile span {
        display: block !important;
    }

    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .hero-image {
        order: 2;
        margin-top: 40px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .mt-30 {
        margin-top: 30%;
    }

    .hero {
        margin-top: 10%;
    }
    nav {
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        width: 100%;
        order: 3;
        background: white;
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        margin-top: 10px;
        border-top: 1px solid #eee;
        border-radius: 25px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

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

    .nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eee;
    }

    .nav-links a,
    .learn-toggle {
        padding: 12px 15px;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .learn-dropdown {
        width: 100%;
    }

    .learn-toggle {
        display: flex;
        justify-content: space-between;
    }

    .learn-menu {
        display: none !important;
    }

    .learn-toggle i {
        display: none;
    }

    .learn-menu.active {
        display: block;
    }

    .learn-item {
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .learn-item:last-child {
        border-bottom: none;
    }

    .user-nav {
        margin-left: auto;
        margin-right: 15px;
    }

    .logo {
        flex: 1;
        order: 1;
    }

    .user-nav {
        margin-top: 5%;
        order: 2;
        justify-content: flex-end;
        gap: 10px;
    }

    .mobile-nav-toggle {
        display: block;
        margin-left: auto;
        margin-right: 15px;
        order: 1;
    }

    .flashcards-container {
        flex-direction: column;
    }

    .flashcards-form {
        width: 100%;
    }

    .stats-grid,
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-bottom: 30px;
        min-width: 350px;
    }

    .cta-buttons {
        justify-content: center;
    }

    @media (max-width: 480px) {
        .quick-learn-button-mobile {
            margin-right: 15%;
        }

        .hero-text h1 {
            font-size: 2rem;
        }

        .hero-text p {
            font-size: 1rem;
        }

        .cta-buttons {
            flex-direction: column;
        }

        .section-title h2 {
            font-size: 2rem;
        }

        .summary-stats {
            grid-template-columns: 1fr;
        }

        .accordion-header {
            padding: 15px;
            font-size: 0.9rem;
        }

        .status-icon {
            width: 25px;
            height: 25px;
            font-size: 0.8rem;
        }

        .flashcard h3 {
            font-size: 16px;
        }

        .flashcard p {
            font-size: 13px;
        }
    }
    @media (max-width: 576px) {
        .btn span {
            display: none;
        }

        .btn {
            padding: 8px;
        }

        .btn i {
            margin-right: 0;
        }
    }

    @media (min-width: 598px) {
        .mobile-nav-toggle {
            display: block;
            margin-left: auto;
            margin-right: 15px;
            margin-top: 40px;
            order: 1;
        }
    }

    @media (max-width: 768px) {
        .nav-links {
            display: none;
        }

        .mobile-nav-toggle {
            display: block;
        }

        .user-nav {
            gap: 15px;
        }

        .user-nav .btn span {
            display: none;
        }

        .summary-stats {
            grid-template-columns: 1fr 1fr;
        }

        .footer-content {
            grid-template-columns: 1fr;
            text-align: center;
            gap: 20px;
        }

        .footer-logo p {
            max-width: 100%;
        }

        .footer-logo {
            margin-bottom: 10px;
        }

        .footer-links h3::after,
        .footer-contact h3::after {
            left: 50%;
            transform: translateX(-50%);
        }

        .btn-container {
            flex-direction: column;
            align-items: stretch;
        }

        .word-to-translate {
            font-size: 1.5rem;
        }

        .feature-card {
            align-items: center;
            text-align: center;
        }

        .steps {
            gap: 60px;
        }

        .step {
            flex-direction: column;
            text-align: center;
            align-items: center;
        }

        .step-number {
            margin-bottom: 10px;
        }

        .hero {
            height: auto;
            padding: 120px 0 60px;
        }

        .hero-text h1 {
            font-size: 2.5rem;
        }

        .learn-dropdown {
            position: static;
            width: 100%;
        }

        .learn-toggle {
            width: 100%;
            justify-content: space-between;
        }

        .learn-menu {
            position: static;
            box-shadow: none;
            padding-left: 20px;
            margin-top: 0;
        }

        .learn-menu::before {
            display: none;
        }

        .btn-container button {
            width: auto;
        }

        .flashcard h3 {
            font-size: 18px;
            line-height: 1.4;
        }

        .flashcard p {
            font-size: 14px;
            line-height: 1.3;
        }

        #flashcard_front_side,
        #flashcard_back_side {
            max-width: 100%;
            height: auto !important;
            overflow: auto;
        }
    }

    @media (max-width: 400px) {
        .quick-learn-button-mobile {
            margin-right: 0%;
        }
    }
}
