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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1d29;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.container {
    background: #23263a;
    border-radius: 12px;
    border: 1px solid #2d3142;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 1200px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #64b5f6;
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 1px;
}


.subtitle {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 30px;
    font-size: 0.95em;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #64b5f6;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

textarea,
input[type="text"] {
    width: 100%;
    padding: 15px;
    background: #1a1d29;
    border: 1px solid #2d3142;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: vertical;
    color: #e0e0e0;
}

textarea::placeholder,
input[type="text"]::placeholder {
    color: #6b7280;
}

textarea:focus,
input[type="text"]:focus {
    outline: none;
    border-color: #64b5f6;
    background: #1f222f;
}

textarea {
    min-height: 120px;
}

.options {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.clear-btn {
    background: #ef4444;
    color: #fff;
    border: 1px solid #dc2626;
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.encrypt-btn {
    background: #64b5f6;
    color: #1a1d29;
    border: 1px solid #42a5f5;
}

.encrypt-btn:hover {
    background: #42a5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2em;
}

.option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #64b5f6;
}

.option-group label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
    color: #9ca3af;
}

.result-section {
    margin-top: 30px;
}

.quick-test {
    margin-top: 30px;
    padding: 20px;
    background: #1a1d29;
    border-radius: 8px;
    border: 1px solid #2d3142;
}

.quick-test h3 {
    color: #64b5f6;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.quick-test-desc {
    color: #9ca3af;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.test-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.test-btn {
    padding: 10px 20px;
    background: #2d3142;
    border: 1px solid #3d4152;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Courier New", monospace;
}

.test-btn:hover {
    background: #3d4152;
    border-color: #64b5f6;
    color: #64b5f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.2);
}

.test-btn:active {
    transform: translateY(0);
}

.result-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.result-input {
    flex: 1;
    background: #1a1d29;
    font-family: "Courier New", monospace;
    font-weight: 600;
    color: #64b5f6;
}

button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.copy-btn {
    background: #64b5f6;
    color: #1a1d29;
    min-width: 100px;
    border: 1px solid #42a5f5;
}

.copy-btn:hover {
    background: #42a5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: #10b981;
    border-color: #059669;
}

.info {
    margin-top: 30px;
    padding: 20px;
    background: #1a1d29;
    border-radius: 8px;
    border: 1px solid #2d3142;
    border-left: 4px solid #64b5f6;
}

.info h3 {
    color: #64b5f6;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info ul {
    margin-left: 20px;
    color: #9ca3af;
    line-height: 1.8;
}

.info li {
    margin-bottom: 5px;
}

.info li strong {
    color: #64b5f6;
    font-weight: 600;
}

.info.warning {
    border-left: 4px solid #f59e0b;
}

.info.warning h3 {
    color: #f59e0b;
}

.info-intro {
    color: #9ca3af;
    line-height: 1.8;
    margin: 0;
    text-align: justify;
}

.info-content {
    margin: 0;
}

.specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.spec-item {
    background: #2d3142;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #3d4152;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: #3d4152;
    border-color: #64b5f6;
}

.spec-label {
    font-size: 0.85em;
    color: #64b5f6;
    font-weight: 600;
}

.spec-value {
    font-size: 0.95em;
    color: #9ca3af;
    font-weight: 500;
}

.example {
    background: #2d3142;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #3d4152;
    margin-top: 15px;
}

.example-item {
    margin: 10px 0;
    color: #9ca3af;
    line-height: 1.8;
}

.example-item:first-child {
    margin-top: 0;
}

.example-item:last-child {
    margin-bottom: 0;
}

.example-item strong {
    color: #64b5f6;
    font-weight: 600;
}

.example-item code {
    background: #1a1d29;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: "Courier New", monospace;
    color: #f59e0b;
    border: 1px solid #2d3142;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 2em;
    }

    .result-box {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }

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

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid #059669;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    animation: slideInRight 0.3s ease-out;
    z-index: 1000;
    display: none;
    font-weight: 600;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.show {
    display: block;
}