﻿/* ===== Admin Table Base Style ===== */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0px 15px 0px;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

    /* Header */
    .admin-table thead {
        background-color: #2c3e50;
        color: #ffffff;
    }

    .admin-table th {
        text-align: left;
        padding: 5px;
        font-weight: 600;
    }

    /* Body */
    .admin-table td {
        padding: 5px;
        border-bottom: 1px solid #eaeaea;
    }

    /* Hover Effect */
    .admin-table tbody tr:hover {
        background-color: #f4f6f9;
    }

    /* Actions Column */
    .admin-table .actions a {
        text-decoration: none;
        margin-right: 10px;
        color: #007bff;
        font-weight: 500;
    }

        .admin-table .actions a:hover {
            text-decoration: underline;
        }

/* Responsive Scroll */
.table-container {
    overflow-x: auto;
}

#imagePickerModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-height: 80vh;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow-y: auto;
    z-index: 2000;
}

.image-picker-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

    .image-picker-header input,
    .image-picker-header select {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 6px;
    }

    .image-picker-header button {
        padding: 8px 14px;
        background: #0070f3;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

#imageList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.image-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .image-card img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 6px;
    }

    /* Hover effect */
    .image-card:hover {
        border-color: #0070f3;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    /* Selected state */
    .image-card.selected {
        border: 2px solid #0070f3;
    }

#modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
}

.select-image-btn {
    margin-top: 8px;
    padding: 8px 14px;
    background: #0070f3;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover */
    .select-image-btn:hover {
        background: #005ecb;
    }

    /* Active click */
    .select-image-btn:active {
        transform: scale(0.98);
    }