/* Quasar Bot Panel - Ultra Minimal Fast Dark Theme */

:root {
    --primary-color: #ffffff;
    --primary-dark: #ffffff;
    --secondary-color: #ffffff;
    --accent-color: #ffffff;
    --success-color: #ffffff;
    --warning-color: #ffffff;
    --danger-color: #ff0000;

    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0a0a0a;
    --bg-card: #080808;

    --text-primary: #ffffff !important;
    --text-secondary: #ffffff !important;
    --text-muted: #aaaaaa !important;

    --border-color: #222222;
    --shadow-color: transparent;

    --sidebar-width: 250px;
    --topbar-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: none !important;
    /* Force no animations */
    animation: none !important;
}

body,
input,
button,
select,
textarea,
.table,
.card,
.stat-card,
.quasar-card {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

body {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    overflow-x: hidden;
}

/* Force dark background on everything that might be white */
.card,
.card-body,
.table,
.table-responsive,
tr,
td,
th {
    background-color: transparent !important;
    color: #ffffff !important;
}

.quasar-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.menu-link:hover {
    background: #111;
}

.menu-link.active {
    background: #fff;
    color: #000;
}

.menu-link.active i {
    color: #000;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    height: var(--topbar-height);
    background: #000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
}

.sidebar-toggle {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: none;
    /* Desktop by default hidden */
}

.sidebar-toggle:hover {
    background: #333;
}

.user-info {
    color: #fff;
    font-size: 14px;
}

.content-wrapper {
    padding: 20px;
}

/* Cards */
.quasar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 15px;
    text-align: left;
}

.stat-number {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

.stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

/* Buttons */
.btn-quasar {
    background: #e62020 !important;
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-quasar:hover {
    background: #cc1b1b !important;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-danger {
    background: #ff0000;
    color: #fff;
}

.btn-success {
    background: #111;
    color: #fff;
    border: 1px solid #333;
}

.btn-warning {
    background: #333;
    color: #fff;
}

/* Tables */
.table {
    width: 100%;
    color: #fff !important;
    border-collapse: collapse;
    background-color: #000 !important;
    /* Force black background */
}

.table :not(caption)>*>* {
    background-color: transparent !important;
    /* Overlay fix for bootstrap 5 */
}

.table th {
    background: #111 !important;
    text-align: left;
    padding: 12px;
    font-size: 12px;
    border-bottom: 1px solid #222;
    color: #fff !important;
}

.table td {
    padding: 12px;
    font-size: 13px;
    border-bottom: 1px solid #111;
    color: #fff !important;
    background-color: transparent !important;
}

/* Force everything in table to be white text and transparent bg */
.table *,
.table-responsive *,
.card *,
.quasar-card * {
    background-color: transparent !important;
    color: #fff !important;
}

/* Re-apply red to buttons after global override */
.btn-quasar,
.btn-danger {
    background-color: #e62020 !important;
    color: #fff !important;
}

/* Forms */
.form-control,
.form-select {
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-radius: 2px;
    padding: 8px;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: #fff;
}

/* Login */
.login-container {
    background: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 300px;
    padding: 30px;
    border: 1px solid #222;
    background: #050505;
}

.login-logo .logo-text {
    text-align: center;
    display: block;
    margin-bottom: 20px;
}

/* Status */
.status-badge {
    font-size: 10px;
    padding: 2px 6px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #333;
}

.status-active {
    color: #fff;
    border-color: #fff;
}

.status-inactive {
    color: #ff0000;
    border-color: #ff0000;
}

/* Removing bootstrap defaults that might conflict */
.alert {
    background: #111;
    color: #fff;
    border: 1px solid #333;
    border-radius: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .sidebar.active {
        display: block;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        z-index: 9999;
    }

    .main-content {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: block;
        margin-right: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}