/* Контейнер */
.rc-container {
    width: 100%;
    max-width: 100%;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 20px 0;
}

/* Основной контейнер для корня */
.rc-root-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0 30px 0;
    padding: 20px 0;
    min-height: 100px;
}

.rc-root-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
}

/* SVG символ корня */
.rc-root-svg {
    width: 120px;
    height: 80px;
    margin-right: 5px;
	margin-left: 5px;
}

/* Поля ввода */
.rc-degree-input {
    position: absolute;
    top: -5px;
    left: -40px;
    width: 80px;
    font-size: 16px;
    z-index: 3;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.rc-radicand-input {
    width: 150px;
    font-size: 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rc-input {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
    background: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rc-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-1px);
}

.rc-input::placeholder {
    color: #adb5bd;
    font-weight: normal;
}

/* Результат */
.rc-result {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.rc-result-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.rc-result-value {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
    word-break: break-all;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Блок поделиться */
.rc-share {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    border: 2px solid #e9ecef;
    text-align: center;
}

.rc-share-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

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

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

.rc-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.rc-share-vk { background: #4C75A3; }
.rc-share-tg { background: #0088cc; }
.rc-share-wa { background: #25D366; }
.rc-share-copy { background: #6c757d; }

/* Уведомление */
.rc-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: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
}

/* Анимации */
@keyframes resultPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.rc-result-value.changed {
    animation: resultPulse 0.5s ease;
}

/* Индикатор вычисления */
.rc-calculating {
    opacity: 0.7;
    color: #6c757d !important;
}

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

/* Desktop */
@media (max-width: 1024px) {
    .rc-container {
        padding: 25px;
    }
    
    .rc-root-svg {
        width: 110px;
        height: 75px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .rc-container {
        padding: 20px;
    }
    
    .rc-root-symbol {
        margin: 30px 0 20px 0;
        min-height: 80px;
    }
    
    .rc-root-svg {
        width: 100px;
        height: 70px;
        margin-right: 10px;
		margin-left: 10px;
    }
    
    .rc-degree-input {
        left: -40px;
        width: 80px;
        font-size: 14px;
        padding: 6px;
    }
    
    .rc-radicand-input {
        width: 150px;
        font-size: 18px;
        padding: 10px;
    }
    
    .rc-share-buttons {
        gap: 12px;
    }
    
    .rc-share-btn {
        width: 55px;
        height: 55px;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .rc-container {
        padding: 15px;
    }
    
    .rc-root-symbol {
        margin: 20px 0 15px 0;
        min-height: 70px;
    }
    
    .rc-root-svg {
        width: 80px;
        height: 60px;
        margin-right: 8px;
		margin-left: 8px;
    }
    
    .rc-degree-input {
        left: -40px;
        width: 80px;
        font-size: 14px;
        padding: 5px;
        top: -8px;
    }
    
    .rc-radicand-input {
        width: 150px;
        font-size: 16px;
        padding: 8px;
    }
    
    .rc-result {
        padding: 15px;
        margin: 15px 0;
    }
    
    .rc-result-value {
        font-size: 22px;
    }
    
    .rc-share {
        padding: 15px;
        margin: 20px 0;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .rc-container {
        padding: 12px;
    }
    
    .rc-root-svg {
        width: 70px;
        height: 55px;
    }
    
    .rc-degree-input {
        left: -40px;
        width: 80px;
        font-size: 12px;
        padding: 4px;
    }
    
    .rc-radicand-input {
        width: 150px;
        font-size: 14px;
        padding: 6px;
    }
    
    .rc-share-buttons {
        gap: 8px;
    }
    
    .rc-share-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .rc-notification {
        padding: 20px 25px;
        font-size: 16px;
    }
}