* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #03060b;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

/* Header */
.header {
    margin-bottom: 30px;
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.back-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 40px;
    border: 1px solid transparent;
}

.back-link:hover {
    background: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.4);
    transform: translateX(-3px);
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.logo-small .logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(145deg, #fff, #6ea5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-small .logo-badge {
    background: #0d6efd;
    color: #03060b;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 2.5rem;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    border: 1px solid rgba(13, 110, 253, 0.3);
}

.title-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0c0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.title-text .subtitle {
    color: #b0b0b0;
    font-size: 1rem;
}

/* Encrypt Container */
.encrypt-container {
    background: rgba(8, 18, 28, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(13, 110, 253, 0.2);
    margin-bottom: 30px;
}

/* Section Subtitle */
.section-subtitle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
    color: #fff;
}

.section-subtitle i {
    color: #0d6efd;
}

/* Method Grid */
.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.method-card {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.method-card:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    transform: translateY(-2px);
}

.method-card.active {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.15);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.2);
}

.method-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(13, 110, 253, 0.3));
}

.method-info {
    flex: 1;
}

.method-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 4px;
}

.method-info p {
    color: #b0b0b0;
    font-size: 0.8rem;
}

.method-check {
    color: #0d6efd;
    opacity: 0;
    transition: opacity 0.2s;
}

.method-card.active .method-check {
    opacity: 1;
}

/* Key and Shift Sections */
.key-section, .shift-section {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.key-section.hidden, .shift-section.hidden {
    display: none;
}

.key-section label, .shift-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 500;
    font-size: 0.95rem;
}

.key-input, .shift-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 30px;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
    outline: none;
    transition: all 0.3s;
}

.key-input:focus, .shift-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 15px rgba(13, 110, 253, 0.2);
}

.shift-input {
    max-width: 100px;
}

/* Editor Section */
.editor-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.editor-container {
    background: #0a0f17;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.editor-header {
    background: #141c28;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(13, 110, 253, 0.2);
    flex-wrap: wrap;
    gap: 10px;
}

.editor-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
}

.editor-title i {
    color: #0d6efd;
}

.editor-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: transparent;
    border: 1px solid rgba(13, 110, 253, 0.3);
    color: #b0b0b0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(13, 110, 253, 0.1);
    color: #fff;
    border-color: #0d6efd;
}

.code-editor {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    background: #0a0f17;
    border: none;
    color: #e0e0e0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}

.code-editor:focus {
    background: #0c1420;
}

.code-editor[readonly] {
    background: #0a0f17;
    color: #a5d8ff;
    cursor: default;
}

.arrow-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #0d6efd;
    font-size: 1.2rem;
    margin: 5px 0;
}

.arrow-divider i {
    animation: bounce 2s infinite;
}

.arrow-divider i:nth-child(2) {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Action Buttons */
.action-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.primary-btn, .secondary-btn {
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
}

.primary-btn {
    background: #0d6efd;
    color: #03060b;
    border: 2px solid #0d6efd;
}

.primary-btn:hover {
    background: transparent;
    color: #0d6efd;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

.secondary-btn {
    background: transparent;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.secondary-btn:hover {
    background: #0d6efd;
    color: #03060b;
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.3);
}

/* Info Box */
.info-box {
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 20px;
    padding: 20px 25px;
    margin: 30px 0 20px;
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.info-box h4 i {
    color: #0d6efd;
}

.how-to-list {
    list-style: none;
    counter-reset: step;
    margin-bottom: 15px;
}

.how-to-list li {
    counter-increment: step;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.95rem;
}

.how-to-list li::before {
    content: counter(step);
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.note {
    color: #888;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(13, 110, 253, 0.2);
}

.note i {
    color: #f59e0b;
}

/* Examples Section */
.examples-section {
    margin-top: 20px;
}

.examples-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.examples-section h4 i {
    color: #0d6efd;
}

.example-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.example-btn {
    background: rgba(13, 110, 253, 0.1);
    border: 1px solid rgba(13, 110, 253, 0.2);
    color: #b0b0b0;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.example-btn:hover {
    background: rgba(13, 110, 253, 0.2);
    color: #fff;
    border-color: #0d6efd;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(13, 110, 253, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: #888;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-link:hover {
    color: #0d6efd;
    transform: translateY(-2px);
}

.copyright {
    color: #666;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .title-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .editor-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .action-section {
        flex-direction: column;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
    }
    
    .key-section, .shift-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .key-input {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-small {
        width: 100%;
        justify-content: center;
    }
    
    .nav-top {
        flex-direction: column;
    }
    
    .back-link {
        width: 100%;
        justify-content: center;
    }
    
    .example-buttons {
        flex-direction: column;
    }
    
    .example-btn {
        width: 100%;
        justify-content: center;
    }
}