/* Dark Glossy Theme - BotHost */

:root {
    --bg-dark: #0f0f1a;
    --bg-card: #16162a;
    --bg-glass: rgba(22, 22, 42, 0.75);
    --primary: #5865F2;
    --primary-glow: rgba(88, 101, 242, 0.35);
    --accent: #EB459E;
    --accent-glow: rgba(235, 69, 158, 0.35);
    --text: #ffffff;
    --text-muted: #e0e0ff;
    --border: rgba(255, 255, 255, 0.08);
    --success: #45b6fe;
    --danger: #ed4245;
    --warning: #f9a62b;
    --info: #45b6fe;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Force all card text to white (override Bootstrap's dark defaults) */
.card, .card-body, .card-header, .card-footer {
    color: var(--text) !important;
}

/* Override Bootstrap's gray text-muted - bright white with slight transparency */
.text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Color utilities */
.color-primary { color: var(--primary) !important; }
.color-accent { color: var(--accent) !important; }
.color-success { color: var(--success) !important; }
.color-info { color: var(--info) !important; }
.color-muted { color: var(--text-muted) !important; }
.color-danger { color: var(--danger) !important; }

/* Gradient backgrounds */
.gradient-cta {
    background: linear-gradient(135deg, rgba(88,101,242,0.1), rgba(235,69,158,0.05));
}

.gradient-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.gradient-bar-cyan {
    background: linear-gradient(90deg, var(--success), var(--info));
}
.gradient-bar-warn {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

/* Hero mock card */
.hero-mock-card {
    background: rgba(22,22,42,0.9);
    border: 1px solid rgba(88,101,242,0.3);
}

/* Terminal small */
.terminal-small {
    max-height: 160px;
}

/* Animation utilities */
.anim-float {
    animation: float 6s ease-in-out infinite;
}
.anim-delay-1 {
    animation-delay: 0.1s;
}
.anim-delay-2 {
    animation-delay: 0.2s;
}
.anim-delay-3 {
    animation-delay: 0.3s;
}

/* Border glow */
.border-primary-glow {
    border-color: rgba(88,101,242,0.3) !important;
}

/* Dropdown dark */
.dropdown-dark {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

/* Z-index */
.z-1 {
    z-index: 1;
}

/* Contact modal info */
.contact-info i {
    color: var(--primary);
}

/* Navbar toggler white icon */
.navbar-toggler-icon-white {
    filter: invert(1);
}

/* Dropdown divider dark */
.dropdown-divider-dark {
    border-color: var(--border);
}

/* Background accent utility */
.bg-accent {
    background: var(--accent) !important;
}

/* Link color utility */
.link-primary {
    color: var(--primary) !important;
}

/* Sidebar label */
.sidebar-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Form control color picker */
.form-control-color {
    width: 60px;
    padding: 0;
}

/* Width utility */
.w-35 {
    width: 35%;
}

/* Font size utility */
.fs-50 {
    font-size: 0.5em;
}

/* Animated background gradient blobs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(88, 101, 242, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(235, 69, 158, 0.06) 0%, transparent 40%);
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bgPulse {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-2%, -2%) scale(1.05); }
    100% { transform: translate(2%, 2%) scale(1); }
}

/* Navbar */
.navbar {
    background: var(--bg-glass) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text) !important;
    text-shadow: 0 0 20px var(--primary-glow);
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover, .nav-link.active {
    color: var(--text) !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.25s ease;
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Cards - Glassmorphism */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.2);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
    color: var(--text);
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn:active::after {
    width: 200%;
    height: 200%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #7b8cff);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff7eb8);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #7dd3ff);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ff6b6e);
    color: white;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

/* Forms */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.05);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 0.65rem 1rem;
    transition: all 0.2s ease;
}

.form-select option {
    background-color: var(--bg-card);
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    color: var(--text);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(69, 182, 254, 0.15);
    color: #7dd3ff;
}

.alert-danger {
    background: rgba(237, 66, 69, 0.15);
    color: #ff6b6e;
}

.alert-warning {
    background: rgba(249, 166, 43, 0.15);
    color: #ffc85c;
}

.alert-info {
    background: rgba(69, 182, 254, 0.15);
    color: #7dd3ff;
}

/* Tables */
.table {
    color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: var(--border);
}

.table thead th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Badges */
.badge {
    padding: 0.4em 0.8em;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-success {
    background: rgba(69, 182, 254, 0.2);
    color: var(--success);
}

.badge-danger {
    background: rgba(237, 66, 69, 0.2);
    color: var(--danger);
}

.badge-warning {
    background: rgba(249, 166, 43, 0.2);
    color: var(--warning);
}

.badge-info {
    background: rgba(69, 182, 254, 0.2);
    color: var(--info);
}

/* Status indicators */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

.status-dot.running {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.status-dot.stopped {
    background: var(--text-muted);
    animation: none;
}

.status-dot.error {
    background: var(--danger);
    box-shadow: 0 0 8px var(--danger);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

/* Footer */
.footer {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 2rem 0;
    margin-top: auto;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a0a0ff 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
}

/* Pricing Cards */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.pricing-card .price {
    font-weight: 800;
    color: var(--text);
}

.pricing-card .price span {
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .feature-list {
    margin-bottom: 0.75rem;
}

.pricing-card .feature-list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

/* Log terminal */
.terminal {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    color: #d4d4d4;
    max-height: 500px;
    overflow-y: auto;
    line-height: 1.5;
}

.terminal-line {
    padding: 1px 0;
}

/* Modal */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text);
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-footer {
    border-top: 1px solid var(--border);
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.glow-text {
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7b8cff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-section {
        padding: 3rem 0;
    }
}

/* Admin sidebar */
.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    min-height: calc(100vh - 72px);
    padding: 1.5rem;
}

.admin-sidebar .nav-link {
    border-radius: 8px;
    margin-bottom: 0.25rem;
    padding: 0.75rem 1rem !important;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary) !important;
}

.admin-sidebar .nav-link::after {
    display: none;
}

/* Stats cards */
.stat-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(235, 69, 158, 0.05));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Resource bars */
.resource-bar-bg {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
}

.resource-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}
