﻿/* CRUD Tables */
.crud-section {
    background: var(--m8crc-surface-raised);
    border: 1px solid var(--m8crc-border-subtle);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
}

.crud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

    .crud-header h2 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 28px;
        font-weight: 500;
        color: var(--m8crc-text-base);
        margin: 0;
    }

.crud-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.crud-search {
    position: relative;
    width: 300px;
}

    .crud-search input {
        padding-left: 40px;
    }

    .crud-search i {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--m8crc-text-muted);
    }

.crud-table {
    width: 100%;
    border-collapse: collapse;
}

    .crud-table thead th {
        font-family: 'Inter', sans-serif;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        color: var(--m8crc-text-muted);
        text-align: left;
        padding: 12px 16px;
        border-bottom: 2px solid var(--m8crc-border-subtle);
    }

    .crud-table tbody tr {
        border-bottom: 1px solid var(--m8crc-border-subtle);
        transition: background .2s;
    }

        .crud-table tbody tr:hover {
            background: var(--m8crc-surface-overlay);
        }

    .crud-table tbody td {
        font-family: 'Inter', sans-serif;
        font-size: 14px;
        color: var(--m8crc-text-base);
        padding: 16px;
    }

        .crud-table tbody td.actions {
            text-align: right;
        }

            .crud-table tbody td.actions .btn {
                margin-left: 8px;
            }

.crud-empty {
    text-align: center;
    padding: 80px 24px;
}

    .crud-empty i {
        font-size: 64px;
        color: var(--m8crc-text-muted);
        margin-bottom: 16px;
    }

    .crud-empty p {
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        color: var(--m8crc-text-muted);
        margin-bottom: 24px;
    }

/* Modals/Forms */
.form-modal {
    background: var(--m8crc-surface-raised);
    border: 1px solid var(--m8crc-border-subtle);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
}

    .form-modal h3 {
        font-family: 'Cormorant Garamond', serif;
        font-size: 28px;
        font-weight: 500;
        color: var(--m8crc-text-base);
        margin-bottom: 24px;
    }

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    

    .crud-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .crud-search {
        width: 100%;
    }

    .crud-actions {
        width: 100%;
        flex-direction: column;
    }

        .crud-actions .btn {
            width: 100%;
        }

    .crud-table {
        display: block;
        overflow-x: auto;
    }
}