/* Enhanced YouTube Summary Styles */

/* Enhanced Layout Structure */
.yt-summary-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 60px;
    animation: fadeIn 0.8s ease-out;
    gap: 0;
}

/* Enhanced Summaries Panel */
.summaries-panel {
    width: 380px;
    background: linear-gradient(180deg, 
        rgba(18, 18, 18, 0.95) 0%, 
        rgba(30, 30, 30, 0.92) 50%,
        rgba(18, 18, 18, 0.95) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    position: relative;
    z-index: 10;
    box-shadow: 2px 0 25px rgba(0, 0, 0, 0.4);
    border-right-style: solid;
    border-right-width: 2px;
    border-image: linear-gradient(180deg, 
        rgba(0, 255, 149, 0.3) 0%, 
        rgba(0, 184, 255, 0.3) 50%, 
        rgba(127, 0, 255, 0.3) 100%) 1;
}

.summaries-panel.collapsed {
    width: 70px;
    cursor: pointer;
    overflow: visible;
}

.summaries-panel.collapsed .panel-content {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-100%);
}

.summaries-panel.collapsed .toggle-panel-btn {
    pointer-events: all;
    position: relative;
    z-index: 100;
}

.summaries-panel.collapsed:hover {
    background: linear-gradient(180deg, 
        rgba(0, 255, 149, 0.1) 0%, 
        rgba(30, 30, 30, 0.92) 50%,
        rgba(18, 18, 18, 0.95) 100%);
}

.summaries-panel.collapsed::after {
    content: '📝';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.7;
    pointer-events: none;
    z-index: 1;
}

.summaries-panel:hover {
    border-right-color: rgba(0, 255, 149, 0.5);
    box-shadow: 2px 0 30px rgba(0, 255, 149, 0.2);
}

/* Enhanced Panel Header */
.panel-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, 
        rgba(0, 255, 149, 0.15) 0%, 
        rgba(0, 184, 255, 0.1) 50%,
        rgba(127, 0, 255, 0.15) 100%);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0;
}

.panel-title i {
    color: #ff6b9d;
    font-size: 1.2rem;
}

.panel-title h3 {
    color: white;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(45deg, #ff6b9d, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.toggle-panel-btn {
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: #ff6b9d;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-left: auto;
}

.toggle-panel-btn:hover {
    background: rgba(255, 107, 157, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 107, 157, 0.3);
}

/* Enhanced Panel Content */
.panel-content {
    padding: 1.5rem;
    transition: all 0.3s ease;
}

/* Summaries Stats */
.summaries-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 107, 157, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b9d;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 107, 157, 0.3);
}

/* Summaries Filter */
.summaries-filter {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    color: white;
}

.filter-btn.active {
    background: rgba(255, 107, 157, 0.2);
    border-color: #ff6b9d;
    color: #ff6b9d;
}

.filter-btn i {
    font-size: 0.9rem;
}

/* Enhanced Summary Items */
.summaries-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: calc(100vh - 400px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.summaries-list::-webkit-scrollbar {
    width: 4px;
}

.summaries-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.summaries-list::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.5);
    border-radius: 2px;
}

.summary-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-radius: 12px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.3);
}

.summary-item:hover::before {
    transform: scaleX(1);
}

.summary-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(128, 0, 32, 0.15) 100%);
    border-color: #ff6b9d;
    transform: translateY(-1px);
}

.summary-item.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, #ff6b9d, #ffffff);
}

.summary-item h4 {
    color: white;
    margin: 0 0 0.6rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 600;
}

.summary-item p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.8rem 0;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.summary-item small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item small i {
    color: #ff6b9d;
}

/* Enhanced Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* Enhanced Content Header */
.content-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.header-content h1 {
    font-size: 2.8rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    text-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

.header-icon {
    font-size: 3rem;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-text 3s ease-in-out infinite;
}

.subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 300;
    max-width: 600px;
    line-height: 1.5;
}

.header-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.4);
}

.stat-icon {
    font-size: 2rem;
    color: #ff6b9d;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.stat-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

/* Enhanced Input Section */
.input-section {
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out;
}

.input-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 107, 157, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.input-card:hover {
    border-color: rgba(255, 107, 157, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.15);
}

.input-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.input-header i {
    color: #ff6b9d;
    font-size: 1.3rem;
}

.url-input-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.url-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.url-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.url-input:focus {
    border-color: #ff6b9d;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

.analyze-button {
    padding: 1.2rem 2rem;
    background: linear-gradient(45deg, #800020, #ff6b9d);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.analyze-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
    background: linear-gradient(45deg, #a0002a, #ff8bbd);
}

.analyze-button:hover::before {
    left: 100%;
}

.analyze-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.analyze-button .btn-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.input-hint i {
    color: #ff6b9d;
}

/* Enhanced Controls Section */
.controls-section {
    margin-bottom: 2rem;
    animation: slideUp 0.9s ease-out;
}

.controls-header {
    text-align: center;
    margin-bottom: 2rem;
}

.controls-header h3 {
    color: white;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.controls-header i {
    color: #ff6b9d;
}

.controls-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 1rem;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Enhanced Control Cards */
.control-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.control-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff6b9d, transparent);
}

.control-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 107, 157, 0.08) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.3);
}

.control-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.control-header i {
    color: #ff6b9d;
    font-size: 1.3rem;
}

/* Enhanced Length Control */
.length-control .slider-container {
    position: relative;
}

.length-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 107, 157, 0.3) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 1rem;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(45deg, #800020, #ff6b9d);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.5);
    transition: all 0.3s ease;
}

.length-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.label-start, .label-end {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.slider-value-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.slider-value {
    background: linear-gradient(45deg, #800020, #ff6b9d);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    min-width: 30px;
    text-align: center;
}

.slider-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.slider-preview {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.preview-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.4;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.preview-item.active {
    opacity: 1;
    background: rgba(255, 107, 157, 0.1);
    border: 1px solid rgba(255, 107, 157, 0.3);
    color: white;
}

.preview-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b9d;
    flex-shrink: 0;
}

/* Enhanced Toggle Control */
.toggle-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toggle-option input[type="radio"] {
    display: none;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.toggle-label:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: rgba(255, 107, 157, 0.3);
    transform: translateY(-2px);
}

.toggle-option input[type="radio"]:checked + .toggle-label {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2) 0%, rgba(128, 0, 32, 0.15) 100%);
    border-color: #ff6b9d;
    color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.toggle-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 107, 157, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ff6b9d;
    transition: all 0.3s ease;
}

.toggle-option input[type="radio"]:checked + .toggle-label .toggle-icon {
    background: rgba(255, 107, 157, 0.3);
    color: white;
    transform: scale(1.1);
}

.toggle-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.toggle-title {
    font-weight: 600;
    font-size: 1rem;
}

.toggle-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Enhanced Cost Card */
.cost-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15) 0%, rgba(128, 0, 32, 0.1) 100%);
    border: 2px solid rgba(255, 107, 157, 0.3);
}

.cost-card:hover {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(128, 0, 32, 0.15) 100%);
}

.cost-info {
    text-align: center;
}

.cost-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.cost-amount {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b9d;
    line-height: 1;
}

.cost-currency {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
}

.cost-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cost-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cost-item i {
    color: #ff6b9d;
    width: 16px;
    text-align: center;
}

/* Enhanced Loading Section */
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease-out;
}

.loading-container {
    max-width: 600px;
    margin: 0 auto;
}

.loading-visual {
    margin-bottom: 2rem;
}

.spinner-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5));
}

.loading-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #800020, #ff6b9d);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.step.active {
    color: #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
}

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

.loading-content h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.loading-content p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
}

.loading-tips {
    padding: 1rem;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 157, 0.2);
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.tip-item i {
    color: #ff6b9d;
}

/* Enhanced Summary Container */
.summary-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: scaleUp 0.6s ease-out;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 107, 157, 0.2);
    margin-bottom: 2rem;
}

.summary-container.mindmap-mode {
    height: 75vh;
    padding: 2rem;
    overflow: hidden;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    gap: 2rem;
}

.summary-title-section {
    flex: 1;
}

.summary-title {
    color: #800020;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 107, 157, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #800020;
}

.meta-item i {
    color: #ff6b9d;
}

.summary-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 120px;
    justify-content: center;
}

.save-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.copy-btn {
    background: linear-gradient(45deg, #007bff, #6610f2);
    color: white;
}

.share-btn {
    background: linear-gradient(45deg, #fd7e14, #ffc107);
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced Summary Output */
.summary-output {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.summary-output.markdown-content h1,
.summary-output.markdown-content h2,
.summary-output.markdown-content h3 {
    color: #800020;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.summary-output.markdown-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.summary-output.markdown-content blockquote {
    border-left: 4px solid #ff6b9d;
    background: rgba(255, 107, 157, 0.1);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.summary-output.markdown-content ul,
.summary-output.markdown-content ol {
    padding-left: 2rem;
    margin-bottom: 1.2rem;
}

.summary-output.markdown-content li {
    margin-bottom: 0.5rem;
}

/* Enhanced Mindmap Styles */
.mindmap-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.node circle {
    fill: #fff;
    stroke-width: 3px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.node.central circle {
    fill: #800020;
    stroke: #800020;
}

.node.main circle {
    fill: #ff6b9d;
    stroke: #800020;
}

.node.sub circle {
    fill: #ffcccb;
    stroke: #800020;
}

.node text {
    font-size: 14px;
    fill: #333;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.node.central text,
.node.main text {
    fill: white;
    font-weight: 600;
}

.link {
    fill: none;
    stroke: #800020;
    stroke-width: 2px;
    stroke-opacity: 0.8;
}

.reset-mindmap-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, #800020, #ff6b9d);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.reset-mindmap-button:hover {
    background: linear-gradient(45deg, #a0002a, #ff8bbd);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradient-text {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .summaries-panel {
        width: 320px;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .yt-summary-layout {
        flex-direction: column;
    }
    
    .summaries-panel {
        width: 100%;
        height: 250px;
        border-right: none;
        border-bottom: 2px solid rgba(255, 107, 157, 0.2);
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .content-header h1 {
        font-size: 2.2rem;
    }
    
    .url-input-container {
        flex-direction: column;
    }
    
    .analyze-button {
        width: 100%;
    }
    
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .summary-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .control-card {
        padding: 1.5rem;
    }
    
    .content-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .summary-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* Hidden state */
.hidden {
    display: none !important;
}

/* Enhanced JWT Error Card */
.jwt-error-card {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.1) 0%, rgba(234, 67, 53, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(234, 67, 53, 0.2);
    margin: 2rem 0;
}

.jwt-error-card .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.jwt-error-card h3 {
    color: #ea4335;
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.jwt-error-card p {
    color: #5f6368;
    margin: 0 0 2rem;
    font-size: 1.1rem;
}

.reconnect-btn {
    background: #ea4335;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reconnect-btn:hover {
    background: #d73527;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

/* Enhanced Drawer System */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.summaries-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.summaries-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    padding: 2rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4285f4 0%, #1976d2 100%);
    color: white;
}

.drawer-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.drawer-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.drawer-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

/* Enhanced Summary Items for Drawer */
.summary-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: hidden;
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4285f4, #34a853);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    border-color: #4285f4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.summary-item:hover::before {
    transform: scaleX(1);
}

.summary-thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

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

.summary-item:hover .summary-thumbnail img {
    transform: scale(1.05);
}

.summary-details {
    flex: 1;
    min-width: 0;
}

.summary-details h4 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    color: #202124;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.summary-meta {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    color: #5f6368;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-date, .summary-length {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.summary-preview {
    margin: 0;
    font-size: 0.85rem;
    color: #5f6368;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.summary-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.summary-item:hover .summary-actions {
    opacity: 1;
}

.delete-btn, .share-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #5f6368;
    font-size: 1rem;
}

.delete-btn:hover {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
    transform: scale(1.1);
}

.share-btn:hover {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
    transform: scale(1.1);
}

/* No summaries state */
.no-summaries {
    text-align: center;
    padding: 3rem 2rem;
    color: #5f6368;
}

.no-summaries-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-summaries p {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.no-summaries small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Enhanced Filter Section */
.filter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.filter-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.filter-input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.filter-select {
    width: 100%;
    padding: 1rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

/* Loaded Summary Styles */
.loaded-summary {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.loaded-summary h3 {
    margin: 0 0 1.5rem;
    font-size: 1.8rem;
    color: #202124;
    font-weight: 700;
    line-height: 1.3;
}

.summary-meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #5f6368;
    font-weight: 500;
}

.summary-text {
    line-height: 1.8;
    color: #202124;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.mindmap-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.mindmap-section h4 {
    margin: 0 0 1.5rem;
    color: #4285f4;
    font-size: 1.3rem;
    font-weight: 600;
}

.mindmap-container {
    min-height: 500px;
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    overflow: hidden;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 5rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: linear-gradient(135deg, #34a853 0%, #2e7d35 100%);
}

.notification.error {
    background: linear-gradient(135deg, #ea4335 0%, #c62828 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #fbbc04 0%, #f57f17 100%);
    color: #202124;
}

/* Enhanced responsive design for drawer */
@media (max-width: 768px) {
    .summaries-drawer {
        width: 100%;
        max-width: 450px;
    }
    
    .drawer-header {
        padding: 1.5rem;
    }
    
    .drawer-content {
        padding: 1rem;
    }
    
    .summary-item {
        padding: 1rem;
    }
    
    .summary-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .summary-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Default Content Styles */
.default-content {
    padding: 3rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-message {
    margin-bottom: 3rem;
}

.welcome-message h3 {
    font-size: 2rem;
    margin: 0 0 1rem;
    color: #ff6b9d;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.welcome-message h3 i {
    font-size: 2.5rem;
    color: #ff4757;
}

.welcome-message p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 157, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.4);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h4 {
    color: #ff6b9d;
    font-size: 1.3rem;
    margin: 0 0 1rem;
    font-weight: 600;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.how-to-use {
    background: linear-gradient(135deg, rgba(0, 255, 149, 0.1) 0%, rgba(0, 184, 255, 0.1) 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 149, 0.2);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.how-to-use h4 {
    color: #00ff95;
    font-size: 1.3rem;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.how-to-use h4 i {
    color: #00b8ff;
}

.how-to-use ol {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.how-to-use li {
    counter-increment: step-counter;
    position: relative;
    padding: 1rem 0 1rem 3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.how-to-use li:last-child {
    border-bottom: none;
}

.how-to-use li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(45deg, #00ff95, #00b8ff);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .default-content {
        padding: 2rem 1rem;
    }
    
    .welcome-message h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .how-to-use {
        padding: 1.5rem;
        margin-top: 2rem;
    }
}
