 /* All CSS styles from the original code */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #382f05, #5f5f5e, #271c04);
            color: #fff;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            padding: 0;
        }
        
        .navbar {
            background: rgba(0, 0, 0, 0.8);
            padding: 15px 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .navbar-brand {
            display: flex;
            align-items: center;
        }
        
        .navbar-logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: #fdbb2d;
            margin-right: 10px;
        }
        
        .navbar-nav {
            display: flex;
            list-style: none;
        }
        
        .nav-item {
            margin-left: 20px;
        }
        
        .nav-link {
            color: #fff;
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .nav-link.active {
            background: rgba(253, 187, 45, 0.2);
            color: #fdbb2d;
        }
        
        .navbar-actions {
            display: flex;
            align-items: center;
        }
        
        .navbar-btn {
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            border: none;
            padding: 8px 15px;
            border-radius: 5px;
            margin-left: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .navbar-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .navbar-btn.primary {
            background: #fdbb2d;
            color: #000;
        }
        
        .navbar-btn.primary:hover {
            background: #e6a823;
        }
        
        .footer {
            background: rgba(0, 0, 0, 0.8);
            padding: 30px 0 20px;
            margin-top: auto;
        }
        
        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        
        .footer-section {
            flex: 1;
            min-width: 250px;
            margin-bottom: 20px;
        }
        
        .footer-section h3 {
            color: #fdbb2d;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 10px;
        }
        
        .footer-links a {
            color: #ddd;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer-links a:hover {
            color: #fdbb2d;
        }
        
        .footer-social {
            display: flex;
            gap: 15px;
            margin-top: 15px;
        }
        
        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-icon:hover {
            background: #fdbb2d;
            color: #000;
            transform: translateY(-3px);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            margin-top: 20px;
            color: #aaa;
            font-size: 0.9rem;
        }
        
        .main-content {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            flex: 1;
        }
        
        .container {
            width: 100%;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            margin-top: 20px;
        }
        
        h1 {
            text-align: center;
            margin-bottom: 10px;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .subtitle {
            text-align: center;
            margin-bottom: 30px;
            color: #ddd;
            font-size: 1.2rem;
        }
        
        .text-input {
            width: 100%;
            height: 200px;
            padding: 15px;
            border-radius: 10px;
            border: 2px solid #444;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 16px;
            resize: vertical;
            margin-bottom: 20px;
        }
        
        .text-input:focus {
            outline: none;
            border-color: #fdbb2d;
        }
        
        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .control-group {
            flex: 1;
            min-width: 150px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        select, input[type="range"] {
            width: 100%;
            padding: 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #555;
            color: #fff;
        }
        
        select option {
            background: #333;
            color: #fff;
        }
        
        .emotion-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 25px;
        }
        
        .emotion-btn {
            flex: 1;
            min-width: 120px;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background: #444;
            color: #fff;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .emotion-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .emotion-btn.active {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .neutral { background: #4a5568; }
        .happy { background: #2d7d46; }
        .sad { background: #2b6cb0; }
        .angry { background: #c53030; }
        .excited { background: #d69e2e; }
        .calm { background: #3182ce; }
        
        .action-buttons {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .action-btn {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .play-btn {
            background: #2d7d46;
            color: white;
        }
        
        .pause-btn {
            background: #d69e2e;
            color: white;
        }
        
        .stop-btn {
            background: #c53030;
            color: white;
        }
        
        .export-btn {
            background: #5a67d8;
            color: white;
        }
        
        .record-btn {
            background: #9c27b0;
            color: white;
        }
        
        .action-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }
        
        .action-btn:disabled {
            background: #555;
            color: #999;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .status {
            text-align: center;
            padding: 15px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
            min-height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .visualizer {
            height: 100px;
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            margin-bottom: 20px;
            overflow: hidden;
            position: relative;
        }
        
        .wave {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.7;
        }
        
        .preset-texts {
            margin-top: 20px;
        }
        
        .preset-btn {
            padding: 8px 15px;
            margin-right: 10px;
            margin-bottom: 10px;
            border: none;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .preset-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .voice-preview {
            margin-top: 10px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            text-align: center;
        }
        
        .preview-btn {
            padding: 8px 15px;
            margin: 5px;
            border: none;
            border-radius: 6px;
            background: #4a5568;
            color: #fff;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .preview-btn:hover {
            background: #5a6578;
        }
        
        .sidebar {
            width: 300px;
            background: rgba(0, 0, 0, 0.8);
            padding: 20px;
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
            overflow-y: auto;
            margin-left: 20px;
            border-radius: 15px;
        }
        
        .sidebar-section {
            margin-bottom: 25px;
        }
        
        .sidebar-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .voice-item {
            display: flex;
            align-items: center;
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .voice-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .voice-item.active {
            background: rgba(253, 187, 45, 0.2);
            border-left: 4px solid #fdbb2d;
        }
        
        .voice-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #4a5568;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-weight: bold;
        }
        
        .voice-info {
            flex: 1;
        }
        
        .voice-name {
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .voice-type {
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .voice-details {
            margin-top: 10px;
            font-size: 0.8rem;
            color: #ccc;
        }
        
        .history-item {
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .history-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .history-text {
            font-size: 0.9rem;
            margin-bottom: 5px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .history-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .export-options {
            display: none;
            margin-top: 15px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }
        
        .export-options.active {
            display: block;
        }
        
        .format-options {
            display: flex;
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .format-option {
            flex: 1;
            text-align: center;
            padding: 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .format-option.active {
            background: rgba(253, 187, 45, 0.3);
            border: 2px solid #fdbb2d;
        }
        
        .export-action-buttons {
            display: flex;
            gap: 10px;
        }
        
        .export-action-btn {
            flex: 1;
            padding: 10px;
            border: none;
            border-radius: 8px;
            background: #5a67d8;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .export-action-btn:hover {
            background: #4c51bf;
        }
        
        .export-action-btn:disabled {
            background: #555;
            color: #999;
            cursor: not-allowed;
        }
        
        .export-progress {
            margin-top: 10px;
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            overflow: hidden;
            display: none;
        }
        
        .export-progress-bar {
            height: 100%;
            background: #fdbb2d;
            width: 0%;
            transition: width 0.3s ease;
        }
        
        .content-wrapper {
            display: flex;
            width: 100%;
        }
        
        .mobile-menu-toggle {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            border: none;
            border-radius: 5px;
            padding: 10px;
            cursor: pointer;
            font-size: 1.5rem;
        }
        
        @media (max-width: 1024px) {
            .sidebar {
                width: 250px;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding: 0;
            }
            
            .navbar {
                padding: 15px;
                flex-wrap: wrap;
            }
            
            .navbar-nav {
                order: 3;
                width: 100%;
                margin-top: 15px;
                display: none;
            }
            
            .navbar-nav.active {
                display: flex;
                flex-direction: column;
            }
            
            .nav-item {
                margin: 5px 0;
            }
            
            .mobile-menu-toggle {
                display: block;
            }
            
            .content-wrapper {
                flex-direction: column;
            }
            
            .sidebar {
                width: 100%;
                margin-left: 0;
                margin-top: 20px;
            }
            
            .container {
                padding: 20px;
            }
            
            h1 {
                font-size: 2rem;
            }
            
            .controls {
                flex-direction: column;
            }
            
            .emotion-buttons {
                flex-direction: column;
            }
            
            .action-buttons {
                flex-direction: column;
            }
        }
        
        .audio-preview {
            margin-top: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }
        
        .audio-preview audio {
            width: 100%;
            margin-top: 10px;
        }
        
        @keyframes wave-animation {
            0% { transform: scaleY(0.3); }
            50% { transform: scaleY(1); }
            100% { transform: scaleY(0.3); }
        }
        
        .wave-bar {
            display: inline-block;
            width: 4px;
            height: 20px;
            background: #fdbb2d;
            margin: 0 2px;
            animation: wave-animation 1.2s infinite ease-in-out;
        }
        
        .wave-bar:nth-child(2) { animation-delay: 0.1s; }
        .wave-bar:nth-child(3) { animation-delay: 0.2s; }
        .wave-bar:nth-child(4) { animation-delay: 0.3s; }
        .wave-bar:nth-child(5) { animation-delay: 0.4s; }
        .wave-bar:nth-child(6) { animation-delay: 0.5s; }
        .wave-bar:nth-child(7) { animation-delay: 0.6s; }
        .wave-bar:nth-child(8) { animation-delay: 0.7s; }
        .wave-bar:nth-child(9) { animation-delay: 0.8s; }
        .wave-bar:nth-child(10) { animation-delay: 0.9s; }
        
        /* Recording styles */
        .recording-indicator {
            display: none;
            align-items: center;
            justify-content: center;
            margin-top: 10px;
            padding: 10px;
            background: rgba(220, 53, 69, 0.2);
            border-radius: 8px;
            border: 1px solid rgba(220, 53, 69, 0.5);
        }
        
        .recording-indicator.active {
            display: flex;
        }
        
        .recording-dot {
            width: 12px;
            height: 12px;
            background-color: #dc3545;
            border-radius: 50%;
            margin-right: 10px;
            animation: pulse 1.5s infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        .recorded-audio {
            margin-top: 15px;
            padding: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }
        
        .recorded-audio audio {
            width: 100%;
            margin-top: 10px;
        }
        
        .product-item {
            display: flex;
            align-items: center;
            padding: 15px;
            margin-bottom: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .product-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }
        
        .product-icon {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            background: linear-gradient(135deg, #fdbb2d, #b21f1f);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-size: 1.5rem;
        }
        
        .product-info {
            flex: 1;
        }
        
        .product-name {
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .product-description {
            font-size: 0.8rem;
            color: #aaa;
            margin-bottom: 8px;
        }
        
        .product-link {
            display: inline-block;
            padding: 5px 10px;
            background: rgba(253, 187, 45, 0.2);
            color: #fdbb2d;
            border-radius: 4px;
            text-decoration: none;
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }
        
        .product-link:hover {
            background: rgba(253, 187, 45, 0.4);
        }
        
        /* Voice Cloning Styles */
        .voice-cloning-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 8px;
        }
        
        .voice-cloning-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .clone-voice-btn {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: none;
            border-radius: 8px;
            background: #9c27b0;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .clone-voice-btn:hover {
            background: #8e24aa;
            transform: translateY(-2px);
        }
        
        .cloned-voices-list {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 15px;
        }
        
        .cloned-voice-item {
            display: flex;
            align-items: center;
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .cloned-voice-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .cloned-voice-item.active {
            background: rgba(156, 39, 176, 0.3);
            border-left: 4px solid #9c27b0;
        }
        
        .cloned-voice-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #9c27b0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            font-weight: bold;
        }
        
        .cloned-voice-info {
            flex: 1;
        }
        
        .cloned-voice-name {
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .cloned-voice-details {
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .cloned-voice-actions {
            display: flex;
            gap: 5px;
        }
        
        .cloned-voice-action-btn {
            padding: 5px 10px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            cursor: pointer;
            font-size: 0.8rem;
            transition: all 0.3s ease;
        }
        
        .cloned-voice-action-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .delete-cloned-voice {
            background: rgba(220, 53, 69, 0.3);
        }
        
        .delete-cloned-voice:hover {
            background: rgba(220, 53, 69, 0.5);
        }
        
        .voice-cloning-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .voice-cloning-modal.active {
            display: flex;
        }
        
        .modal-content {
            width: 90%;
            max-width: 500px;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .modal-title {
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .modal-close {
            background: none;
            border: none;
            color: #fff;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .modal-body {
            margin-bottom: 20px;
        }
        
        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        
        .modal-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .modal-btn-primary {
            background: #9c27b0;
            color: white;
        }
        
        .modal-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        
        .modal-btn:hover {
            transform: translateY(-2px);
        }
        
        .training-progress {
            margin-top: 15px;
        }
        
        .training-progress-bar {
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 10px;
        }
        
        .training-progress-fill {
            height: 100%;
            background: #9c27b0;
            width: 0%;
            transition: width 0.3s ease;
        }
        
        .training-status {
            text-align: center;
            font-size: 0.9rem;
            color: #aaa;
        }
        
        .voice-sample-upload {
            margin-bottom: 15px;
        }
        
        .upload-area {
            border: 2px dashed rgba(255, 255, 255, 0.3);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .upload-area:hover {
            border-color: #9c27b0;
            background: rgba(156, 39, 176, 0.1);
        }
        
        .upload-area.active {
            border-color: #9c27b0;
            background: rgba(156, 39, 176, 0.1);
        }
        
        .upload-icon {
            font-size: 2rem;
            margin-bottom: 10px;
            color: #9c27b0;
        }
        
        .upload-text {
            margin-bottom: 10px;
        }
        
        .upload-btn {
            padding: 8px 15px;
            background: #9c27b0;
            color: white;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .upload-btn:hover {
            background: #8e24aa;
        }
        
        .uploaded-files {
            margin-top: 15px;
        }
        
        .uploaded-file {
            display: flex;
            align-items: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-bottom: 10px;
        }
        
        .uploaded-file-icon {
            margin-right: 10px;
            color: #9c27b0;
        }
        
        .uploaded-file-info {
            flex: 1;
        }
        
        .uploaded-file-name {
            font-weight: 500;
            margin-bottom: 5px;
        }
        
        .uploaded-file-size {
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .uploaded-file-remove {
            background: none;
            border: none;
            color: #dc3545;
            cursor: pointer;
        }
        
        /* Voice cloning status indicators */
        .voice-cloning-status {
            display: flex;
            align-items: center;
            padding: 10px;
            margin-top: 10px;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .voice-cloning-status.success {
            background: rgba(40, 167, 69, 0.2);
            border-left: 4px solid #28a745;
        }
        
        .voice-cloning-status.error {
            background: rgba(220, 53, 69, 0.2);
            border-left: 4px solid #dc3545;
        }
        
        .voice-cloning-status.warning {
            background: rgba(255, 193, 7, 0.2);
            border-left: 4px solid #ffc107;
        }
        
        .voice-cloning-status-icon {
            margin-right: 10px;
            font-size: 1.2rem;
        }
        
        .voice-cloning-status.success .voice-cloning-status-icon {
            color: #28a745;
        }
        
        .voice-cloning-status.error .voice-cloning-status-icon {
            color: #dc3545;
        }
        
        .voice-cloning-status.warning .voice-cloning-status-icon {
            color: #ffc107;
        }
        
        .voice-cloning-status-text {
            flex: 1;
        }
        
        /* Advanced Controls */
        .advanced-controls {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .advanced-controls h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .advanced-controls-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .advanced-control-group {
            margin-bottom: 15px;
        }
        
        .advanced-control-group label {
            display: block;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }
        
        .advanced-control-group input[type="range"] {
            width: 100%;
        }
        
        /* Speech History */
        .speech-history-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .speech-history-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .history-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .history-search {
            flex: 1;
            padding: 8px 12px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #555;
            color: #fff;
        }
        
        .history-filter {
            padding: 8px 12px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #555;
            color: #fff;
        }
        
        .history-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .history-item {
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .history-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .history-item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .history-item-emotion {
            font-size: 0.8rem;
            padding: 2px 8px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
        }
        
        .history-item-text {
            font-size: 0.9rem;
            margin-bottom: 5px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        
        .history-item-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .history-item-actions {
            display: flex;
            gap: 5px;
            margin-top: 8px;
        }
        
        .history-action-btn {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            cursor: pointer;
            font-size: 0.7rem;
            transition: all 0.3s ease;
        }
        
        .history-action-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* Text Analysis */
        .text-analysis-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .text-analysis-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .analysis-stats {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .stat-item {
            text-align: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: #fdbb2d;
        }
        
        .stat-label {
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .pronunciation-editor {
            margin-top: 15px;
        }
        
        .pronunciation-item {
            display: flex;
            align-items: center;
            padding: 8px;
            margin-bottom: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 6px;
        }
        
        .pronunciation-word {
            flex: 1;
            font-weight: 500;
        }
        
        .pronunciation-input {
            flex: 2;
            padding: 5px 8px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid #555;
            color: #fff;
        }
        
        .pronunciation-actions {
            display: flex;
            gap: 5px;
            margin-left: 10px;
        }
        
        .pronunciation-btn {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            cursor: pointer;
            font-size: 0.7rem;
            transition: all 0.3s ease;
        }
        
        .pronunciation-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* Projects & Templates */
        .projects-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .projects-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .project-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .project-list {
            max-height: 300px;
            overflow-y: auto;
        }
        
        .project-item {
            padding: 10px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .project-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .project-item-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
        }
        
        .project-item-name {
            font-weight: 500;
        }
        
        .project-item-date {
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .project-item-description {
            font-size: 0.9rem;
            margin-bottom: 5px;
            color: #ccc;
        }
        
        .project-item-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: #aaa;
        }
        
        .project-item-actions {
            display: flex;
            gap: 5px;
            margin-top: 8px;
        }
        
        .project-action-btn {
            padding: 4px 8px;
            border: none;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            cursor: pointer;
            font-size: 0.7rem;
            transition: all 0.3s ease;
        }
        
        .project-action-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        /* Settings Panel */
        .settings-panel {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .settings-panel h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .settings-group {
            margin-bottom: 20px;
        }
        
        .settings-group h4 {
            margin-bottom: 10px;
            font-size: 1rem;
            color: #fdbb2d;
        }
        
        .setting-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .setting-label {
            flex: 1;
        }
        
        .setting-control {
            flex: 1;
            text-align: right;
        }
        
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #555;
            transition: .4s;
            border-radius: 24px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: #9c27b0;
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }
        
        /* Analytics Dashboard */
        .analytics-section {
            margin-top: 20px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .analytics-section h3 {
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            font-size: 1.2rem;
        }
        
        .analytics-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
            margin-bottom: 15px;
        }
        
        .analytics-card {
            text-align: center;
            padding: 15px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
        }
        
        .analytics-value {
            font-size: 2rem;
            font-weight: bold;
            color: #fdbb2d;
            margin-bottom: 5px;
        }
        
        .analytics-label {
            font-size: 0.9rem;
            color: #aaa;
        }
        
        .analytics-chart {
            height: 200px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 8px;
            margin-top: 15px;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            padding: 10px;
        }
        
        .chart-bar {
            width: 30px;
            background: #fdbb2d;
            border-radius: 4px 4px 0 0;
            transition: height 0.5s ease;
        }
        
        .chart-label {
            position: absolute;
            bottom: -20px;
            font-size: 0.7rem;
            color: #aaa;
        }
        
        /* Tabs Navigation */
        .tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .tab {
            padding: 10px 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom: 2px solid transparent;
        }
        
        .tab.active {
            border-bottom: 2px solid #fdbb2d;
            color: #fdbb2d;
        }
        
        .tab:hover {
            background: rgba(255, 255, 255, 0.05);
        }
        
        .tab-content {
            display: none;
        }
        
        .tab-content.active {
            display: block;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .advanced-controls-grid {
                grid-template-columns: 1fr;
            }
            
            .analysis-stats {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .analytics-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .tabs {
                flex-wrap: wrap;
            }
            
            .tab {
                flex: 1;
                min-width: 120px;
                text-align: center;
            }
        }