:root {
            --primary: #4361ee;
            --primary-dark: #3a56d4;
            --secondary: #4cc9f0;
            --accent: #f72585;
            --light: #f8f9fa;
            --dark: #212529;
            --dark-800: #2d3748;
            --gray: #6c757d;
            --success: #4CAF50;
            --error: #f44336;
            --warning: #ff9800;
            --dna-A: #3b82f6;
            --dna-T: #ef4444;
            --dna-G: #10b981;
            --dna-C: #8b5cf6;
            --dna-N: #94a3b8;
            --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            --border-radius: 14px;
        }

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

        .pal-container {
            max-width: 800px;
            margin: 30px auto;
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--card-shadow);
        }

        .app-header {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white;
            padding: 25px 30px;
            position: relative;
            overflow: hidden;
        }
        
        .app-header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
            animation: rotate-glow 20s linear infinite;
        }

        @keyframes rotate-glow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .header-content {
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .app-header h2 {
            font-size: 2rem;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
            text-align: center;
        }

        .app-header h2 i {
            font-size: 1.8rem;
            background: rgba(255, 255, 255, 0.2);
            padding: 10px;
            border-radius: 12px;
            
        }

        .app-description {
            font-size: 1rem;
            font-weight: 300;
            opacity: 0.9;
            margin-top: 8px;
            max-width: 600px;
            text-align: center;
        }

        .app-body {
            padding: 30px;
        }

        .input-section {
            margin-bottom: 25px;
        }

        .section-title {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 15px;
        }

        .section-title i {
            color: var(--primary);
            font-size: 1.2rem;
        }

        textarea#sequence {
            width: 100%;
            min-height: 200px;
            padding: 20px;
            border: 2px dashed #d1d9e6;
            border-radius: var(--border-radius);
            font-family: 'Roboto Mono', monospace;
            font-size: 0.95rem;
            transition: var(--transition);
            background: #fafcff;
            resize: vertical;
        }
        
        textarea#sequence.drag-over {
            border-color: var(--primary);
            background: rgba(67, 97, 238, 0.05);
        }

        textarea#sequence:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
        }
        
        .input-hint {
            font-size: 0.9rem;
            color: var(--gray);
            margin-top: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .params-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin: 25px 0;
            padding: 20px;
            background: #f8faff;
            border-radius: var(--border-radius);
            border: 1px solid #e6eeff;
        }

        .param-group {
            display: flex;
            flex-direction: column;
        }

        .param-group label {
            font-weight: 500;
            margin-bottom: 8px;
            color: var(--dark-800);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .param-group select {
            padding: 14px;
            border: 2px solid #d1d9e6;
            border-radius: 10px;
            font-size: 1rem;
            transition: var(--transition);
            background: white;
            appearance: none;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 1rem center;
            background-size: 1em;
			height:auto;
        }

        .param-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.15);
        }

        .action-buttons {
            margin-top: 30px;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn {
            padding: 14px 28px;
            border: none;
            border-radius: var(--border-radius);
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
            box-shadow: 0 4px 14px rgba(67, 97, 238, 0.35);
        }

        .btn-primary:hover:not(:disabled) {
            background: var(--primary-dark);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px rgba(67, 97, 238, 0.45);
        }

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

        .btn-secondary {
            background: white;
            color: var(--primary);
            border: 2px solid #d1d9e6;
        }

        .btn-secondary:hover {
            background: #f8faff;
            border-color: var(--primary);
        }

        .btn-icon {
            font-size: 1.1rem;
        }

        .results-container {
            margin-top: 40px;
            animation: fadeIn 0.5s ease;
            display: none;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .results-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--dark);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .results-actions {
            display: flex;
            gap: 12px;
        }

        .btn-sm {
            padding: 10px 20px;
            font-size: 0.95rem;
        }

        .results-content {
            background: white;
            border-radius: var(--border-radius);
            border: 1px solid #e6eeff;
            overflow: hidden;
        }

        .results-table-wrapper {
            overflow-x: auto;
        }

        .dna-base-sm {
            display: inline-block;
            width: 18px;
            height: 18px;
            border-radius: 4px;
            text-align: center;
            line-height: 18px;
            font-weight: 600;
            font-size: 0.8rem;
            font-family: 'Roboto Mono', monospace;
            color: white;
            margin: 0 1px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
        }

        .dna-base-sm.A { background-color: var(--dna-A); }
        .dna-base-sm.T { background-color: var(--dna-T); }
        .dna-base-sm.G { background-color: var(--dna-G); }
        .dna-base-sm.C { background-color: var(--dna-C); }
        .dna-base-sm.N { background-color: var(--dna-N); }
        .dna-base-sm.Y, .dna-base-sm.R, .dna-base-sm.W, 
        .dna-base-sm.S, .dna-base-sm.K, .dna-base-sm.M, 
        .dna-base-sm.D, .dna-base-sm.V, .dna-base-sm.H, 
        .dna-base-sm.B {
            background: linear-gradient(135deg, var(--dna-C), var(--dna-A));
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;
            font-family: 'Poppins', sans-serif;
        }

        .results-table th, .results-table td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #e6eeff;
            white-space: nowrap;
        }

        .results-table th {
            background-color: #f8faff;
            font-weight: 600;
            color: var(--dark-800);
        }
        
        .results-table tr:last-child td {
            border-bottom: none;
        }

        .results-table tr:hover {
            background-color: rgba(67, 97, 238, 0.05);
        }

        .position-cell {
            font-weight: 500;
            color: var(--primary-dark);
        }

        .sequence-cell, .visualization-cell {
            font-family: 'Roboto Mono', monospace;
            white-space: normal;
            word-break: break-all;
        }
        
        .visualization-cell {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
        }

        .spinner-container {
            display: flex;
            justify-content: center;
            padding: 40px;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(67, 97, 238, 0.1);
            border-top: 4px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .notification {
            position: fixed;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--dark);
            color: white;
            padding: 15px 30px;
            border-radius: var(--border-radius);
            z-index: 1000;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        }

        .notification.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

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

        .notification.success { background: var(--success); }
        .notification.error { background: var(--error); }
        .notification.info { background: var(--primary); }

        .app-footer {
            text-align: center;
            padding: 25px;
            color: var(--gray);
            font-size: 0.9rem;
            border-top: 1px solid #eee;
            background: #fafbfd;
        }

        .footer-link {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-link:hover {
            text-decoration: underline;
        }
        
        .no-results {
            text-align: center;
            padding: 40px;
            color: var(--gray);
        }

        .no-results i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: #dee2e6;
        }

        @media (max-width: 768px) {
            .pal-container { margin: 15px auto; }
            .app-header { padding: 20px; }
            .app-header h1 { font-size: 1.6rem; }
            .app-body { padding: 20px; }
            .btn { padding: 12px 20px; font-size: 0.95rem; }
            .app-header h2 i {display: none;}
        }

        @media (max-width: 480px) {
            .header-content { flex-direction: column; align-items: flex-start; }
            .action-buttons { flex-direction: column; }
            .btn { width: 100%; }
        }