:root {
    --bg-color: #f9fafb;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary-blue: #4f46e5;
    --primary-blue-light: #e0e7ff;
    --border-color: #e5e7eb;
    --high-bg: #dbeafe;
    --high-text: #2563eb;
    --low-bg: #fce7f3;
    --low-text: #db2777;
    --font-family: 'Inter', sans-serif;
    --sidebar-width: 250px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    flex-shrink: 0;
    z-index: 10;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 4px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    color: #1f2937;
}

.logo-subtext {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

.version-badge {
    margin-left: auto;
    background-color: #f3f4f6;
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.nav-section {
    margin-bottom: 32px;
}

.nav-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-left: 8px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background-color: #f9fafb;
    color: var(--text-main);
}

.nav-item.active {
    background-color: #f3f4f6;
    color: var(--text-main);
    font-weight: 600;
}

.nav-item i {
    font-size: 18px;
}

.nav-item.active i {
    color: var(--text-main);
}

.nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    line-height: 1.4;
}

.nav-badge--blue {
    background: #3b82f6;
}

.sidebar-bottom {
    margin-top: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 8px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    flex-grow: 1;
    overflow: hidden;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
    position: sticky;
    top: 0;
    z-index: 5;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
}

.page-title-icon {
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-outline {
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #f9fafb;
    color: var(--text-main);
    border-color: #d1d5db;
}

.balance-badge {
    background-color: #3b82f6;
    color: white;
    padding: 6px 6px 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-amount {
    background-color: white;
    color: #3b82f6;
    padding: 4px 8px;
    border-radius: 4px;
}

.content-area {
    padding: 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 0 0 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab.active {
    color: var(--primary-blue);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-blue);
}

.tab-count {
    background-color: #f3f4f6;
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tab.active .tab-count {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
}

/* Tab Contents */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    margin-top: 20px;
}

.empty-state-img {
    max-width: 200px;
    margin-bottom: 24px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.5;
}

/* Task Grid */
.task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.task-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}

.task-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.task-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-icon {
    color: var(--text-main);
    font-size: 18px;
}

.task-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.task-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.task-footer {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge-high {
    background-color: var(--high-bg);
    color: var(--high-text);
}

.badge-low {
    background-color: var(--low-bg);
    color: var(--low-text);
}

.badge-outline {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background-color: #ffffff;
}

a.badge-claim,
button.badge-claim {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

a.badge-claim:hover,
button.badge-claim:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: var(--primary-blue-light);
}

/* Column layout adjustment for desktop */
@media (min-width: 1024px) {
    .task-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Track Page Styles */
.track-section {
    margin-bottom: 40px;
}

.section-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.card-header-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.info-icon {
    color: var(--primary-blue);
    font-size: 20px;
    cursor: pointer;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 600px;
    line-height: 1.5;
}

.time-inputs-container {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.time-input {
    width: 150px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.time-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 16px;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.status-text {
    font-size: 13px;
    color: var(--text-muted);
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 9999px;
    /* pill shape */
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.filter-tab:hover {
    background-color: #f3f4f6;
    color: var(--text-main);
}

.filter-tab.active {
    background-color: var(--primary-blue-light);
    color: var(--primary-blue);
    font-weight: 600;
}

/* Table Styles */
.table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.transaction-table th,
.transaction-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.transaction-table th {
    font-weight: 600;
    color: var(--text-muted);
    background-color: #f9fafb;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.transaction-table tbody tr {
    transition: background-color 0.2s;
}

.transaction-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Alternating rows */
.transaction-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.text-right {
    text-align: right !important;
}

.fw-600 {
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
}

.status-paid {
    background-color: #dcfce7;
    color: #166534;
}

.status-pending {
    background-color: #fef9c3;
    color: #854d0e;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

.table-footer {
    padding: 16px 24px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background-color: #f9fafb;
    border-radius: 0 0 12px 12px;
}

/* Settings Layout */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.settings-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-page-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-main);
}

.settings-page-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.settings-section {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section.full-width {
    flex-direction: column;
    gap: 20px;
}

.settings-info {
    flex: 0 0 300px;
}

.settings-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.settings-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.settings-note {
    font-size: 13px;
    color: var(--text-main);
}

.settings-note i {
    color: var(--primary-blue);
    vertical-align: middle;
    font-size: 16px;
    margin-left: 4px;
}

.settings-content {
    flex: 1;
    min-width: 0;
}

/* Payout Method Cards */
.pm-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.pm-card:last-child {
    margin-bottom: 0;
}

.pm-icon-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    margin-right: 16px;
    font-size: 20px;
}

.pm-icon-wrapper.paypal {
    color: #00457C;
}

.pm-details {
    flex-grow: 1;
}

.pm-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 2px;
}

.pm-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.pm-action {
    margin-left: 16px;
}

.btn-connect {
    border: 1px solid var(--border-color);
    background: transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-connect:hover {
    background-color: #f9fafb;
}

.status-connected {
    color: #10b981;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Form Elements */
.settings-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: all 0.2s ease;
}

.settings-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.settings-textarea::placeholder {
    color: #9ca3af;
}

/* History Table Specifics */
.table-minimal {
    width: 100%;
    border-collapse: collapse;
}

.table-minimal th {
    text-align: left;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.table-minimal td {
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table-minimal tr:last-child td {
    border-bottom: none;
}

.status-pill-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fef3c7;
    color: #b45309;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.amount-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.amount-cell.justify-end {
    justify-content: flex-end;
}

.amount-cell i {
    color: #ef4444;
    /* red icon for negative or alert */
}

.action-more {
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.action-more:hover {
    color: var(--text-main);
}

/* Notifications Page */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.notifications-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
}
.btn-mark-read {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}
.btn-mark-read:hover {
    color: var(--text-main);
}

.notifications-tabs {
    display: inline-flex;
    background-color: #f3f4f6;
    border-radius: 20px;
    padding: 4px;
    margin-bottom: 24px;
    align-items: center;
}
.ntab {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.ntab.active {
    background-color: #ffffff;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.ntab-count {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.notification-card {
    display: flex;
    align-items: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}
.notification-card.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #ef4444;
}
.nc-avatar-wrapper {
    position: relative;
    margin-right: 16px;
    margin-left: 8px; /* space for the red border */
}
.nc-avatar {
    width: 48px;
    height: 48px;
    background-color: #4db6ac;
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
}
.nc-avatar-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #f3f4f6;
}
.nc-content {
    flex-grow: 1;
}
.nc-title {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 4px;
}
.nc-message {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}
.nc-time {
    font-size: 12px;
    color: #9ca3af;
}
.nc-action {
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    margin-left: 16px;
}

/* --- Settings Page --- */
.sec-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    overflow: hidden;
}
.sec-card-header {
    padding: 20px 24px 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}
.sec-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}
.sec-row:last-child {
    border-bottom: none;
}
.sec-info {
    flex: 1;
    padding-right: 24px;
}
.sec-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}
.sec-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.sec-desc a {
    color: var(--text-muted);
    text-decoration: underline;
    transition: color 0.2s;
}
.sec-desc a:hover {
    color: var(--text-main);
}
.sec-action {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 150px;
}
.sec-value {
    font-size: 14px;
    color: var(--text-main);
}
.btn-sec {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-sec:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}
/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
input:checked + .slider {
    background-color: #4ade80; /* bright green */
}
input:checked + .slider:before {
    transform: translateX(20px);
}

/* Device Item */
.device-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px 24px 24px; /* padding-top 0 because sec-row has border */
}
.device-icon {
    width: 40px;
    height: 40px;
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-main);
}
.device-details {
    flex: 1;
}
.device-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}
.device-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
}
.status-text-green {
    color: #10b981;
    font-weight: 500;
}


/* --- Support Page --- */
.support-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media(min-width: 1024px) {
    .support-container {
        grid-template-columns: 1fr 1fr;
    }
}
.support-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.support-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}
.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.faq-q {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.faq-a {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
/* Form Styles */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}
.form-input, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px var(--primary-blue-light);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}
.btn-submit {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 8px;
    align-self: flex-start;
}
.btn-submit:hover {
    background-color: #4338ca;
}
/* Contact Info */
.contact-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.contact-item i {
    color: var(--primary-blue);
    font-size: 18px;
}


/* --- Login Page --- */
body.login-page {
    font-family: 'Inter', sans-serif;
    background-color: #f9fafb !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
.login-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.login-logo-icon {
    width: 40px;
    height: 40px;
    background-color: #f3f4f6;
    color: var(--text-main);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.login-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 8px;
}
.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 32px;
}
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}
.login-footer a:hover {
    text-decoration: underline;
}

.btn-login {
    background-color: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 8px;
}
.btn-login:hover {
    background-color: #2563eb;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 1rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
