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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0e0d0d;
    min-height: 100vh;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.01"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.01"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.005"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.005"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.005"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

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

.nav-brand a {
    color: #00ff88;
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.nav-logo {
    height: 40px;
    border-radius: 8px;
}

.nav-title {
    color: #00d4ff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-top: 1px solid rgba(0,212,255,0.3);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00d4ff;
    color: #000;
    transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.container {
    max-width: 650px;
    margin: 20px auto;
    background: #f5f5f5;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

header {
    background: #2a2a2a;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 50px 20px;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 300;
}

header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

main {
    padding: 40px;
    background: #2f2f2f;
}

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

.record-btn, .stop-btn {
    font-size: 1.1rem;
    padding: 18px 36px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.record-btn {
    background: linear-gradient(135deg, #00d4ff, #00b8e6);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0,212,255,0.25);
}

.record-btn::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;
}

.record-btn:hover:not(:disabled)::before {
    left: 100%;
}

.record-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,212,255,0.4);
}

.record-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.record-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.record-btn.recording {
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 0 0 rgba(0,212,255,0.7);
}

@keyframes pulse {
    0% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,212,255,0.7);
    }
    70% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0,212,255,0);
    }
    100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0,212,255,0);
    }
}

.stop-btn {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0,255,136,0.25);
}

.stop-btn::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;
}

.stop-btn:hover:not(:disabled)::before {
    left: 100%;
}

.stop-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,255,136,0.4);
}

.stop-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.stop-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.copy-btn:hover {
    background: #f8f9fa;
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.copy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.copy-btn.copied {
    background: #d4edda;
    border-color: #28a745;
    color: #28a745;
}

.copy-btn svg {
    transition: transform 0.2s ease;
}

.copy-btn:hover svg {
    transform: scale(1.1);
}

.export-btn {
    margin-top: 20px;
    padding: 15px 30px;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.export-btn::before {
    content: "📄";
    font-size: 1.2em;
}

.export-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.export-btn:hover:not(:disabled)::after {
    left: 100%;
}

.export-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #333333;
    border-color: #ffffff;
}

.export-btn:active:not(:disabled) {
    transform: translateY(-1px);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #1a1a1a;
    border-color: #666666;
    box-shadow: none;
}

.export-section {
    text-align: center;
    margin-top: 20px;
}


.status {
    margin-top: 25px;
    padding: 18px 24px;
    background: #2a2a2a;
    border-radius: 15px;
    text-align: center;
    font-style: italic;
    color: rgb(255, 255, 255);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.summary-section {
    margin-top: 35px;
    padding: 0;
    background: transparent;
    border-radius: 20px;
    animation: slideInUp 0.5s ease-out;
}

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

.summary-section h3 {
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-section h3::before {
    content: "";
    font-size: 1.2em;
}

.summary-container {
    position: relative;
}

.summary-output {
    background: #f5f5f5;
    padding: 50px 30px 30px 30px;
    border-radius: 16px;
    border-left: 5px solid #00d4ff;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.summary-output::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00ff88, #00d4ff);
    background-size: 200% 100%;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.summary-output h1, .summary-output h2, .summary-output h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 12px;
}

.summary-output h1:first-child,
.summary-output h2:first-child,
.summary-output h3:first-child {
    margin-top: 0;
}

.summary-output ul, .summary-output ol {
    margin: 15px 0;
    padding-left: 25px;
}

.summary-output li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.summary-output p {
    margin-bottom: 15px;
}

.summary-output strong {
    color: #333;
    font-weight: 600;
}

.summary-output em {
    color: #666;
    font-style: italic;
}

.summary-output code {
    background: #ddd;
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.summary-output blockquote {
    border-left: 3px solid #666;
    margin: 20px 0;
    padding: 10px 20px;
    background: #ddd;
    color: #555;
    font-style: italic;
}

@media (max-width: 480px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 30px 20px;
    }
    
    .record-btn, .stop-btn {
        width: 100%;
        margin: 5px 0;
    }
}