.axeasy-storage-frontend {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

.axeasy-frontend-controls {
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.axeasy-search-container {
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.axeasy-per-page-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    white-space: nowrap;
}

.axeasy-per-page-container label {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.axeasy-per-page-select {
    padding: 8px 32px 8px 12px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232d3748' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.axeasy-per-page-select:hover {
    border-color: #0073aa;
}

.axeasy-per-page-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.axeasy-per-page-container span {
    font-size: 15px;
    color: #4a5568;
}

.axeasy-search-box {
    position: relative;
    flex: 1;
}

.axeasy-search-input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    font-size: 18px;
    border: 3px solid #0073aa;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.axeasy-search-input:focus {
    border-color: #005a87;
    box-shadow: 0 4px 12px rgba(0,115,170,0.2);
}

.axeasy-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #0073aa;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
}

.axeasy-search-btn:hover {
    background: #005a87;
    transform: translateY(-50%) scale(1.05);
}

.axeasy-clear-search-btn {
    background: #4a5568;
    color: #fff;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.axeasy-clear-search-btn:hover {
    background: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.axeasy-clear-search-btn svg {
    flex-shrink: 0;
}

/* Bottom Actions Bar - Add Row (left) + Bulk Paste (right) */
.axeasy-bottom-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
}

.axeasy-add-row-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #27ae60;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.axeasy-add-row-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.3);
}

.axeasy-add-row-btn:active {
    transform: translateY(0);
}

.axeasy-add-row-btn svg {
    width: 20px;
    height: 20px;
}

.axeasy-bulk-paste-btn-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.axeasy-bulk-paste-btn-bottom:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.axeasy-bulk-paste-btn-bottom svg {
    width: 20px;
    height: 20px;
}

.axeasy-bulk-paste-btn svg {
    width: 20px;
    height: 20px;
}

/* Bulk Paste Modal */
.axeasy-modal {
    display: none;
    position: fixed;
    z-index: 2147483647;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.axeasy-bulk-modal {
    max-width: 700px;
}

.axeasy-modal-content {
    background-color: #fff;
    margin: 3% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
    position: relative;
    z-index: 2147483647;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.axeasy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #8e44ad;
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    border-radius: 8px 8px 0 0;
}

.axeasy-modal-header h2 {
    margin: 0;
    font-size: 22px;
    color: #fff;
}

.axeasy-modal-close-bulk {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.2s;
}

.axeasy-modal-close-bulk:hover {
    transform: scale(1.2);
}

.axeasy-modal-body {
    padding: 25px;
}

.axeasy-bulk-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #8e44ad;
}

.axeasy-bulk-instructions h3 {
    margin-top: 0;
    color: #2c3338;
    font-size: 16px;
}

.axeasy-bulk-instructions ol {
    margin: 10px 0;
    padding-left: 20px;
}

.axeasy-bulk-instructions li {
    margin: 8px 0;
    color: #646970;
}

.axeasy-bulk-current {
    margin: 15px 0 0 0;
    font-size: 15px;
    color: #2c3338;
}

.axeasy-bulk-current strong {
    color: #8e44ad;
    font-size: 16px;
}

.axeasy-bulk-paste-area {
    margin-top: 20px;
}

.axeasy-bulk-paste-area label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3338;
}

#axeasy-bulk-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.3s;
}

#axeasy-bulk-textarea:focus {
    outline: none;
    border-color: #8e44ad;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.1);
}

.axeasy-bulk-preview {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    color: #2e7d32;
}

#axeasy-preview-count {
    font-size: 20px;
    color: #1b5e20;
}

.axeasy-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    position: relative;
    z-index: 2147483647;
    background: #fff;
}

.axeasy-modal-footer .button {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.axeasy-modal-footer .button-primary {
    background: #8e44ad;
    color: #fff;
    border: none;
}

.axeasy-modal-footer .button-primary:hover {
    background: #7d3c98;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(142, 68, 173, 0.3);
}

.axeasy-modal-footer .button-secondary {
    background: #fff;
    color: #646970;
    border: 2px solid #dcdcde;
}

.axeasy-modal-footer .button-secondary:hover {
    border-color: #8e44ad;
    color: #8e44ad;
}

.axeasy-modal-footer .button-danger {
    background: #dc3232;
    color: #fff;
    border: none;
}

.axeasy-modal-footer .button-danger:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.3);
}

.axeasy-modal-footer .button-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Clear All Modal Styles */
.axeasy-clear-modal {
    max-width: 550px;
}

.axeasy-danger-header {
    background: linear-gradient(135deg, #dc3232 0%, #c0392b 100%);
    border-bottom: 2px solid #a93226;
}

.axeasy-danger-header h2 {
    color: #fff;
    display: flex;
    align-items: center;
}

.axeasy-clear-warning {
    background: #ffebee;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid #dc3232;
    margin-bottom: 20px;
}

.axeasy-clear-warning p {
    margin: 10px 0;
    color: #5d4037;
}

.axeasy-clear-warning strong {
    color: #c0392b;
}

.axeasy-clear-count {
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px !important;
    padding-top: 15px;
    border-top: 2px solid #ffcdd2;
}

.axeasy-clear-count strong {
    font-size: 20px;
    color: #b71c1c;
}

.axeasy-clear-confirm {
    margin-top: 20px;
}

.axeasy-clear-confirm label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2c3338;
}

.axeasy-clear-confirm strong {
    color: #dc3232;
}

#axeasy-confirm-text {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    transition: border-color 0.3s;
}

#axeasy-confirm-text:focus {
    outline: none;
    border-color: #dc3232;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.1);
}

.axeasy-modal-close-clear {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.2s;
}

.axeasy-modal-close-clear:hover {
    transform: scale(1.2);
}

.axeasy-modal-footer .button-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.axeasy-modal-footer .button-danger:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.axeasy-clear-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.axeasy-clear-all-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.axeasy-clear-all-btn:active {
    transform: translateY(0);
}

.axeasy-clear-all-btn svg {
    width: 20px;
    height: 20px;
}

.axeasy-add-row-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.axeasy-add-row-wrapper {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.axeasy-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.axeasy-frontend-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.axeasy-frontend-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #2271b1;
}

.axeasy-frontend-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    position: relative;
    cursor: default;
    white-space: nowrap;
    color: #000;
}

.axeasy-frontend-table th.sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 35px;
}

.axeasy-frontend-table th.sortable:hover {
    background: #e9ecef;
}

.axeasy-frontend-table th.sorted-asc .sort-asc,
.axeasy-frontend-table th.sorted-desc .sort-desc {
    opacity: 1;
}

.sort-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 10px;
}

.sort-indicator span {
    opacity: 0.4;
    transition: opacity 0.2s;
    color: #000;
}

.axeasy-frontend-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
}

.axeasy-frontend-table tbody tr:hover {
    background: #f8f9fa;
}

.axeasy-frontend-table tbody tr:last-child {
    border-bottom: none;
}

.axeasy-frontend-table td {
    padding: 14px 16px;
    color: #2c3338;
}

/* Editable mode */
.axeasy-frontend-table td.editable-cell {
    cursor: text;
    position: relative;
    transition: background 0.2s;
}

.axeasy-frontend-table td.editable-cell:hover {
    background: #f0f6fc;
}

.axeasy-frontend-table td.editable-cell.editing {
    padding: 0;
}

.axeasy-frontend-table td.editable-cell input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #2271b1;
    background: #fff;
    font-size: 15px;
    color: #2c3338;
    font-family: inherit;
    box-sizing: border-box;
}

.axeasy-frontend-table td.editable-cell input:focus {
    outline: none;
    border-color: #135e96;
}

/* ID cell - non-editable, grayed out */
.axeasy-frontend-table td.id-cell {
    background: #f8f9fa;
    color: #6c757d;
    font-weight: 600;
    text-align: center;
    cursor: default;
}

.axeasy-actions-col {
    width: 200px;
    text-align: center;
}

.axeasy-frontend-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.axeasy-action-btn-front {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.axeasy-action-btn-front.save-btn {
    background: #27ae60;
    color: #fff;
}

.axeasy-action-btn-front.save-btn:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(39, 174, 96, 0.3);
}

.axeasy-action-btn-front.cancel-btn {
    background: #95a5a6;
    color: #fff;
}

.axeasy-action-btn-front.cancel-btn:hover {
    background: #7f8c8d;
}

.axeasy-action-btn-front.delete-btn {
    background: #e74c3c;
    color: #fff;
}

.axeasy-action-btn-front.delete-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}

.axeasy-action-btn-front svg {
    width: 14px;
    height: 14px;
}

/* New row indicator */
tr.new-row {
    animation: highlight-row 0.5s ease;
}

@keyframes highlight-row {
    0% { background: #d4edda; }
    100% { background: transparent; }
}

.axeasy-loading {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
}

.axeasy-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(34, 113, 177, 0.2);
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: axeasy-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes axeasy-spin {
    to { transform: rotate(360deg); }
}

.axeasy-load-more-wrapper {
    text-align: center;
    padding: 30px 20px;
}

.axeasy-load-more-btn {
    padding: 12px 30px;
    background: #fff;
    color: #2271b1;
    border: 2px solid #2271b1;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.axeasy-load-more-btn:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.axeasy-load-more-btn:active {
    transform: translateY(0);
}

/* Empty state */
.axeasy-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.axeasy-empty-state svg {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.axeasy-empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3338;
}

.axeasy-empty-state p {
    font-size: 15px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .axeasy-search-box {
        max-width: 100%;
    }
    
    .axeasy-frontend-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .axeasy-search-container {
        min-width: 100%;
    }
    
    .axeasy-per-page-container {
        width: 100%;
        justify-content: center;
    }
    
    .axeasy-frontend-table {
        font-size: 14px;
    }
    
    .axeasy-frontend-table th,
    .axeasy-frontend-table td {
        padding: 12px;
    }
    
    .axeasy-actions-col {
        width: 150px;
    }
    
    .axeasy-frontend-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .axeasy-action-btn-front {
        width: 100%;
        justify-content: center;
    }
    
    /* Bottom actions stack vertically on mobile */
    .axeasy-bottom-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .axeasy-add-row-btn,
    .axeasy-bulk-paste-btn-bottom {
        width: 100%;
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .axeasy-frontend-table th,
    .axeasy-frontend-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .axeasy-search-input,
    .axeasy-search-btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .axeasy-spinner,
    .axeasy-search-btn,
    .axeasy-load-more-btn,
    .axeasy-frontend-table tbody tr {
        animation: none;
        transition: none;
    }
}
