/* Стили для главной страницы */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.conversion-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.conversion-section h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
    text-align: center;
}

.conversion-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px;
}

.conversion-button {
    display: inline-block;
    padding: 14px 24px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    min-width: 160px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
    border: none;
    cursor: pointer;
}

.conversion-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
}

.conversion-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

/* Стили для внутренних страниц */
.file-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.file-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    box-sizing: border-box;

}

.file-input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.conversion-button {
    margin-top: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Стили для поля ввода пин-кода */

.pin-error {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
    min-height: 20px;
}


.pin-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 0 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .pin-container {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .pin-input-group {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .pin-input-group {
        flex: 0 0 195px;
    }
}

@media (max-width: 768px) {
    .pin-info-container {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    .pin-info-container {
        margin-left: 0;
    }
}

.pin-info {
    margin-left: 0;
}



.pin-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.pin-input:focus {
    outline: none;
    border-color: #2980b9;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.pin-info {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.telegram-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.telegram-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* Адаптивность */
@media (max-width: 768px) {
    .conversion-button {
        margin-top: 15px;
    }
    
    p {
        margin-bottom: 20px;
    }
    
    #status {
        margin-top: 15px;
    }
    
    .back-link {
        margin-top: 15px;
    }
    
    h1 {
        line-height: 1.2;
    }
}