:root {
    --primary-color: #3751a3;
    --secondary-color: #d1d1d1;
    --text-color: #333;
    --bg-color: #fff;
    --code-bg: #f5f5f5;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --primary-color: #6c8eff;
    --secondary-color: #2d3748;
    --text-color: #f8f9fa;
    --bg-color: #1a202c;
    --code-bg: #2d3748;
    --border-color: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body {
    font-family: "Jost", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {            
    color: #2d2d2d;
    padding: 10px 15px 20px 15px;
    box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    /* display: flex;
    align-items: center;
    gap: 10px;             */
    width: 100%;
}

.logo i {
    font-size: 1.8rem;
}

.logo h1 {
    font-size: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.mode-toggle {
    background: none;
    border: none;
    color:#3751a3;
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
}

.mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

main {
    flex: 1;
    padding: 1rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tool-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.language-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.language-tab {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.language-tab.active {
    background-color: #f47d20;
    color: white;
    border-color: #f47d20;
}

.code-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .code-container {
        grid-template-columns: 1fr;
    }
}

.code-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-box-title {
    font-weight: 500;
}

.code-box-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--secondary-color);
    color: var(--text-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn:hover {
    background-color: #f47d20;
    color: #fff;
}

.btn:active {
    transform: scale(0.98);
}

textarea {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--code-bg);
    color: var(--text-color);
     font-family: "Jost", sans-serif;
    resize: vertical;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    background-color: #3751a3;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    color:#fff;
    font-size: 1.5rem;
}

.back-to-top {
    background-color:#f47d20;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
    text-decoration: none;
}

.file-upload {
    display: none;
}

.file-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    line-height: 15px;
}
.file-label:hover {
    background-color: #f47d20;
    color: #fff;
}