.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    position: relative;
    min-height: 150px;
}
.dragover {
    border-color: #007cba;
    background-color: #f0f6fc;
}
.file-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.file-info {
    text-align: right;
    display: flex;
    flex-direction: column;
}
.file-name {
    font-weight: 500;
    color: #333;
}
.file-size {
    font-size: 0.9em;
    color: #666;
}

.previous-files select option {
    direction: ltr;
    text-align: left;
}
.previous-files select option:first-child {
    direction: rtl;
    text-align: right;
}

button[type="submit"] {
    background: #007cba;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.processing-status {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    margin-top: 15px;
    border-radius: 4px;
}
.processing-status {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #eee;
    margin-top: 15px;
    border-radius: 4px;
    color: #007cba;
}

.completed-status {
    padding: 10px;
    background: #e6f4ea;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
    border-radius: 4px;
    color: #155724;
}

.error-status {
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
    border-radius: 4px;
    color: #721c24;
}

.button {
    background-color: #007cba !important;
    color: white !important;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    display: inline-block;
    margin-top: 10px;
}

.button:hover {
    background-color: #006ba1;
}
.tool-wrapper {
    display: flex;
    margin: 0 auto;
    padding: 20px;
}
.tool-wrapper form {
    width: 68%;
}

.right_sidebar {
    width: 30%;
    margin-left: 2%;
    height: 100%;
    background-color: #fff;
}

@media screen and (max-width: 650px) {
    .tool-wrapper, .image-converter-wrapper, .video-converter-wrapper, .image-compressor-wrapper {
        max-width: 90%;
        padding: 20px;
    }
    .tool-wrapper form {
        width: 100%;
    }
    .right_sidebar{
        width: 0;
    }
}

textarea, select {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.drop-zone {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
    position: relative;
    min-height: 150px;
}

.format-selector {
    margin: 15px 0;
    text-align: right;
}

.format-selector label {
    margin-left: 10px;
}

.format-selector select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.quality-selector {
    margin: 15px 0;
    text-align: right;
}

.quality-selector label {
    margin-right: 10px;
}

.quality-selector input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 100px;
}

.transparency-checkbox {
    margin: 15px 0;
    text-align: right;
}

.transparency-checkbox label {
    margin-right: 10px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
    display: none; /* ابتدا مخفی است */
}

.progress {
    width: 0;
    height: 100%;
    background-color: #007cba;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.language-selector {
    margin: 15px 0;
    text-align: right;
}

.language-selector label {
    margin-right: 10px;
}

.language-selector select {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
    display: none;
}

.progress {
    width: 0;
    height: 100%;
    background-color: #007cba;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.text-result {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
}


/* Login style */

.auth-section {
    margin: 15px 0;
    text-align: right;
}

.phone-input, .code-input {
    margin-bottom: 10px;
}

.phone-input input, .code-input input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    width: 200px;
}

#send-code, #verify-code {
    background-color: #007cba;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#send-code:hover, #verify-code:hover {
    background-color: #006ba1;
}

.auth-status {
    margin-top: 10px;
    color: #721c24;
}


.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Tool access info */
.tool-access-info {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tool-type {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.tool-type .iconify {
    font-size: 24px;
    margin-left: 12px;
}

.tool-type-content {
    display: flex;
    flex-direction: column;
}

.tool-type-title {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 4px;
}

.tool-type-desc {
    font-size: 0.9em;
    color: #666;
}

.tool-type.premium {
    background: #fff5f7;
    border: 1px solid #ffd6e0;
}

.tool-type.premium .iconify {
    color: #e91e63;
}

.tool-type.premium .tool-type-title {
    color: #e91e63;
}

.tool-type.free {
    background: #f0f9f0;
    border: 1px solid #d4edda;
}

.tool-type.free .iconify {
    color: #4caf50;
}

.tool-type.free .tool-type-title {
    color: #4caf50;
}

.trial-info, .subscription-info {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.info-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.info-header .iconify {
    font-size: 20px;
    margin-left: 8px;
    color: #2196f3;
}

.info-title {
    font-weight: 600;
    color: #333;
}

.info-content {
    margin-top: 8px;
}

.usage-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.usage-bar-fill {
    height: 100%;
    background: #2196f3;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.usage-stats {
    font-size: 0.9em;
    color: #666;
}

.usage-count {
    font-weight: 600;
    color: #2196f3;
}

.expiry-info {
    margin-top: 8px;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
}

.expiry-info .iconify {
    font-size: 16px;
    margin-left: 4px;
    color: #ff9800;
}