/* Notes Editor Specific Styles */
.notes-hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(156, 39, 176, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Editor Container */
.editor-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    background: #F7F7F7;
    min-height: 80vh;
    color: #333333;
}

/* Top Header Bar */
.editor-header {
    background: white;
    border-bottom: 1px solid #E0E0E0;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: #333333;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

.editor-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333333;
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #FF5722;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: none;
    border: none;
    color: #666666;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.action-btn:hover {
    background: #F0F0F0;
    color: #333333;
}

.share-btn {
    background: #FF5722;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: #E64A19;
    transform: translateY(-1px);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4FC3F7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
}

.notification-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #FF5722;
    border-radius: 50%;
    border: 2px solid white;
}

/* Main Toolbar */
.main-toolbar {
    background: white;
    border-bottom: 1px solid #E0E0E0;
    padding: 1rem;
}

.palettes-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.palettes-toggle {
    color: #666666;
    font-size: 0.9rem;
}

.palettes-title {
    font-weight: 600;
    color: #333333;
    font-size: 1rem;
}

.toolbar-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.toolbar-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 2rem;
    border-right: 1px solid #E0E0E0;
}

.toolbar-section:last-child {
    border-right: none;
}

.section-label {
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
    margin-right: 0.5rem;
    min-width: 60px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    font-size: 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.tool-btn:hover {
    background: #E0E0E0;
    color: #333333;
}

.tool-btn.active {
    background: #4FC3F7;
    color: white;
}

.tool-btn.draggable {
    cursor: grab;
}

.tool-btn.draggable:active {
    cursor: grabbing;
}

.more-btn {
    color: #666666;
    margin-left: 0.5rem;
}

/* Tempo Control */
.tempo-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tempo-input {
    width: 60px;
    padding: 0.4rem 0.6rem;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: white;
    color: #333333;
    text-align: center;
    font-size: 0.9rem;
}

/* Music Canvas */
.music-canvas {
    background: white;
    margin: 2rem auto;
    max-width: 1000px;
    min-height: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
}

/* Score Headers */
.score-headers {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Times New Roman', serif;
}

.score-placeholder {
    color: #AAAAAA;
    font-style: italic;
    margin: 0.5rem 0;
    cursor: text;
}

.score-placeholder:focus {
    color: #333333 !important;
    font-style: normal !important;
    outline: 2px solid #4FC3F7;
    background: rgba(79, 195, 247, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.score-placeholder.title {
    font-size: 1.8rem;
    font-weight: bold;
}

.score-placeholder.subtitle {
    font-size: 1.2rem;
}

.score-placeholder.composer,
.score-placeholder.lyricist {
    font-size: 1rem;
}

/* Staff Container */
.staff-container {
    margin-top: 2rem;
    position: relative;
}

.tempo-marking {
    position: absolute;
    top: -30px;
    left: 50px;
    font-size: 0.9rem;
    color: #333333;
}

/* Drag and Drop */
.drop-zone {
    min-height: 40px;
    position: relative;
}

.drop-zone.dragover {
    background: rgba(79, 195, 247, 0.1);
    border: 2px dashed #4FC3F7;
    border-radius: 4px;
}

/* Tooltip */
.tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #DDDDDD;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 300px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
}

.tooltip-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #666666;
}

/* Responsive */
@media (max-width: 768px) {
    .editor-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    }
    
    .toolbar-sections {
    justify-content: center;
    gap: 1rem;
    }
    
    .toolbar-section {
    padding-right: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    }
    
    .music-canvas {
    margin: 1rem;
    padding: 2rem 1rem;
    }
    
    .hero-title {
    font-size: 2rem;
    }
}