/* Meowtable Base Styles */
.meowtable-container {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f1f2f6;
}

.meowtable-header {
    padding: 20px;
    background: #fcfcff;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meowtable-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.meowtable-filter-select,
.meowtable-per-page,
.meowtable-search {
    font-size: 14px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #4b5563;
    padding: 8px 12px;
    border: 1px solid #edeff5;
    border-radius: 8px;
    background: #fff;
    outline: none;
    transition: all 0.2s ease;
    height: 38px;
    box-sizing: border-box;
    line-height: 1.2 !important;
}

.meowtable-filter-select,
.meowtable-per-page {
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    min-width: 150px;
}

.meowtable-search-wrapper {
    position: relative;
    max-width: 250px;
    width: 100%;
}

.meowtable-search {
    width: 100%;
}

.meowtable-search::placeholder {
    font-size: 14px !important;
    opacity: 0.7;
}

.meowtable-filter-select:focus,
.meowtable-per-page:focus,
.meowtable-search:focus {
    border-color: #6C63FF;
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
}

.meowtable {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    table-layout: auto;
}

.meowtable thead {
    background: linear-gradient(135deg, #6C63FF 0%, #483DF6 100%);
    color: #ffffff;
}

.meowtable th {
    padding: 16px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.meowtable th:first-child {
    border-top-left-radius: 8px;
}

.meowtable th:last-child {
    border-top-right-radius: 8px;
}

.meowtable td {
    padding: 16px;
    font-size: 15px;
    border-bottom: 1px solid #f1f2f6;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: break-word;
}

.meowtable tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.meowtable tbody tr:hover {
    background-color: #f8f9ff;
}

.meowtable a {
    color: #6C63FF;
    text-decoration: none;
    font-weight: 500;
}

.meowtable a:hover {
    text-decoration: underline;
}

/* Interactive elements support */
.meowtable img {
    max-width: 100px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.meowtable button, .meowtable .btn {
    display: inline-block;
    background: linear-gradient(135deg, #6C63FF 0%, #483DF6 100%);
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.2);
}

.meowtable button:hover, .meowtable .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.3);
    background: linear-gradient(135deg, #7b73ff 0%, #5a50f7 100%);
}

/* Pagination Styles */
.meowtable-footer {
    padding: 20px;
    background: #fcfcff;
    border-top: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.meowtable-info {
    font-size: 13px;
    color: #6b7280;
}

.meowtable-pagination-list {
    display: flex !important;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.meowtable-page-btn {
    background: #fff !important;
    color: #6C63FF !important;
    border: 1px solid #edeff5 !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    box-shadow: none !important;
    min-width: 35px;
}

.meowtable-page-btn:hover:not(:disabled) {
    background: #f8f9ff !important;
    border-color: #6C63FF !important;
    transform: none !important;
}

.meowtable-page-btn.active {
    background: #6C63FF !important;
    color: #fff !important;
    border-color: #6C63FF !important;
}

.meowtable-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.meowtable-pagination-dots {
    color: #a0a0a0;
    padding: 0 5px;
}

/* Loader Styles */
.meowtable-container {
    position: relative;
}

.meowtable-loading table {
    opacity: 0.5;
    pointer-events: none;
}

.meowtable-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6C63FF;
    border-radius: 50%;
    animation: meow-spin 1s linear infinite;
    z-index: 10;
}

@keyframes meow-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Header Color Variations */
.meowtable-header-red thead { background: #e74c3c !important; color: #fff !important; }
.meowtable-header-green thead { background: #27ae60 !important; color: #fff !important; }
.meowtable-header-blue thead { background: #2980b9 !important; color: #fff !important; }
.meowtable-header-black thead { background: #2c3e50 !important; color: #fff !important; }
.meowtable-header-none thead { background: transparent !important; color: #333 !important; }
.meowtable-header-none th { border-bottom: 1px solid #f1f2f6 !important; color: #333 !important; }
