/* Контейнер */
.rg-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Группа ввода */
.rg-input-group {
    margin-bottom: 20px;
}

.rg-input-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rg-label {
    width: 200px;
    font-weight: bold;
    margin-right: 15px;
    margin-bottom: 5px;
}

/* Поля ввода */
.rg-input {
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    background: white;
    padding: 12px;
    font-size: 16px;
    width: 150px;
    transition: border-color 0.3s;
}

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

/* Опции */
.rg-options {
    margin-bottom: 20px;
}

.rg-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
}

.rg-checkbox {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Пресеты */
.rg-presets {
    margin-bottom: 20px;
}

.rg-preset-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 16px;
}

.rg-preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

/* Кнопки */
.rg-btn {
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
}

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

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

.rg-primary-btn {
    background: #2196F3;
}

.rg-primary-btn:hover {
    background: #1976D2;
}

.rg-secondary-btn {
    background: #ff9800;
}

.rg-secondary-btn:hover {
    background: #f57c00;
}

/* Кнопки действий */
.rg-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.rg-action-buttons .rg-btn {
    flex: 1;
    min-width: 140px;
}

/* Результаты */
.rg-results {
    margin-bottom: 25px;
}

.rg-results-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.rg-numbers-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    min-height: 50px;
}

.rg-number {
    background: #2196F3;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    min-width: 60px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

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

.rg-summary {
    font-style: italic;
    color: #666;
    font-size: 14px;
}

/* Кнопки поделиться */
.rg-share {
    border-top: 2px solid #ddd;
    padding-top: 20px;
}

.rg-share-title {
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

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

.rg-share-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    color: white;
}

.rg-share-btn:hover {
    transform: scale(1.1);
}

.rg-vk { background: #4C75A3; }
.rg-tg { background: #0088cc; }
.rg-wa { background: #25D366; }
.rg-copy { background: #666; }

/* Уведомления */
.rg-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: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Адаптивные стили */

/* Tablet */
@media (max-width: 768px) {
    .rg-container {
        padding: 15px;
    }
    
    .rg-input-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rg-label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .rg-input {
        width: 100%;
        max-width: 200px;
    }
    
    .rg-preset-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .rg-action-buttons {
        flex-direction: column;
    }
    
    .rg-action-buttons .rg-btn {
        min-width: auto;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .rg-container {
        padding: 10px;
    }
    
    .rg-preset-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rg-share-buttons {
        gap: 10px;
    }
    
    .rg-share-btn {
        width: 50px;
        height: 50px;
        font-size: 14px;
    }
    
    .rg-number {
        padding: 10px 15px;
        font-size: 16px;
        min-width: 50px;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .rg-preset-buttons {
        grid-template-columns: 1fr;
    }
    
    .rg-share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .rg-share-btn {
        width: 60px;
        height: 60px;
    }
}