* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f8fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e1e8ed;
}

.logo h1 {
    color: #1da1f2;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo p {
    color: #657786;
    font-size: 0.9rem;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: #657786;
    font-weight: 500;
}

.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 80px 0;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #14171a;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #657786;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.btn-primary {
    background: #1da1f2;
    color: white;
}

.btn-primary:hover {
    background: #1a91da;
}

.btn-outline {
    background: transparent;
    color: #1da1f2;
    border: 1px solid #1da1f2;
}

.btn-outline:hover {
    background: #e8f5fe;
}

.btn-danger {
    background: #e0245e;
    color: white;
}

.btn-danger:hover {
    background: #c51a4e;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.bot-preview {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-container {
    border: 1px solid #e1e8ed;
    border-radius: 10px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f5f8fa;
    border-bottom: 1px solid #e1e8ed;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1da1f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 10px;
}

.chat-info {
    flex: 1;
}

.chat-name {
    font-weight: 600;
}

.chat-status {
    font-size: 0.8rem;
    color: #17bf63;
}

.chat-messages {
    padding: 15px;
    background: white;
    height: 250px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 15px;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
}

.message-time {
    font-size: 0.7rem;
    color: #657786;
    align-self: flex-end;
    margin: 0 5px;
}

.bot-message {
    justify-content: flex-start;
}

.bot-message .message-content {
    background: #e8f5fe;
    border-top-left-radius: 4px;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: #1da1f2;
    color: white;
    border-top-right-radius: 4px;
}

.chat-input {
    display: flex;
    padding: 15px;
    background: #f5f8fa;
    border-top: 1px solid #e1e8ed;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 20px;
    margin-right: 10px;
}

.chat-input button {
    padding: 10px 20px;
    background: #1da1f2;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.features {
    padding: 80px 0;
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #14171a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #1da1f2;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.how-it-works {
    padding: 80px 0;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: #14171a;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1da1f2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 10px;
    color: #14171a;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: #1da1f2;
    color: white;
}

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.cta-section .btn {
    background: white;
    color: #1da1f2;
}

.cta-section .btn:hover {
    background: #e8f5fe;
}

footer {
    background: #14171a;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 15px;
    color: #1da1f2;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #aab8c2;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #1da1f2;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2f3336;
    color: #657786;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 0;
}

.auth-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #14171a;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #14171a;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #1da1f2;
    box-shadow: 0 0 0 2px rgba(29, 161, 242, 0.2);
}

.help-text {
    font-size: 0.85rem;
    color: #657786;
    margin-top: 5px;
}

.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee7e7;
    color: #e53e3e;
    border: 1px solid #fc8181;
}

.alert-success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #1da1f2;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.dashboard {
    padding: 40px 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    color: #14171a;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #14171a;
}

.empty-state p {
    margin-bottom: 25px;
    color: #657786;
}

.bot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.bot-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.bot-card:hover {
    transform: translateY(-5px);
}

.bot-card-header {
    padding: 20px;
    background: #f5f8fa;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-card-header h3 {
    color: #14171a;
}

.bot-status {
    background: #17bf63;
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bot-card-body {
    padding: 20px;
}

.bot-card-body p {
    margin-bottom: 10px;
    color: #657786;
}

.bot-card-actions {
    padding: 20px;
    background: #f5f8fa;
    border-top: 1px solid #e1e8ed;
    display: flex;
    gap: 10px;
}

.bot-editor {
    padding: 40px 0;
}

.bot-editor h2 {
    margin-bottom: 30px;
    color: #14171a;
}

.form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    color: #14171a;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

.command-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.command-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.command-row .btn {
    margin-bottom: 8px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .command-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    nav {
        flex-direction: column;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}