@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Viga&display=swap');

@font-face {
    font-family: 'HorkBeans';
    src: url('fonts/HorkBeans.woff') format('woff'),
        url('fonts/HorkBeans.ttf') format('truetype'),
        url('fonts/HorkBeans.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
  font-family: "Viga", sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
    padding: 40px 20px;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.header h1 {
    color: #2c3e50;
    font-size: 2.8rem;
    margin-bottom: 10px;
    font-weight: 300;
    letter-spacing: -1px;
    font-family: 'HorkBeans', sans-serif;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    padding: 40px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 12px;
}

.tab-button {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6c757d;
}

.tab-button:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.tab-button.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.tab-button .icon {
    font-size: 1.3rem;
}

/* Tab Content */
.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

/* Input Groups */
.input-group {
    margin-bottom: 32px;
}

.input-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.95rem;
}

.input-group label .icon {
    font-size: 1.2rem;
}

textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.2s ease;
    background: #fdfdfd;
    min-height: 120px;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

/* Buttons */
.action-button {
    width: 100%;
    padding: 16px 32px;
    border: none;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.action-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f618d);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
}

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

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

.action-button .icon {
    font-size: 1.3rem;
}

.button-group {
    display: flex;
    gap: 12px;
}

.secondary-button {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secondary-button:hover {
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.secondary-button:active {
    transform: scale(0.98);
}

.secondary-button .icon {
    font-size: 1.1rem;
}

/* Info Card - REMOVED */

/* Mapping Section */
.mapping-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
    padding: 32px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.toggle-button {
    width: 100%;
    padding: 16px 32px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.toggle-button:hover {
    border-color: #3498db;
    color: #3498db;
    background: rgba(52, 152, 219, 0.05);
}

.toggle-button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.toggle-button .arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.toggle-button.active .arrow {
    transform: rotate(180deg);
}

.mapping-display {
    margin-top: 24px;
}

.mapping-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.mapping-item {
    background: #f8f9fa;
    padding: 16px 12px;
    border-radius: 8px;
    text-align: center;
    color: #495057;
    font-weight: 500;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.mapping-item:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    color: #3498db;
}

.mapping-item .original {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.mapping-item .arrow {
    font-size: 0.8rem;
    opacity: 0.8;
}

.mapping-item .encrypted {
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Footer */
footer {
    text-align: center;
    color: #818181;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 100;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 0;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    border: 4px solid #1a1a1a;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.3s ease;
    font-weight: 700;
    z-index: 1000;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    .header {
        margin-bottom: 40px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 2.5rem;
    }

    .card,
    .mapping-section {
        padding: 24px;
        margin-bottom: 24px;
    }

    .tabs {
        flex-direction: column;
        gap: 4px;
        padding: 4px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
    }

    .action-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .secondary-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .mapping-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .mapping-item {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .toast {
        bottom: 20px;
        right: 16px;
        left: 16px;
        font-size: 0.85rem;
    }

    textarea {
        font-size: 0.9rem;
        padding: 14px 16px;
    }
}