body {
    background-color: var(--background-color);
    background-image: linear-gradient(160deg, #1e2024 0%, #32353a 100%);
}

header .back-link {
    position: absolute;
    top: 25px;
    right: 25px;
    color: var(--text-color);
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

header .back-link:hover {
    background: rgba(255,255,255,0.2);
}

.admin-nav {
    position: absolute;
    top: 25px;
    left: 25px;
}

.admin-nav a {
    color: var(--text-color);
    background: rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.2);
}

#report-list-container {
    width: 100%;
    background: var(--card-bg);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.setup-link-btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.setup-link-btn:hover {
    background-color: #4a4eff;
    box-shadow: 0 0 15px var(--primary-color);
}

.setup-link-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#report-list-container #show-more-btn {
    display: block;
    margin: 20px auto 0;
}

#report-list-container h2 {
    font-family: 'Poppins', sans-serif;
    margin-top: 0;
}

#report-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#report-list th, #report-list td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#report-list th {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

#report-list td {
    color: var(--text-color-muted);
}

#report-list td.url-cell {
    word-break: break-all;
    color: var(--text-color);
    font-weight: bold;
}

#report-list .actions button {
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 10px;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
}

#report-list .actions button.view-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
#report-list .actions button.view-btn:hover {
    background-color: #4a4eff;
}

#report-list .actions button.delete-btn {
    background-color: #C0392B;
    color: white;
    border-color: #C0392B;
}
#report-list .actions button.delete-btn:hover {
    background-color: #E74C3C;
}

@media (max-width: 768px) {
    header .back-link {
        position: static;
        display: inline-block;
        margin-top: 15px;
    }

    header {
        padding-left: 20px;
        padding-right: 20px;
    }

    .admin-nav {
        position: static;
        display: block;
        margin-top: 15px;
        text-align: center;
    }
    
    #report-list table, #report-list thead, #report-list tbody, #report-list th, #report-list td, #report-list tr {
        display: block;
    }
    #report-list thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    #report-list tr {
        border: 1px solid var(--border-color);
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }
    #report-list td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%;
    }
     #report-list td:last-child {
        border-bottom: none;
    }
    #report-list td:before {
        position: absolute;
        top: 50%;
        left: 15px;
        transform: translateY(-50%);
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: bold;
        color: var(--text-color);
        content: attr(data-label);
    }
    
    #report-list .actions button {
        margin-bottom: 5px;
    }
}

@media (prefers-color-scheme: light) {
    body {
        background-image: linear-gradient(160deg, #f9f9f9 0%, #e8eaf6 100%);
    }

    #report-list-container {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .setup-link-btn:hover {
        box-shadow: 0 0 15px rgba(56, 59, 214, 0.4);
    }

    #report-list .actions button {
        background: rgba(0,0,0,0.05);
    }
}

