/* === ENLCLOUD COLOR SCHEME - błękitne i czarne === */
:root {
    /* Kolory zgodne z enlcloud.com - błękitne i czarne */
    --primary-color: #06b6d4; /* Błękitny/cyjan akcent #06b6d4 */
    --secondary-color: #0ea5e9; /* Błękitny dla separatorów */
    --text-color: #ffffff; /* Biały tekst #ffffff */
    --dark-bg: #000000; /* Czarne tło #000000 */
    --card-bg: #0a0a0a; /* Bardzo ciemne szare dla kart */
    --accent: #06b6d4; /* Błękitny akcent */
    --logo-blue: #06b6d4; /* Błękitny dla logo */
    --document-color: #f0f0e0; /* Off-white dla dokumentu */
    --enlcloud-bg: #000000; /* Czarne tło */
    --enlcloud-card: #0a0a0a; /* Bardzo ciemne szare karty */
    --enlcloud-border: rgba(6, 182, 212, 0.2); /* Błękitne obramowanie */
}

/* ENLCLOUD HERO SECTION */
.enlcloud-hero {
    background: var(--enlcloud-bg); /* Czarne tło */
    padding: 120px 20px 80px;
    text-align: center;
    border-bottom: 1px solid var(--enlcloud-border); /* Błękitne obramowanie */
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-buttons .btn {
    padding: 12px 32px;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.hero-buttons .btn-primary {
    background: var(--primary-color); /* Błękitny */
    color: var(--dark-bg); /* Czarne teksty */
    border: none;
}

.hero-buttons .btn-primary:hover {
    background: #0ea5e9; /* Jaśniejszy błękit */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.hero-buttons .btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--enlcloud-border);
}

.hero-buttons .btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ENLCLOUD HEADER */
.enlcloud-header {
    background: var(--enlcloud-bg); /* Czarne tło */
    border-bottom: 1px solid var(--enlcloud-border); /* Błękitne obramowanie */
}

.enlcloud-header .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.enlcloud-header .cloud-icon {
    font-size: 1.8rem;
    margin-left: 5px;
}

.enlcloud-header .header-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background-color: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--enlcloud-border, rgba(6, 182, 212, 0.2));
    color: var(--text-color, #ffffff);
}

.enlcloud-header .header-btn:hover {
    background-color: rgba(6, 182, 212, 0.2);
    border-color: var(--primary-color, #06b6d4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.enlcloud-header .header-btn-primary {
    background-color: var(--primary-color, #06b6d4);
    color: var(--dark-bg, #000000);
    border: 1px solid var(--primary-color, #06b6d4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.enlcloud-header .header-btn-primary:hover {
    background-color: #0891b2;
    border-color: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.4);
}

/* ENLCLOUD MAIN */
.enlcloud-main {
    padding: 60px 20px;
    background: var(--enlcloud-bg);
    min-height: calc(100vh - 200px);
}

/* ENLCLOUD GRID */
.enlcloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.enlcloud-courses .course-card {
    background: var(--enlcloud-card);
    border: 1px solid var(--enlcloud-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.enlcloud-courses .course-card:hover {
    border-color: var(--primary-color); /* Błękitne obramowanie */
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.2);
}

.enlcloud-courses .course-title {
    margin: 0 0 12px 0;
    text-align: left;
}

.enlcloud-courses .course-title a {
    color: var(--primary-color); /* Błękitny kolor tytułu */
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    text-align: left;
}

.enlcloud-courses .course-title a:hover {
    color: #0ea5e9; /* Jaśniejszy błękit na hover */
}

.enlcloud-courses .course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 15px;
    text-align: left;
}

.enlcloud-courses .course-short-description {
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
    line-height: 1.6;
    text-align: left;
    flex-grow: 1;
}

.enlcloud-courses .btn-secondary {
    background: var(--primary-color); /* Błękitny */
    color: var(--dark-bg); /* Czarne teksty */
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.enlcloud-courses .btn-secondary:hover {
    background: #0ea5e9; /* Jaśniejszy błękit */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.enlcloud-courses .course-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
    flex-wrap: wrap;
}

.enlcloud-courses .course-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

.enlcloud-courses .btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    min-width: 80px;
    display: inline-block;
}

.enlcloud-courses .btn-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

.enlcloud-courses .btn-danger {
    background: #ef4444;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
    min-width: 80px;
    display: inline-block;
}

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

.enlcloud-courses .delete-form-top {
    position: absolute;
    top: 12px;
    right: 12px;
    margin: 0;
    padding: 0;
    z-index: 10;
}

.enlcloud-courses .delete-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ef4444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    color: var(--text-color);
}

.enlcloud-courses .delete-icon-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.enlcloud-courses .delete-icon-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .enlcloud-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Usuwam nadpisanie body - nie powinno wpływać na footer */
/* body {
    background-color: var(--dark-bg);
    color: var(--text-color);
} */

.courses-container, .course-detail, .create-course, .edit-course, .create-lesson, .edit-lesson {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    padding: 24px;
    border: 1px solid rgba(40, 74, 120, 0.2);
}

.breadcrumbs, .form-hint, .course-description, .lesson-content, .duration, .course-meta, .no-content {
    color: #cbd5e1 !important;
}

.course-card, .lesson-item, .card {
    background: var(--card-bg);
    color: var(--text-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 1px solid rgba(40, 74, 120, 0.2);
}

/* Robię style input bardziej specyficzne - tylko dla formularzy kursów */
.course-form input, .course-form textarea, .course-form select,
.lesson-form input, .lesson-form textarea, .lesson-form select {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(40, 74, 120, 0.3);
    border-radius: 6px;
}

/* === KONIEC DODATKU === */

/* Courses Module Stylesheet */

/* General Styles */
.courses-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px 40px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 20px;
}

.breadcrumbs {
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.no-content {
    padding: 50px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.admin-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Course Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.course-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--card-bg);  /* <-- DARK MODE */
    color: var(--text-color);
    display: flex;
    flex-direction: column;
}

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

.course-thumbnail {
    height: 180px;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.course-title a {
    color: var(--accent) !important;
    text-decoration: none;
}

.course-title a:hover {
    color: #f59e0b !important;
}

.course-meta {
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.difficulty {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.beginner {
    background: rgba(16, 185, 129, 0.25);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    display: inline-block;
}

.intermediate {
    background: rgba(251, 191, 36, 0.2);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.duration {
    color: var(--text-color);
    font-size: 0.9rem;
    display: inline-block;
}

.premium-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #000000;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.hidden-badge {
    background: #6b7280;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

/* Ukryte kursy - przygaszone */
.course-card.hidden {
    opacity: 0.6;
    border-color: #6b7280;
}

.course-card.hidden .course-title a {
    color: #9ca3af;
}

.course-short-description {
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-color) !important;
}

.course-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* Course Detail Page */
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.course-detail .course-thumbnail {
    height: 300px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.course-description {
    line-height: 1.6;
    color: var(--text-color) !important;
    margin-bottom: 40px;
}

/* Lessons Section */
.lessons-section {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.lessons-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.lesson-order {
    background-color: #007bff;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
}

.lesson-content {
    flex-grow: 1;
}

.lesson-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.lesson-title a {
    color: var(--accent) !important;
    text-decoration: none;
}

.lesson-title a:hover {
    color: #ffe066 !important;
}

.lesson-actions {
    display: flex;
    gap: 5px;
}

/* Lesson Detail Page */
.lesson-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.lesson-header {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.lesson-video {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.lesson-content {
    line-height: 1.8;
    color: var(--text-color) !important;
    margin-bottom: 40px;
}

.lesson-navigation {
    margin-top: 40px;
    border-top: 1px solid var(--enlcloud-border);
    padding-top: 20px;
}

.lesson-nav-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.lesson-sidebar {
    background-color: var(--enlcloud-card);
    border: 1px solid var(--enlcloud-border);
    padding: 20px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.lesson-sidebar h3 {
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 20px;
}

.sidebar-lessons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-lessons-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--enlcloud-border);
}

.sidebar-lessons-list li:last-child {
    border-bottom: none;
}

.sidebar-lessons-list li.active {
    background-color: rgba(6, 182, 212, 0.15);
    margin: 0 -20px;
    padding: 10px 20px;
    border-radius: 4px;
}

.sidebar-lessons-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.sidebar-lessons-list a:hover {
    color: var(--primary-color);
}

.lesson-number {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.8rem;
}

.active .lesson-number,
.sidebar-lessons-list li.active .lesson-number {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

/* Forms */
.course-form, .lesson-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

textarea {
    resize: vertical;
}

.form-hint {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

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

.form-group.checkbox input {
    margin-right: 10px;
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

/* Buttons - teraz nie kolidują z header */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #0891b2;
    color: var(--dark-bg);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

.delete-form {
    display: inline;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .lesson-detail {
        grid-template-columns: 1fr;
    }
    
    .lesson-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .course-header {
        flex-direction: column;
    }
    
    .admin-actions {
        margin-top: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .lesson-nav-buttons {
        flex-direction: column;
    }
    
    .courses-grid {
        grid-template-columns: 1fr;
    }
}

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

.courses-grid .course-card {
    animation: fadeIn 0.5s ease forwards;
}

.courses-grid .course-card:nth-child(2) {
    animation-delay: 0.1s;
}

.courses-grid .course-card:nth-child(3) {
    animation-delay: 0.2s;
}

.courses-grid .course-card:nth-child(4) {
    animation-delay: 0.3s;
}

.courses-grid .course-card:nth-child(5) {
    animation-delay: 0.4s;
}

.courses-grid .course-card:nth-child(n+6) {
    animation-delay: 0.5s;
} 