/* ============================================
   DASHBOARD STYLES - FULL PAGE LAYOUT
   NO EMPTY SPACE - 100% VIEWPORT
   ============================================ */

/* Reset for dashboard pages */
* {
    box-sizing: border-box;
}

body.dashboard-body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    background: var(--bg-primary);
    position: relative;
    box-sizing: border-box;
}

/* Ensure sidebar is always visible when needed */
body.dashboard-body .dashboard-sidebar {
    visibility: visible !important;
}

@media (min-width: 992px) {
    body.dashboard-body .dashboard-sidebar {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Webview specific fixes */
@supports (-webkit-touch-callout: none) {
    body.dashboard-body {
        height: auto;
        min-height: 100vh;
        position: relative;
    }
    
    .dashboard-main {
        min-height: 100vh;
        height: auto;
    }
}

/* ===== SIDEBAR ===== */
.dashboard-sidebar {
    width: 280px;
    background: var(--bg-section) !important;
    background-color: var(--bg-section) !important;
    border-right: 1px solid var(--card-border);
    display: flex !important;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1002 !important;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.dark .dashboard-sidebar {
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.dashboard-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-section);
    z-index: -1;
    opacity: 1;
}

.sidebar-logo {
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-logo:hover {
    background: rgba(30, 58, 138, 0.1);
}

body.dark .sidebar-logo:hover {
    background: rgba(96, 165, 250, 0.1);
}

.sidebar-logo h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-main);
    margin: 0;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.sidebar-nav-item {
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.sidebar-nav-item:hover {
    background: rgba(30, 58, 138, 0.1);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

body.dark .sidebar-nav-item:hover {
    background: rgba(96, 165, 250, 0.1);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

.sidebar-nav-item.active {
    background: rgba(30, 58, 138, 0.15);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

body.dark .sidebar-nav-item.active {
    background: rgba(96, 165, 250, 0.15);
    border-left-color: var(--color-primary);
    color: var(--color-primary);
}

.sidebar-nav-item i {
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--card-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.sidebar-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.875rem;
}

.sidebar-user-info {
    flex: 1;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    margin: 0;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: var(--color-primary);
    margin: 0;
}

.btn-logout {
    width: 100%;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* ===== MAIN CONTENT ===== */
.dashboard-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    padding: 0;
}

/* Top Bar */
.dashboard-topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 24px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 60px;
}

.dashboard-topbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 1px;
}

.dashboard-topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.notification-icon:hover {
    background: rgba(30, 58, 138, 0.1);
    color: var(--color-primary);
}

body.dark .notification-icon:hover {
    background: rgba(96, 165, 250, 0.1);
    color: var(--color-primary);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
    font-weight: 700;
}

/* Content Area */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-primary);
    margin: 0;
    width: 100%;
    min-height: 0;
}

/* ===== CARDS ===== */
.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

body.dark .dashboard-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
    transform: translateY(-2px);
}

body.dark .dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--card-border);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.5px;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.25rem;
}

body.dark .card-icon {
    background: rgba(96, 165, 250, 0.1);
    color: var(--color-primary);
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 24px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    min-width: 600px;
}

.dashboard-table thead {
    background: var(--card-bg);
}

.dashboard-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--card-border);
}

.dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid var(--card-border);
    color: var(--text-main);
    font-size: 0.875rem;
}

.dashboard-table tbody tr:hover {
    background: rgba(30, 58, 138, 0.05);
}

body.dark .dashboard-table tbody tr:hover {
    background: rgba(96, 165, 250, 0.05);
}

/* Buttons */
.btn-dashboard {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-dash {
    background: var(--color-primary);
    color: #FFFFFF;
}

.btn-primary-dash:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

body.dark .btn-primary-dash:hover {
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn-secondary-dash {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-secondary-dash:hover {
    background: rgba(30, 58, 138, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

body.dark .btn-secondary-dash:hover {
    background: rgba(96, 165, 250, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.2);
    color: #fbbf24;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Lists */
.dashboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-list-item {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-list-item > div {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.dashboard-list-item strong {
    display: block;
    color: var(--text-main);
    font-size: 0.875rem;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.dashboard-list-item .text-muted {
    font-size: 0.75rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.dashboard-list-item .btn-dashboard {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: auto;
}

.dashboard-list-item:hover {
    background: rgba(30, 58, 138, 0.05);
}

body.dark .dashboard-list-item:hover {
    background: rgba(96, 165, 250, 0.05);
}

.dashboard-list-item:last-child {
    border-bottom: none;
}

/* Charts Placeholder */
.chart-container {
    height: 300px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.5;
    font-style: italic;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 991px) {
    .dashboard-sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        background: var(--bg-section) !important;
        background-color: var(--bg-section) !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    body.dark .dashboard-sidebar {
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-content {
        padding: 20px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .dashboard-content .row > [class*="col-"] {
        margin-bottom: 20px;
    }
    
    /* Tablet: Center dashboard list items */
    .dashboard-list-item {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        text-align: center;
    }
    
    .dashboard-list-item > div {
        flex: 1 1 auto;
        min-width: 200px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-list-item strong {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        text-align: center;
    }
    
    .dashboard-list-item .text-muted {
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }
    
    .dashboard-list-item .btn-dashboard {
        flex-shrink: 0;
        min-width: 100px;
        margin: 0 auto;
    }
    
    .dashboard-list-item > span {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .dashboard-list-item .badge {
        margin: 0 auto;
    }
    
    .card-header {
        text-align: center;
    }
    
    .card-title {
        text-align: center;
    }
    
    .sidebar-toggle {
        display: block !important;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        color: var(--text-main);
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.25rem;
        margin-right: 12px;
        transition: var(--transition-fast);
    }
    
    .sidebar-toggle:hover {
        background: rgba(30, 58, 138, 0.1);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }
    
    body.dark .sidebar-toggle:hover {
        background: rgba(96, 165, 250, 0.1);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        background: var(--bg-section) !important;
        background-color: var(--bg-section) !important;
        opacity: 1 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    body.dark .dashboard-sidebar {
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .dashboard-topbar {
        padding: 12px 16px;
    }
    
    .dashboard-title {
        font-size: 1.25rem;
    }
    
    .dashboard-content {
        padding: 16px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .dashboard-card {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
    
    .card-title {
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    .card-icon {
        margin: 0 auto;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        text-align: center;
    }
    
    /* Mobile: Center all dashboard list items */
    .dashboard-list-item {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 16px;
        gap: 16px;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 12px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .dashboard-list-item > div {
        width: 100%;
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .dashboard-list-item strong {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.875rem;
        line-height: 1.5;
        text-align: center;
        display: block;
        width: 100%;
        font-weight: 600;
    }
    
    .dashboard-list-item .text-muted {
        white-space: normal;
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.75rem;
        margin-top: 6px;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .dashboard-list-item .btn-dashboard {
        width: auto;
        min-width: 140px;
        text-align: center;
        padding: 12px 24px;
        margin: 0 auto;
        font-weight: 600;
    }
    
    /* Handle span elements (Quick Actions) */
    .dashboard-list-item > span {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        text-align: center;
    }
    
    .dashboard-list-item > span:first-child {
        margin-bottom: 8px;
    }
    
    .dashboard-list-item > span:first-child i {
        margin-right: 8px;
    }
    
    .dashboard-list-item .badge {
        margin: 0 auto;
        display: inline-block;
        text-align: center;
    }
    
    /* Center icons in list items */
    .dashboard-list-item i {
        margin-right: 8px;
    }
    
    /* Ensure all child elements are centered */
    .dashboard-list-item > * {
        text-align: center;
    }
    
    /* Better spacing for mobile */
    .dashboard-list {
        padding: 0;
    }
    
    .dashboard-list-item:first-child {
        padding-top: 20px;
    }
    
    .dashboard-list-item:last-child {
        padding-bottom: 20px;
        border-bottom: none;
        margin-bottom: 0;
    }
    
    /* Improve visual hierarchy */
    .dashboard-list-item:hover {
        background: rgba(30, 58, 138, 0.08);
        border-color: var(--color-primary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    body.dark .dashboard-list-item:hover {
        background: rgba(96, 165, 250, 0.08);
        border-color: var(--color-primary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .dashboard-list {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .sidebar-toggle {
        display: block !important;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
        color: var(--text-main);
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.25rem;
        margin-right: 12px;
        transition: var(--transition-fast);
    }
    
    .sidebar-toggle:hover {
        background: rgba(30, 58, 138, 0.1);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }
    
    body.dark .sidebar-toggle:hover {
        background: rgba(96, 165, 250, 0.1);
        border-color: var(--color-primary);
        color: var(--color-primary);
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Table responsive fixes */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .dashboard-table {
        min-width: 600px;
        width: 100%;
    }
}

.sidebar-toggle {
    display: none;
    border: none;
    background: transparent;
}

@media (min-width: 992px) {
    .sidebar-toggle {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

/* Bootstrap Overrides for Zero Spacing */
body.dashboard-body .container-fluid {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

body.dashboard-body .row {
    margin-left: 0;
    margin-right: 0;
}

body.dashboard-body .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

body.dashboard-body .g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted);
    opacity: 0.8;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }

.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* Webview specific fixes for Downloads section */
@media (max-width: 1024px) {
    .dashboard-list-item {
        padding: 14px;
    }
    
    .dashboard-list-item strong {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .dashboard-list-item .text-muted {
        font-size: 0.75rem;
        margin-top: 6px;
    }
    
    .dashboard-list-item .btn-dashboard.btn-sm {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

/* Ensure downloads card doesn't overflow */
.dashboard-card {
    overflow-x: hidden;
    overflow-y: visible;
}

.dashboard-list {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Fix for webview containers */
.dashboard-content .container-fluid,
.dashboard-content .container {
    max-width: 100%;
    overflow-x: hidden;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dashboard-content .container-fluid,
    .dashboard-content .container {
        padding-left: 0;
        padding-right: 0;
    }
}

