/**
 * Download_XH Stylesheet - Admin Interface Only
 * 
 * Frontend styling is handled by the CMSimple_XH template
 * 
 * @version 1.1
 * @author Jan van der Mars
 * @copyright 2025 Jan van der Mars
 * @license GPL3
 */

/* Admin Page */
.download_xh_actions {
    margin-bottom: 20px;
}

.download_xh_action_form {
    display: inline-block;
    margin-right: 10px;
}

/* Admin Action Buttons */
.download_xh_admin_button {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.download_xh_button_export {
    background: #28a745;
}

.download_xh_button_export:hover {
    background: #218838;
}

.download_xh_button_reset {
    background: #dc3545;
}

.download_xh_button_reset:hover {
    background: #c82333;
}

/* Statistics Box */
.download_xh_stats_box {
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download_xh_stats_grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.download_xh_stat_item {
    flex: 1;
}

.download_xh_stat_number {
    font-size: 32px;
    font-weight: bold;
}

.download_xh_stat_label {
    font-size: 14px;
}

/* Chart */
.download_xh_chart {
    margin-bottom: 40px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download_xh_chart_item {
    margin-bottom: 15px;
}

.download_xh_chart_header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.download_xh_chart_filename {
    font-weight: 500;
    color: #495057;
}

.download_xh_chart_count {
    font-weight: bold;
}

.download_xh_chart_bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 24px;
    overflow: hidden;
}

.download_xh_chart_fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Table */
.download_xh_table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.download_xh_table thead tr {
    background: #f8f9fa;
}

.download_xh_table th {
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
}

.download_xh_table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.download_xh_table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.download_xh_table tbody tr:hover {
    background: #e9ecef;
}
