@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Vazirmatn', sans-serif;
}

body {
    line-height: 1.6;
    color: #ececec;
    background: #000;
    min-height: 100vh;
}


.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    color: #ececec;
}

.login-box {
    background-color: #080808;
    border-radius: 15px;
    box-shadow: rgba(255, 255, 255, 0.04) 1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.04) -1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 1.2px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 0.6px 0px 0px inset;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    text-align: center;
    color: #ececec;
    margin-bottom: 10px;
    font-size: 2.5rem;
    font-weight: 700;
}

.login-box h2 {
    text-align: center;
    color: #ececec;
    margin-bottom: 30px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ececec;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #5f22d9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #5f22d9;
    color: #ececec;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #ac77ff;
    background: #5f22d9;
}

.form-group input::placeholder {
    color: #ececec;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #ececec;
    font-size: 0.9rem;
}

.form-group small a {
    color: #ac77ff;
    text-decoration: none;
}

.form-group small a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-primary {
    background: #5f22d9;
    color: #ececec;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    background: #5f22d9;
    color: #ececec;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}


.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #080808;
    box-shadow: rgba(255, 255, 255, 0.04) 1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.04) -1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 1.2px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 0.6px 0px 0px inset;
}

.dashboard-header h1 {
    color: #ececec;
    font-size: 2rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    color: #ececec;
    font-weight: 500;
}

.dashboard-main {
    padding: 30px;
    border-radius: 15px;
    background-color: #080808;
    box-shadow: rgba(255, 255, 255, 0.04) 1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.04) -1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 1.2px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 0.6px 0px 0px inset;
}


.guide-section h2 {
    color: #ececec;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.guide-content {
    background: #000;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #5f22d9;
}

.guide-content h3 {
    color: #ececec;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.guide-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.guide-content li {
    margin-bottom: 8px;
    color: #ececec;
}

.guide-content li a {
    color: #ececec;
}

.guide-content strong {
    color: #ececec;
}


.translation-form h2 {
    color: #ececec;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

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

.translations-section h3 {
    color: #ececec;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.translations-section p {
    color: #ececec;
    margin-bottom: 25px;
    font-style: italic;
}

.translation-item {
    background: #5f22d9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.original-text {
    margin-bottom: 15px;
}

.original-text strong {
    color: #ececec;
    font-size: 1.1rem;
}

.original-value {background: #080808;padding: 10px;border-radius: 5px;margin-top: 8px;color: #ececec;font-weight: 600;word-break: break-word;white-space: pre-line;}

.translation-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ececec;
}

.translation-input textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background: #080808;
    border: none;
    color: #ececec;
    white-space: pre-line;
}

.translation-input textarea:focus {
    outline: none;
    border-color: #5f22d9;
    box-shadow: 0 0 0 3px rgba(126, 38, 226, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Messages */
.success-message,
.error-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-info {
        justify-content: center;
    }
    
    .dashboard-container {
        padding: 10px;
    }
    
    .dashboard-main {
        padding: 20px;
    }
    
    .login-box {
        padding: 30px 20px;
    }
}


::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #5f22d9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ac77ff;
}

.html-guide {
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    background-color: #080808;
    box-shadow: rgba(255, 255, 255, 0.04) 1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.04) -1.2px 0px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 1.2px 0px 0px inset, rgba(255, 255, 255, 0.1) 0px 0.6px 0px 0px inset;
}

.html-guide h4 {
    color: #ac77ff;
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

.html-guide code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.example-box {
    background: #0f0f0f;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 15px;
    margin: 10px 0;
}

.example-box p {
    margin: 8px 0;
    font-size: 0.9em;
}

.example-box code {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.85em;
}

.form-group select option {
    background: #5f22d9;
    color: #ececec;
    padding: 8px;
}

.form-group select:focus {
    box-shadow: 0 0 0 3px rgba(172, 119, 255, 0.1);
}

.translated-languages {
    background: #0f0f0f;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 15px;
    color: #ececec;
    margin: 0 0 20px;
    transition: all 0.3s ease;
    position: relative;
}

.translated-languages .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.translated-languages .chevron {
    font-size: 18px;
    transition: transform 0.3s ease;
}


.translated-languages p {
    font-weight: 600;
}

.translated-languages a {
    color: #ac77ff;
}

.translated-languages ul {
    list-style: disc;
    margin: 20px 20px 0;
}

.language-selection h2 {
    color: #ececec;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.language-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #080808;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.language-item:hover {
    background: #1e1e1e;
}

.lang-icon {
    font-size: 2em;
    margin-right: 15px;
}

.lang-name {
    font-weight: 600;
    flex-grow: 1;
}

.completed-badge {
    background: #5f22d9;
    color: #ececec;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.translation-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

#progress {
    font-weight: 600;
    color: #ececec;
}

.lang-icon i {
    border-radius: 5px;
    background-color: #080808;
}

.direction-toggle {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 10px;
}

.html-tag {
    background-color: #5f22d9;
    color: #ececec;
    padding: 2px 5px;
    border-radius: 4px;
    border: 1px solid #ac77ff;
    cursor: pointer;
    transition: all 0.13s ease;
    display: inline-block;
    margin: 0 2px;
    font-family: 'Consolas', 'Monaco', monospace;
}

.html-tag:hover {
    background-color: #5f22d9d4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}