/**
 * Aicoso Wishlist Admin Dashboard Styles
 * Custom unique design system
 */

/* Reset and Base Styles */
.aicoso-wishlist-admin * {
    box-sizing: border-box;
}

.aicoso-wishlist-admin {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f7 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
}

/* Header */
.aicoso-header {
    background: linear-gradient(90deg, #ffffff 0%, #fcfcfd 100%);
    padding: 24px 36px;
    border-bottom: 2px solid #e8eaed;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: visible;
    position: relative;
    z-index: 10;
}

.aicoso-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: visible;
}

.aicoso-logo .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    color: #8b5cf6;
    display: inline-block;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(139, 92, 246, 0.2));
    /* Remove gradient text effect that causes visibility issues */
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
}

.aicoso-logo h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.5px;
}

/* Container Layout */
.aicoso-admin-container {
    display: flex;
    background: transparent;
    min-height: calc(100vh - 110px);
    gap: 2px;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

/* Sidebar */
.aicoso-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-right: none;
    padding: 25px 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.03);
}

.aicoso-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aicoso-nav li {
    margin: 0 8px 4px 8px;
}

.aicoso-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 10px;
    margin: 0 8px;
}

.aicoso-nav a:hover {
    color: #5850ec;
    background: rgba(88, 80, 236, 0.06);
    transform: translateX(4px);
}

.aicoso-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #5850ec 0%, #8b5cf6 100%);
    box-shadow: 0 4px 12px rgba(88, 80, 236, 0.25);
}

.aicoso-nav a.active::before {
    display: none;
}

.aicoso-nav .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.aicoso-nav a.active .dashicons {
    opacity: 1;
}

.aicoso-collapse {
    margin-top: 30px;
    border-top: 2px solid #f3f4f6;
    padding-top: 25px !important;
}

/* Main Content */
.aicoso-main-content {
    flex: 1;
    padding: 35px 45px;
    background: transparent;
}

/* Tabs */
.aicoso-tabs {
    display: flex;
    gap: 35px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2px;
}

.aicoso-tab {
    padding: 14px 4px;
    color: #9ca3af;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.aicoso-tab:hover {
    color: #6366f1;
}

.aicoso-tab.active {
    color: #5850ec;
}

.aicoso-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #5850ec 0%, #8b5cf6 100%);
    border-radius: 2px 2px 0 0;
}

/* Content Header */
.aicoso-content-header {
    margin-bottom: 35px;
    padding: 20px;
    background: rgba(255,255,255,0.5);
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.aicoso-content-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.8px;
}

.aicoso-content-header .description {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Filter Tabs */
.aicoso-filter-tabs {
    display: flex;
    gap: 28px;
    margin-bottom: 28px;
    padding: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(249,250,251,0.9) 100%);
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.aicoso-filter-tabs a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
}

.aicoso-filter-tabs a:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.aicoso-filter-tabs a.active {
    color: #5850ec;
    background: rgba(88, 80, 236, 0.12);
}

.aicoso-filter-tabs .count {
    color: #9ca3af;
    font-weight: 500;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Actions Bar */
.aicoso-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.aicoso-bulk-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.aicoso-bulk-actions select {
    padding: 8px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    min-width: 160px;
    transition: border-color 0.2s;
}

.aicoso-bulk-actions select:focus {
    outline: none;
    border-color: #8b5cf6;
}

.aicoso-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.aicoso-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

.aicoso-search-box form {
    display: flex;
    gap: 12px;
}

.aicoso-search-box input[type="search"] {
    padding: 8px 16px;
    padding-left: 36px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 14px;
    width: 280px;
    transition: all 0.3s;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="%239ca3af"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>') no-repeat 12px center;
    background-size: 18px;
}

.aicoso-search-box input[type="search"]:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.aicoso-btn-search {
    background: #ffffff !important;
    color: #6366f1 !important;
    border: 2px solid #6366f1 !important;
    padding: 8px 20px !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aicoso-btn-search:hover {
    background: #6366f1 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Pagination Info */
.aicoso-pagination-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
}

.aicoso-pagination-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.aicoso-pagination-controls a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    text-decoration: none;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.aicoso-pagination-controls a:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.aicoso-pagination-controls .page-info {
    padding: 0 16px;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
}

/* Table Container */
.aicoso-table-container {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* Wishlist Table */
.aicoso-wishlist-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.aicoso-wishlist-table thead {
    background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid #e5e7eb;
}

.aicoso-wishlist-table th {
    padding: 16px 18px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.aicoso-wishlist-table th.check-column {
    width: 50px;
    text-align: center;
    padding-left: 20px;
    padding-right: 10px;
}

.aicoso-wishlist-table th.column-name {
    width: 20%;
    min-width: 180px;
}

.aicoso-wishlist-table th.column-username {
    width: 22%;
    min-width: 200px;
}

.aicoso-wishlist-table th.column-privacy {
    width: 15%;
    min-width: 120px;
}

.aicoso-wishlist-table th.column-items {
    width: 18%;
    min-width: 150px;
}

.aicoso-wishlist-table th.column-date {
    width: 25%;
    min-width: 180px;
}

.aicoso-wishlist-table th a.sortable {
    color: #475569;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.aicoso-wishlist-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aicoso-wishlist-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
}

.aicoso-wishlist-table tbody tr:nth-child(even) {
    background: rgba(249, 250, 251, 0.5);
}

.aicoso-wishlist-table td {
    padding: 18px;
    font-size: 14px;
    color: #111827;
    vertical-align: middle;
}

.aicoso-wishlist-table td.check-column {
    width: 50px;
    text-align: center;
    padding-left: 20px;
    padding-right: 10px;
}

.aicoso-wishlist-table td.column-name {
    width: 20%;
    min-width: 180px;
}

.aicoso-wishlist-table td.column-username {
    width: 22%;
    min-width: 200px;
}

.aicoso-wishlist-table td.column-privacy {
    width: 15%;
    min-width: 120px;
}

.aicoso-wishlist-table td.column-items {
    width: 18%;
    min-width: 150px;
    text-align: left;
}

.aicoso-wishlist-table td.column-date {
    width: 25%;
    min-width: 180px;
}

.aicoso-wishlist-table .no-items {
    text-align: center;
    color: #64748b;
    padding: 40px;
}

/* Wishlist Link */
.wishlist-link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

.wishlist-link:hover {
    color: #4f46e5;
    transform: translateX(2px);
}

.wishlist-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s;
}

.wishlist-link:hover::after {
    width: 100%;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-info img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Privacy Badge */
.privacy-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.privacy-public {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.privacy-shared {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.privacy-private {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* Item Count */
.item-count {
    display: inline-block;
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aicoso-admin-container {
        flex-direction: column;
    }
    
    .aicoso-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e1e4e8;
    }
    
    .aicoso-main-content {
        padding: 20px;
    }
    
    .aicoso-actions-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .aicoso-search-box input[type="search"] {
        width: 100%;
    }
}

/* Sorting Indicator */
.sorting-indicator {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #94a3b8;
    margin-left: 4px;
}

.sorting-indicator.asc {
    border-top: none;
    border-bottom: 4px solid #0073aa;
}

.sorting-indicator.desc {
    border-top: 4px solid #0073aa;
}

/* Checkbox Styles */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Collapsed Sidebar Styles */
.aicoso-sidebar.collapsed {
    width: 60px;
    transition: width 0.3s ease;
}

.aicoso-sidebar.collapsed .aicoso-nav a {
    padding: 12px 18px;
    justify-content: center;
}

.aicoso-sidebar.collapsed .aicoso-nav a span:not(.dashicons) {
    display: none;
}

.aicoso-sidebar.collapsed .aicoso-nav .dashicons {
    margin: 0;
}

.aicoso-main-content.expanded {
    transition: margin-left 0.3s ease;
}

/* Loading State */
.aicoso-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-radius: 50%;
    border-top: 3px solid #0073aa;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hover Effects */
.aicoso-wishlist-table tbody tr {
    cursor: pointer;
    position: relative;
}

.aicoso-wishlist-table tbody tr::before {
    
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.1;
}

.aicoso-wishlist-table tbody tr:hover::before {
    width: 4px;
}

.aicoso-wishlist-table tbody tr:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

/* Button hover effects */
.button, .aicoso-btn-primary, .aicoso-btn-search {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.button::before, .aicoso-btn-primary::before, .aicoso-btn-search::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.button:hover::before, .aicoso-btn-primary:hover::before, .aicoso-btn-search:hover::before {
    width: 300px;
    height: 300px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
.aicoso-wishlist-admin ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.aicoso-wishlist-admin ::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.aicoso-wishlist-admin ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 10px;
}

.aicoso-wishlist-admin ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5 0%, #7c3aed 100%);
}