@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.hero-pattern {
    background-color: #f8fafc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23a0aec0' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.timestamp-item {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.timestamp-item:hover {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-3px);
}
.timestamp-item.important {
    border-left-color: #ef4444;
}
.timestamp-item.question {
    border-left-color: #3b82f6;
}
.timestamp-item.note {
    border-left-color: #6b7280;
}
.timestamp-item.action {
    border-left-color: #10b981;
}
.timestamp-item.chapter {
    border-left-color: #10b981;
}
.timestamp-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.3s ease;
    z-index: 1;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    border: none;
}
.modal {
    backdrop-filter: blur(4px);
}
.player-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.player-container video,
.player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1rem;
}
.timestamp-sidebar {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    width: 100%;
}
.timestamp-sidebar::-webkit-scrollbar {
    width: 6px;
}
.timestamp-sidebar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.timestamp-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.timestamp-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.recording {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}
.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.tag-important {
    background-color: #fee2e2;
    color: #b91c1c;
}
.tag-important.selected {
    border-color: #b91c1c;
    background-color: #fecaca;
}
.tag-question {
    background-color: #dbeafe;
    color: #1d4ed8;
}
.tag-question.selected {
    border-color: #1d4ed8;
    background-color: #bfdbfe;
}
.tag-note {
    background-color: #f3f4f6;
    color: #4b5563;
}
.tag-note.selected {
    border-color: #4b5563;
    background-color: #e5e7eb;
}
.tag-action {
    background-color: #dcfce7;
    color: #166534;
}
.tag-action.selected {
    border-color: #166534;
    background-color: #bbf7d0;
}
.timeline-container {
    position: relative;
    height: 60px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    z-index: 1;
}
.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    transition: all 0.2s ease;
}
.timeline-marker:hover {
    transform: translateY(-50%) scale(1.5);
    background: #1d4ed8;
}
.timeline-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    z-index: -1;
}
.timeline-marker.chapter {
    border-radius: 0;
    transform: translateY(-50%) rotate(45deg);
    background: #10b981;
}
.timeline-marker.chapter:hover {
    transform: translateY(-50%) rotate(45deg) scale(1.5);
}
.delete-modal {
    animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.delete-icon {
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}
.chapter-highlight {
    background: linear-gradient(
        90deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(16, 185, 129, 0.2) 100%
    );
    border-left: 3px solid #10b981;
}
.ai-highlight {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.1) 0%,
        rgba(99, 102, 241, 0.2) 100%
    );
    border-left: 3px solid #6366f1;
}
.loading-spinner {
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    border-top: 3px solid #6366f1;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
.hero-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}
.hero-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.hero-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}
.hero-card-body {
    padding: 1.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.btn-secondary {
    background: white;
    color: #6366f1;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.text-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.auto-play-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 6px;
    animation: blink 1.5s infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
.chapter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #10b981;
    color: white;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    flex-shrink: 0;
}
.api-key-input {
    margin-bottom: 1rem;
}
.api-info {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #0369a1;
}
.video-player-wrapper {
    background: #000;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}
.video-player-wrapper iframe,
.video-player-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.timestamp-time {
    font-family: "Courier New", monospace;
    font-weight: 600;
    color: #3b82f6;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.comment-section {
    margin-top: 1rem;
    padding: 0.5rem;
}
.comment-input {
    resize: none;
}
.project-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.option-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}
.option-card:hover {
    border-color: #6366f1;
    transform: translateY(-5px);
}
.option-card.selected {
    border-color: #6366f1;
    background-color: #f5f3ff;
}
.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.pagination-btn {
    transition: all 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
}
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.privacy-note {
    background-color: rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}
.voice-input-btn {
    position: relative;
    overflow: hidden;
}
.voice-input-btn.recording {
    background-color: #ef4444;
}
.comment-bubble {
    background-color: #f3f4f6;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    position: relative;
    margin-top: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}
.comment-bubble:hover {
    background-color: #e5e7eb;
}
.comment-bubble::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 20px;
    border-width: 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent #f3f4f6;
}
.tag-selector {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.add-timestamp-panel {
    background-color: #f9fafb;
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e5e7eb;
}
.refreshing-bg {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.favorite-btn {
    color: #d1d5db;
    transition: all 0.2s ease;
}
.favorite-btn.active {
    color: #ef4444;
}
.favorite-btn:hover {
    color: #ef4444;
    transform: scale(1.2);
}
.comment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.comment-form {
    margin-top: 0.5rem;
}
.no-timestamps-modal {
    animation: slideIn 0.3s ease-out;
}
.project-name-modal {
    animation: slideIn 0.3s ease-out;
}
.comment-modal {
    animation: slideIn 0.3s ease-out;
}
.action-button {
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 10;
}
.action-button:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 1);
}
.action-button i {
    color: #3b82f6;
    font-size: 1.25rem;
}
.action-button i.fa-comment {
    color: #10b981;
}
.floating-action-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 40;
    transition: all 0.3s ease;
}
.timestamp-card {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}
.timestamp-card:hover {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.comment-button {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.comment-button:hover {
    background: #e5e7eb;
    color: #1f2937;
}
.sound-effect {
    display: none;
}
.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
    display: flex;
    align-items: center;
}
.section-title i {
    margin-right: 0.5rem;
}
.favorites-section {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
#playPauseButton {
    z-index: 10;
    transition: all 0.2s ease;
}
#playPauseButton:hover {
    transform: scale(1.1);
}
.edit-timestamp-modal {
    animation: slideIn 0.3s ease-out;
}
.chapter-scroll-container {
    max-height: 300px;
    overflow-y: auto;
    scroll-behavior: auto;
}
.chapter-scroll-container.no-scroll {
    max-height: none;
    overflow: visible;
}
.chapter-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.chapter-scroll-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.chapter-scroll-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.chapter-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
.page-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    margin: 0 4px;
    transition: all 0.2s ease;
}
.page-indicator.active {
    background-color: #6366f1;
    color: white;
}
.page-indicator:hover:not(.active) {
    background-color: #f3f4f6;
}
.collapsible-section {
    margin-bottom: 1rem;
}
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.collapsible-header:hover {
    background-color: #f1f5f9;
}
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.collapsible-content.expanded {
    max-height: 500px;
    overflow-y: auto;
}
.load-more-btn {
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.load-more-btn:hover {
    background-color: #f1f5f9;
}
.action-button-text {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    pointer-events: none;
}
/* YouTube thumbnail fix */
.youtube-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 5;
    transition: opacity 0.3s ease;
}
.youtube-thumbnail.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Add these styles to your existing CSS */
.shining-text {
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 20%,
        #667eea 40%,
        #764ba2 60%,
        #667eea 80%,
        #764ba2 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Optional: Add a glow effect on hover */
.shining-text:hover {
    text-shadow: 0 0 40px rgba(102, 126, 234, 0.5);
    transition: text-shadow 0.3s ease;
}

.morphing-gradient {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
/* Add to your CSS */
.read-chapter {
    opacity: 0.7;
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}

.unread-chapter {
    opacity: 1;
}

.timestamp-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%; /* Changed from 3px to cover entire height */
    background: linear-gradient(
        90deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(16, 185, 129, 0.3) 100%
    );
    transition: width 0.3s ease;
    z-index: 1;
    border-radius: 1rem; /* Match the timestamp item border radius */
}
