/* Общие стили */
.tsr-button {
    display: inline-block;
    padding: 10px 20px;
    background: #4a90e2;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.tsr-button:hover {
    background: #357abd;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.tsr-button:active {
    transform: translateY(0);
}

.tsr-button-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Стили для шорткода ts_connect */
.tsr-connect {
    margin: 20px 0;
}

.tsr-connect-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 300px;
}

.tsr-connect-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.tsr-connect-title {
    margin: 10px 0 5px;
    color: #333;
    font-size: 20px;
}

.tsr-connect-server {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 3px;
    display: inline-block;
}

.tsr-connect-button {
    display: inline-block;
    padding: 10px 25px;
    background: #4a90e2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
}

.tsr-connect-button:hover {
    background: #357abd;
    color: white;
    text-decoration: none;
}

/* Стили для страницы редиректа */
.tsr-redirect-page {
    padding: 40px 20px;
    background: #f5f5f5;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.tsr-container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.tsr-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.tsr-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.tsr-message {
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
}

.tsr-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.tsr-info p {
    margin: 5px 0;
    color: #555;
}

.tsr-instructions {
    text-align: left;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.tsr-instructions h3 {
    margin-top: 0;
    color: #333;
}

.tsr-instructions ol {
    margin: 10px 0;
    padding-left: 20px;
    color: #666;
}

.tsr-instructions li {
    margin: 8px 0;
}

.tsr-url {
    display: block;
    background: #2d2d2d;
    color: #4ec9b0;
    padding: 15px;
    border-radius: 5px;
    font-family: monospace;
    word-break: break-all;
    margin: 15px 0 0;
}

/* Анимация загрузки */
.tsr-loader {
    margin: 20px 0;
}

.tsr-loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Стили для виджета */
.tsr-widget {
    padding: 15px;
}

.tsr-widget-server {
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}

.tsr-widget-label {
    font-weight: bold;
    color: #555;
    margin-right: 5px;
}

.tsr-widget-value {
    color: #333;
    word-break: break-all;
}

.tsr-widget-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: bold;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.tsr-widget-button:hover {
    background: #357abd;
    color: white;
    text-decoration: none;
}

.tsr-widget-footer {
    text-align: center;
    color: #999;
    font-size: 11px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .tsr-card {
        padding: 25px;
    }
    
    .tsr-icon {
        font-size: 48px;
    }
    
    .tsr-button-large {
        padding: 12px 20px;
        font-size: 16px;
    }
}