/* Dashboard-specific styles */

/* Dashboard layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--column-gap);
    margin-top: 2rem;
}

/* Support section */
.support-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 1rem;
    background: var(--bg-secondary);
    background-image: url('/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 100%;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
}

.support-text {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    flex: 1 1 300px;
}

.support-text a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.support-text a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Stuck scan alert */
.stuck-scan-alert {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(225, 84, 122, 0.1); /* var(--danger) with opacity */
    border: 1px solid rgba(225, 84, 122, 0.3); /* var(--danger) with opacity */
    border-radius: var(--border-radius);
}

.stuck-scan-alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.stuck-alert-reason {
    margin: 0.75rem 0;
    font-style: italic;
    opacity: 0.9;
}

.stuck-alert-action {
    margin: 1rem 0 0.5rem;
    font-weight: 600;
}

.stuck-alert-actions {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.stuck-alert-actions li {
    margin: 0.25rem 0;
    line-height: 1.5;
}

/* Dashboard sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--column-gap);
}

.sidebar-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Dashboard main content */
.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: var(--column-gap);
}

.main-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

/* Responsive design */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .support-section {
        padding: 0.1rem 0.5rem;
        gap: 0.5rem;
        flex-wrap: nowrap !important;
        align-items: center;
    }

    .support-text {
        flex: 1 1 auto !important;
        margin-bottom: 0 !important;
        text-align: left !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .support-section form {
        width: 100%;
    }

    .stuck-scan-alert {
        padding: 1rem;
        font-size: 0.9375rem;
    }

    .stuck-alert-actions {
        padding-left: 1.25rem;
    }
}

/* Touch optimizations */
@media (hover: none) {
    td a {
        display: inline-block;
        padding: 0.25rem 0;
        min-height: 44px;
        line-height: 2;
    }

    a {
        -webkit-tap-highlight-color: var(--accent-light);
    }
}
