/**
 * LearnDash Video Notes - Account Page Styles
 */

/* Main Container */
.ldvn-account-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Header */
.ldvn-account-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
}

.ldvn-account-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.ldvn-account-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.ldvn-download-all {
    display: inline-block;
    background: #06112a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    font-weight: 400;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.ldvn-download-all:hover {
	color:#fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

/* Empty State */
.ldvn-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-top: 30px;
}

.ldvn-empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.ldvn-empty-state h3 {
    font-size: 24px;
    color: #666;
    margin: 0 0 10px 0;
}

.ldvn-empty-state p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* Course List */
.ldvn-course-list {
    margin-top: 30px;
}

/* Course Item */
.ldvn-course-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ldvn-course-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #d5d5d5;
}

/* Course Header */
.ldvn-course-header {
    background: linear-gradient(135deg, #06112a 0%, #0755f5 100%);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.ldvn-course-download {
    display: none;
}
.ldvn-course-title {
	color:#fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.ldvn-course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.ldvn-course-notes-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.ldvn-course-download {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 13px;
}

.ldvn-course-download:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.ldvn-course-toggle {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.ldvn-course-item.active .ldvn-course-toggle {
    transform: rotate(180deg);
}

/* Course Content */
.ldvn-course-content {
    display: none;
    padding: 24px;
    background: #fafafa;
}

.ldvn-course-item.active .ldvn-course-content {
    display: block;
}

/* Lesson List */
.ldvn-lesson-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Lesson Item */
.ldvn-lesson-item {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

/* Lesson Header */
.ldvn-lesson-header {
    background: #f5f5f5;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
}

.ldvn-lesson-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.ldvn-lesson-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.ldvn-lesson-notes-count {
    background: #e0e0e0;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
}

span.ldvn-note-timestamp {
    display: none;
}

.ldvn-lesson-download {
    background: #06112a;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 12px;
}

.ldvn-lesson-download:hover {
	color:#fff;
    transform: translateY(-1px);
}

/* Notes List */
.ldvn-notes-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Single Note */
.ldvn-single-note {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.ldvn-single-note:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.ldvn-note-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.ldvn-note-timestamp {
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.ldvn-note-date {
    color: #999;
}

.ldvn-note-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    word-wrap: break-word;
}

/* Stats Summary */
.ldvn-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ldvn-stat-card {
    background: linear-gradient(135deg, #06112a 0%, #0755f5 100%);
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
}

.ldvn-stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ldvn-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ldvn-account-header h2 {
        font-size: 24px;
    }
    
    .ldvn-course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ldvn-course-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .ldvn-course-toggle {
        position: absolute;
        top: 20px;
        right: 24px;
    }
    
    .ldvn-lesson-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ldvn-lesson-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .ldvn-stats-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ldvn-course-content,
    .ldvn-notes-list {
        padding: 16px;
    }
    
    .ldvn-course-header {
        padding: 16px;
    }
    
    .ldvn-lesson-header {
        padding: 12px 16px;
    }
    
    .ldvn-single-note {
        padding: 12px;
    }
}

/* Print Styles */
@media print {
    .ldvn-download-all,
    .ldvn-course-download,
    .ldvn-lesson-download,
    .ldvn-course-toggle {
        display: none !important;
    }
    
    .ldvn-course-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .ldvn-course-content {
        display: block !important;
    }
    
    .ldvn-course-header {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* Loading State */
.ldvn-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.ldvn-loading:after {
    content: '...';
    animation: ldvnDots 1.5s infinite;
}

@keyframes ldvnDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* Animation */
.ldvn-course-item,
.ldvn-lesson-item,
.ldvn-single-note {
    animation: ldvnFadeIn 0.3s ease;
}

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