* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #475569;
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

/* Menu de Navegação */
.main-nav {
    background: #1e293b;
    border-bottom: 3px solid #16a34a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 15px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-menu li a {
    color: #e2e8f0;
    text-decoration: none;
    padding: 20px 20px;
    display: block;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover {
    background: #334155;
    color: #fff;
}

.nav-menu li a.active {
    border-bottom-color: #16a34a;
    color: #fff;
    background: #334155;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

/* Banner Introdutório */
.intro-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 30px 20px;
    border-bottom: 2px solid #16a34a;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.intro-content p {
    font-size: 1.1rem;
    color: #e2e8f0;
}

.learn-more {
    color: #fbbf24;
    text-decoration: none;
    font-weight: 600;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Container Principal */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1, .header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 15px;
}

.header .subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

/* Controles Globais */
.global-controls {
    background: #64748b;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.channel-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.channel-label {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 1rem;
}

.channel-buttons {
    display: flex;
    gap: 8px;
}

.channel-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.channel-btn.inactive {
    background: #6b7280;
}

.channel-btn.inactive:hover {
    background: #9ca3af;
}

.channel-btn.active {
    background: #dc2626;
}

.audio-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: center;
}

.timbre-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timbre-select {
    background: #374151;
    color: white;
    border: 1px solid #6b7280;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.9rem;
    cursor: pointer;
}

.timbre-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    border-radius: 3px;
    background: #374151;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #16a34a;
    cursor: pointer;
    border: none;
}

.add-btn {
    background: #16a34a;
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: #15803d;
    transform: scale(1.05);
}

/* Metrônomos */
.metronome-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px 120px 80px 60px;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #d1d5db;
    font-size: 0.9rem;
}

.metronome-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px 100px 120px 80px 60px;
    gap: 15px;
    padding: 15px 20px;
    background: #64748b;
    border-radius: 12px;
    margin-bottom: 12px;
    align-items: center;
    transition: all 0.2s;
}

.metronome-item.playing {
    background: #1e3a2e;
    border-left: 4px solid #16a34a;
}

.item-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.music-input {
    background: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 1rem;
    width: 100%;
}

.music-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #374151;
}

.music-input::placeholder {
    color: #9ca3af;
}

.bmp-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bpm-input {
    background: #16a34a;
    border: none;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 70px;
}

.bpm-input:focus {
    outline: none;
    background: #15803d;
}

.bpm-label {
    color: #d1d5db;
    font-size: 0.9rem;
}

.play-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.play-btn.play {
    background: #16a34a;
    color: white;
}

.play-btn.pause {
    background: #dc2626;
    color: white;
}

.play-btn:hover {
    transform: scale(1.05);
}

.time-select {
    background: #4b5563;
    border: 1px solid #6b7280;
    border-radius: 6px;
    color: white;
    padding: 6px 10px;
    font-size: 0.9rem;
    width: 100%;
}

.time-select:focus {
    outline: none;
    border-color: #3b82f6;
}

.beat-indicators {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.beat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6b7280;
    transition: all 0.2s;
}

.beat-dot.active {
    background: #16a34a;
    box-shadow: 0 0 8px #16a34a;
}

.beat-dot.accent {
    background: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
}

.remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #dc2626;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.remove-btn:hover {
    background: #b91c1c;
    transform: scale(1.1);
}

/* Links Rápidos */
.quick-links {
    background: #334155;
    padding: 40px 20px;
    margin-top: 40px;
}

.quick-links-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.quick-link-card {
    background: #475569;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #16a34a;
    transition: transform 0.3s;
}

.quick-link-card:hover {
    transform: translateY(-5px);
}

.quick-link-card h3 {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.quick-link-card p {
    color: #e2e8f0;
    margin-bottom: 15px;
}

.btn-link {
    display: inline-block;
    color: #16a34a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #22c55e;
}

/* Páginas de Conteúdo */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.content-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #16a34a;
}

.content-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.content-header .subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
}

.content-section {
    background: #334155;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.content-section h2 {
    color: #fbbf24;
    font-size: 2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #16a34a;
}

.content-section h3 {
    color: #94a3b8;
    font-size: 1.5rem;
    margin: 25px 0 15px 0;
}

.content-section h4 {
    color: #fbbf24;
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
}

.content-section p {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.content-section ul,
.content-section ol {
    color: #e2e8f0;
    margin: 15px 0 15px 30px;
}

.content-section li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.content-section strong {
    color: #fbbf24;
}

.content-section a {
    color: #16a34a;
    text-decoration: none;
}

.content-section a:hover {
    text-decoration: underline;
}

/* Boxes de Passos */
.step-box {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #16a34a;
}

.step-box h3 {
    color: #fbbf24;
    margin-bottom: 10px;
}

/* Detalhes de Recursos */
.feature-detail {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.feature-detail h3 {
    color: #fbbf24;
    margin-bottom: 15px;
}

/* Atalhos de Teclado */
.keyboard-shortcuts {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #64748b;
}

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

.key {
    background: #1e293b;
    color: #fbbf24;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    border: 2px solid #64748b;
}

.description {
    color: #e2e8f0;
    flex: 1;
}

/* Grid de Dicas */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tip-card {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #16a34a;
}

.tip-card h4 {
    color: #fbbf24;
    margin-bottom: 10px;
}

.tip-card p {
    color: #e2e8f0;
    font-size: 0.95rem;
}

/* Tabela de Tempos */
.tempo-table {
    background: #475569;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.tempo-row {
    display: grid;
    grid-template-columns: 150px 120px 1fr;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid #64748b;
    align-items: center;
}

.tempo-row:last-child {
    border-bottom: none;
}

.tempo-name {
    color: #fbbf24;
    font-weight: bold;
}

.tempo-range {
    color: #16a34a;
    font-weight: 600;
}

.tempo-desc {
    color: #e2e8f0;
}

/* Guias de Instrumento */
.instrument-guide {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #16a34a;
}

.instrument-guide h3 {
    color: #fbbf24;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Seção de Público */
.audience-section {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.audience-section h3 {
    color: #fbbf24;
    margin-bottom: 10px;
}

/* Grid de Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: #475569;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #16a34a;
}

.feature-card h3 {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: #e2e8f0;
}

/* FAQ Items */
.faq-item {
    background: #475569;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #16a34a;
}

.faq-item h3, .faq-item h4 {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Link do GitHub */
.github-link {
    display: inline-block;
    background: #1e293b;
    color: #16a34a;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s;
}

.github-link:hover {
    background: #334155;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1e3a2e 0%, #15803d 100%);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: #e2e8f0;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #16a34a;
    color: white;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    background: #22c55e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
}

/* Footer */
footer {
    text-align: center;
    margin: 40px 0;
    padding: 30px 20px;
    color: #9ca3af;
    font-size: 14px;
    background: #1e293b;
    border-top: 2px solid #16a34a;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #16a34a;
}

/* Responsivo */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #1e293b;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 20px;
        border-bottom: 1px solid #334155;
    }

    .nav-toggle {
        display: block;
    }

    .intro-content h2 {
        font-size: 1.4rem;
    }

    .intro-content p {
        font-size: 1rem;
    }

    .global-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .audio-section {
        justify-content: center;
        flex-wrap: wrap;
    }

    .metronome-header {
        display: none;
    }

    .metronome-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .beat-indicators {
        justify-content: center;
    }

    .content-header h1 {
        font-size: 2rem;
    }

    .content-header .subtitle {
        font-size: 1rem;
    }

    .content-section {
        padding: 20px;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .tempo-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .keyboard-shortcuts {
        padding: 15px;
    }

    .shortcut-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .quick-links-container {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-logo h1 {
        font-size: 1.2rem;
    }

    .intro-content h2 {
        font-size: 1.2rem;
    }

    .content-header h1 {
        font-size: 1.6rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

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

.content-section {
    animation: fadeIn 0.5s ease-out;
}

/* Print Styles */
@media print {
    .main-nav,
    .nav-toggle,
    .quick-links,
    .cta-section,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .content-section {
        background: white;
        color: black;
        page-break-inside: avoid;
    }
}