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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #28282b;
    color: #fff;
    line-height: 1.6;
}

#root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation Styles */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(40, 40, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #7b2ff7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    margin-left: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #c084fc, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
    background: none;
    border: none;
    font-size: 1rem;
}

.nav-link:hover {
    color: #c084fc;
}

.btn-primary {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, #7b2ff7, #9a1fff);
    color: white;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(123, 47, 247, 0.5);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: #28282b;
    border-top: 1px solid rgba(192, 132, 252, 0.2);
    padding: 1rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
    text-align: left;
}

/* Main Content */
main {
    flex: 1;
}

.page-container {
    padding: 8rem 1rem 5rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, #c084fc, #9a1fff, #c43ad6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    border: 2px solid #c084fc;
    background: transparent;
    color: #c084fc;
}

.btn-secondary:hover {
    background: rgba(192, 132, 252, 0.1);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
    background: linear-gradient(135deg, #28282b, rgba(123, 47, 247, 0.1));
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: #c084fc;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 1rem 0;
}

.card p {
    color: #d1d5db;
}

.icon {
    width: 48px;
    height: 48px;
    color: #c084fc;
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: #d1d5db;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #c084fc;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 4px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #28282b;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #c084fc;
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: #28282b;
    border-top: 1px solid rgba(192, 132, 252, 0.2);
    padding: 3rem 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    padding: 0;
}

.footer-link:hover {
    color: #c084fc;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(192, 132, 252, 0.2);
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Pricing Cards */
.pricing-card {
    background: linear-gradient(135deg, #28282b, rgba(123, 47, 247, 0.1));
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
}

.pricing-card.featured {
    border: 2px solid #c084fc;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to right, #7b2ff7, #9a1fff);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-price {
    font-size: 3rem;
    font-weight: bold;
    color: white;
}

.pricing-period {
    color: #9ca3af;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 1rem 2rem;
}

.auth-card {
    max-width: 28rem;
    width: 100%;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #7b2ff7);
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.text-gray {
    color: #9ca3af;
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: bold;
}

.rounded {
    border-radius: 0.5rem;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

#missionVisual {
    padding-top: 40px;
}











/* Dashboard Specific Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-secondary-alt {
    padding: 0.625rem 1.25rem;
    color: #c084fc;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small:hover {
    background: rgba(192, 132, 252, 0.1);
}

.btn-danger {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: #28282b;
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(192, 132, 252, 0.2);
}

.btn-wizard-back {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid #9ca3af;
    color: #9ca3af;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-wizard-back:hover {
    background: rgba(156, 163, 175, 0.1);
    border-color: #d1d5db;
    color: #d1d5db;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary:disabled:hover {
    transform: none;
    box-shadow: none;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Color Picker */
.color-picker-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    border: 2px solid rgba(192, 132, 252, 0.3);
    cursor: pointer;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.color-preview:hover {
    border-color: #c084fc;
}

.color-picker-container input[type="text"] {
    flex: 1;
}

/* Upload Button */
.upload-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #7b2ff7, #9a1fff);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.upload-btn:hover {
    box-shadow: 0 0 20px rgba(123, 47, 247, 0.5);
    transform: translateY(-2px);
}

/* Logo Preview */
.logo-preview-container {
    margin-top: 1rem;
}

.logo-preview-img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 0.5rem;
    border: 2px solid rgba(192, 132, 252, 0.3);
    display: block;
}

/* Documents List */
.documents-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(192, 132, 252, 0.1);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 0.5rem;
}

.document-item span {
    color: white;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions button {
        flex: 1;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bots-grid {
        grid-template-columns: 1fr;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .action-bar button {
        width: 100%;
    }
    
    .color-picker-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .color-preview {
        width: 100%;
        height: 60px;
    }
}

.btn-secondary-alt:hover {
    background: rgba(192, 132, 252, 0.1);
}

.btn-logout {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 2px solid #ef4444;
    color: #ef4444;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #28282b, rgba(123, 47, 247, 0.1));
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #c084fc;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.25rem;
}

.stat-card p {
    font-size: 0.875rem;
}

.action-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bots-section {
    margin-top: 2rem;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.bot-card {
    background: linear-gradient(135deg, #28282b, rgba(123, 47, 247, 0.05));
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: border-color 0.3s;
}

.bot-card:hover {
    border-color: #c084fc;
}

.bot-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-card-header h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid #22c55e;
}

.status-awaiting {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.status-inactive {
    background: rgba(107, 114, 128, 0.2); /* subtle gray background */
    color: #6b7280;                       /* Tailwind gray-500 */
    border: 1px solid #6b7280;
}

.script-section {
    margin-bottom: 1rem;
}

.script-label {
    display: block;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.script-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(192, 132, 252, 0.05);
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.script-code {
    flex: 1;
    font-family: monospace;
    font-size: 0.75rem;
    color: #c084fc;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.copy-btn:hover {
    opacity: 0.7;
}

.bot-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
    border: 2px solid #c084fc;
    color: #c084fc;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}








/* Custom Confirm Dialog */
.btn-confirm-yes {
    padding: 0.75rem 2rem;
    background: linear-gradient(to right, #7b2ff7, #9a1fff);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.btn-confirm-yes:hover {
    box-shadow: 0 0 20px rgba(123, 47, 247, 0.5);
    transform: translateY(-2px);
}

.btn-confirm-no {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid #9ca3af;
    color: #9ca3af;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 100px;
}

.btn-confirm-no:hover {
    background: rgba(156, 163, 175, 0.1);
    border-color: #d1d5db;
    color: #d1d5db;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    align-items: center;
}

.social-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    /* Remove the color-inverting filter */
    filter: none;
}
