
.bots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.create-bot-btn {
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a9eff, #667eea);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.3);
    flex-shrink: 0;
}

.create-bot-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(74, 158, 255, 0.4);
}

.bots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-card {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(74, 158, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bot-card:active {
    transform: scale(0.98);
    background: rgba(74, 158, 255, 0.05);
}

.bot-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bot-info {
    flex: 1;
}

.bot-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.bot-username {
    font-size: 13px;
    color: #8a8fa3;
}

.bot-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
}

.bot-status.running {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.bot-status.stopped {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state.hidden {
    display: none;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: #8a8fa3;
}


.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

.form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: #8a8fa3;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
}

.form-input::placeholder {
    color: rgba(138, 143, 163, 0.5);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:active {
    transform: scale(0.98);
}


.bot-templates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bot-template-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bot-template-card:active {
    transform: scale(0.98);
    background: rgba(74, 158, 255, 0.1);
}

.template-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.template-info {
    flex: 1;
}

.template-name {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.template-desc {
    font-size: 13px;
    color: #8a8fa3;
}

.template-arrow {
    font-size: 20px;
    color: #667eea;
}


.form-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-label {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.modal-back {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8fa3;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: auto;
}

.modal-back:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.modal-header h2 {
    flex: 1;
    text-align: center;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}


.bot-settings-info {
    background: rgba(10, 14, 39, 0.6);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-label {
    color: #8a8fa3;
    font-size: 14px;
}

.bot-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-start {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-stop {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-action:active {
    transform: scale(0.98);
}


.textarea-wrapper {
    position: relative;
}

.formatting-toolbar {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 24, 49, 0.95);
    border: 1px solid rgba(74, 158, 255, 0.3);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.format-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 158, 255, 0.1);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.format-btn:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: rgba(74, 158, 255, 0.4);
}

.format-btn:active {
    transform: scale(0.95);
}

