/* Telegram Bot Guide - Frontend Styles */

.tbg-wrapper {
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
}

.tbg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Tabs */
.tbg-steps-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tbg-step-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.tbg-step-tab:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    text-decoration: none;
    color: #333;
}

.tbg-step-tab.active {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

.tbg-step-tab.completed {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.tbg-step-tab .material-icons {
    font-size: 20px;
}

/* Content Card */
.tbg-content-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.tbg-step-content {
    display: none;
}

.tbg-step-content.active {
    display: block;
    animation: fadeInUp 0.5s;
}

/* Instructions */
.tbg-instruction-box {
    background: #f8f9fa;
    border-left: 4px solid #0088cc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.tbg-instruction-box h3 {
    color: #0088cc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
}

.tbg-instruction-box h3 .material-icons {
    font-size: 24px;
}

/* Code Blocks */
.tbg-code-block, .tbg-code {
    background: #263238;
    color: #aed581;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    overflow-x: auto;
    position: relative;
    font-size: 14px;
}

.tbg-copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tbg-copy-btn:hover {
    background: #45a049;
}

.tbg-copy-btn .material-icons {
    font-size: 16px;
}

/* Alerts */
.tbg-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tbg-alert .material-icons {
    font-size: 24px;
    flex-shrink: 0;
}

.tbg-alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid #2196f3;
}

.tbg-alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.tbg-alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.tbg-alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Buttons */
.tbg-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.tbg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tbg-btn .material-icons {
    font-size: 20px;
}

.tbg-btn-primary {
    background: #0088cc;
    color: white;
}

.tbg-btn-primary:hover {
    background: #0077bb;
}

.tbg-btn-success {
    background: #4caf50;
    color: white;
}

.tbg-btn-success:hover {
    background: #45a049;
}

.tbg-btn-warning {
    background: #ffc107;
    color: #333;
}

.tbg-btn-warning:hover {
    background: #ffb300;
}

.tbg-button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Input Groups */
.tbg-input-group {
    margin: 20px 0;
}

.tbg-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.tbg-input-group input,
.tbg-input-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: 'Inter', sans-serif;
}

.tbg-input-group input:focus,
.tbg-input-group textarea:focus {
    outline: none;
    border-color: #0088cc;
}

/* Bot Info Card */
.tbg-bot-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
}

.tbg-bot-info-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbg-bot-info-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.tbg-bot-info-item:last-child {
    border-bottom: none;
}

.tbg-bot-info-item a {
    color: white;
    text-decoration: underline;
}

/* Tips Box */
.tbg-tips-box {
    background: linear-gradient(135deg, #ffd54f 0%, #ffca28 100%);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.tbg-tips-box h4 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tbg-tips-box ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tbg-tips-box li {
    padding: 8px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tbg-tips-box li:before {
    content: "✓";
    color: #4caf50;
    font-weight: bold;
    font-size: 18px;
}

/* Loader */
.tbg-loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0088cc;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: tbg-spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes tbg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat ID Display */
.tbg-chat-id-display {
    background: #0088cc;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

/* Messages List */
.tbg-messages-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tbg-message-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tbg-message-details {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.tbg-message-details .label {
    font-weight: 600;
    color: #333;
}

/* Card */
.tbg-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
}

.tbg-card h3 {
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Instructions List */
.tbg-instructions ol {
    margin-left: 20px;
    line-height: 1.8;
}

.tbg-instructions li {
    margin: 10px 0;
}

/* Highlight */
.tbg-highlight {
    background: #ffeb3b;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notification Toast */
.tbg-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    animation: slideInRight 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tbg-content-card {
        padding: 20px;
    }
    
    .tbg-button-group {
        flex-direction: column;
    }
    
    .tbg-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tbg-steps-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tbg-step-tab {
        text-align: center;
        justify-content: center;
    }
}

/* Code Example */
.tbg-code-example {
    margin: 20px 0;
}

.tbg-code-example h4 {
    margin-bottom: 15px;
    color: #333;
}