/* Контейнер */
.lc-container {
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 20px 0;
}

/* Группы ввода */
.lc-input-group {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
    align-items: stretch;
}

.lc-input-wrapper {
    flex: 1;
    display: flex;
}

/* Поля ввода */
.lc-input {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 16px;
    background: white;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    transition: border-color 0.3s;
    min-height: 54px;
}

.lc-input:focus {
    border-color: #4CAF50;
    outline: none;
}

.lc-input:read-only {
    background: #f8f9fa;
    color: #6c757d;
}

/* Выпадающие списки */
.lc-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 40px 15px 15px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    min-width: 180px;
    min-height: 54px;
    box-sizing: border-box;
}

.lc-select:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Кнопка конвертации */
.lc-convert-arrow {
    text-align: center;
    margin: 25px 0;
}

.lc-convert-button {
    display: inline-block;
}

.lc-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 600;
    min-height: 54px;
    padding: 15px 30px;
}

.lc-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.lc-btn:active {
    transform: translateY(0);
}

.lc-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* Блок дополнительных конвертаций */
.lc-all-conversions {
    margin-top: 25px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.lc-all-conversions-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.lc-all-conversions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.lc-conversion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s;
}

.lc-conversion-item:hover {
    background: #e9ecef;
    border-color: #4CAF50;
}

.lc-conversion-value {
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.lc-conversion-unit {
    font-size: 13px;
    color: #6c757d;
    margin-left: 8px;
    min-width: 60px;
}

.lc-copy-result-btn {
    background: none;
    border: 1px solid #4CAF50;
    color: #4CAF50;
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.lc-copy-result-btn:hover {
    background: #4CAF50;
    color: white;
}

.lc-copy-result-btn.copied {
    background: #4CAF50;
    color: white;
    border-color: #45a049;
}

.lc-copy-icon {
    width: 12px;
    height: 12px;
}

/* Секция поделиться */
.lc-share-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.lc-share-title {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Кнопки поделиться */
.lc-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
    text-decoration: none;
}

.lc-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.lc-share-btn:active {
    transform: translateY(-1px);
}

.lc-share-vk {
    background: #07F;
}

.lc-share-vk:hover {
    background: #0055cc;
}

.lc-share-tg {
    background: #0088cc;
}

.lc-share-tg:hover {
    background: #0077b5;
}

.lc-share-wa {
    background: #25D366;
}

.lc-share-wa:hover {
    background: #128C7E;
}

.lc-share-link {
    background: #6c757d;
}

.lc-share-link:hover {
    background: #5a6268;
}

/* Уведомления */
.lc-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: lc-notification-fade 3s ease-in-out;
}

.lc-notification-content {
    text-align: center;
}

@keyframes lc-notification-fade {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}

/* Адаптивность */

/* Tablet */
@media (max-width: 768px) {
    .lc-container {
        padding: 20px;
    }
    
    .lc-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .lc-select {
        min-width: 100%;
    }
    
    .lc-all-conversions-list {
        grid-template-columns: 1fr;
    }
    
    .lc-share-buttons {
        gap: 10px;
    }
    
    .lc-share-btn {
        width: 55px;
        height: 55px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .lc-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .lc-input, .lc-select, .lc-btn {
        min-height: 50px;
        padding: 12px;
        font-size: 16px;
    }
    
    .lc-convert-arrow {
        margin: 20px 0;
    }
    
    .lc-all-conversions {
        padding: 15px;
        margin-top: 20px;
    }
    
    .lc-conversion-item {
        padding: 10px 12px;
    }
    
    .lc-conversion-value {
        font-size: 13px;
    }
    
    .lc-conversion-unit {
        font-size: 12px;
    }
    
    .lc-copy-result-btn {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .lc-share-section {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    .lc-share-buttons {
        gap: 8px;
    }
    
    .lc-share-btn {
        width: 50px;
        height: 50px;
        font-size: 13px;
    }
    
    .lc-notification {
        padding: 20px 25px;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .lc-container {
        padding: 12px;
    }
    
    .lc-all-conversions-list {
        grid-template-columns: 1fr;
    }
    
    .lc-share-buttons {
        justify-content: space-around;
    }
    
    .lc-share-btn {
        width: 45px;
        height: 45px;
        font-size: 12px;
    }
}

/* Предотвращение масштабирования на iOS */
.lc-input, .lc-select {
    font-size: 16px !important;
}

.lc-input:focus, .lc-select:focus {
    font-size: 16px !important;
}

/* Убираем стрелки у number input */
.lc-input[type="number"] {
    -moz-appearance: textfield;
}

.lc-input[type="number"]::-webkit-outer-spin-button,
.lc-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Улучшенные стили для уведомлений */
.lc-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: lc-notification-fade 3s ease-in-out;
    text-align: center;
    min-width: 300px;
    max-width: 90vw;
    box-sizing: border-box;
}

.lc-notification-content {
    text-align: center;
    font-weight: 600;
}

@keyframes lc-notification-fade {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -40%); 
    }
    20% { 
        opacity: 1; 
        transform: translate(-50%, -50%); 
    }
    80% { 
        opacity: 1; 
        transform: translate(-50%, -50%); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -60%); 
    }
}

/* Убедимся, что кнопки кликабельны */
.lc-share-btn {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.lc-share-btn:focus {
    outline: 2px solid rgba(76, 175, 80, 0.5);
    outline-offset: 2px;
}

/* Улучшаем доступность для мобильных */
@media (max-width: 480px) {
    .lc-notification {
        padding: 20px 25px;
        font-size: 14px;
        min-width: 250px;
    }
}