

/* Pagination Design */
#pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 4px;
}

#pagination li a {
    display: block;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
}

#pagination li a:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

#pagination li a.active {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

#pagination li a.disabled {
    pointer-events: none;
    opacity: 0.5;
}



/* Modal background */
#cropModal {
    display: none;
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

/* Modal content */
#cropContainer {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

/* Crop area overlay blur */
#imgContainer {
    width: 400px;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin: auto;
    border: 2px dashed #ccc;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
}

/* Buttons */
button {
    margin-top: 10px;
    padding: 8px 15px;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#cropBtn { background: #28a745; }
#closeBtn { background: #dc3545; }

#croppedResult {
    margin-top: 20px;
    max-width: 200px;
    border: 1px solid #ccc;
}

.icon-16 {
    width: 16px;
    height: 16px;
}
.icon-20 {
    width: 20px;
    height: 20px;
}
.icon-24 {
    width: 24px;
    height: 24px;
}

/* ==========================
   Clean Feather Icon Buttons
   ========================== */

.btn-icon {
    /* Layout */
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* Appearance */
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #6c757d;
    
    /* Effects */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Other */
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    transition: transform 0.2s ease-out;
}

/* ==========================
   Interactive States
   ========================== */

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #495057;
    background: rgba(0, 0, 0, 0.02);
}

.btn-icon:hover svg {
    transform: scale(1.05);
}

.btn-icon:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition-duration: 0.1s;
}

/* ==========================
   Color Variants - Clean & Subtle
   ========================== */

.btn-icon.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.btn-icon.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.btn-icon.success {
    background: linear-gradient(135deg, #51cf66 0%, #2b8a3e 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(81, 207, 102, 0.3);
}

.btn-icon.danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.btn-icon.warning {
    background: linear-gradient(135deg, #ffd43b 0%, #f08c00 100%);
    color: #2b2d42;
    box-shadow: 0 2px 6px rgba(255, 212, 59, 0.3);
}

.btn-icon.info {
    background: linear-gradient(135deg, #4dabf7 0%, #1971c2 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(77, 171, 247, 0.3);
}

.btn-icon.dark {
    background: linear-gradient(135deg, #495057 0%, #212529 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(33, 37, 41, 0.3);
}

.btn-icon.light {
    background: white;
    color: #495057;
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Hover states for colored buttons */
.btn-icon.primary:hover,
.btn-icon.secondary:hover,
.btn-icon.success:hover,
.btn-icon.danger:hover,
.btn-icon.warning:hover,
.btn-icon.info:hover,
.btn-icon.dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.btn-icon.light:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* ==========================
   Size Variants - Proportional
   ========================== */

.btn-icon.sm {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.btn-icon.sm svg {
    width: 16px;
    height: 16px;
}

.btn-icon.lg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.btn-icon.lg svg {
    width: 22px;
    height: 22px;
}

.btn-icon.xl {
    width: 52px;
    height: 52px;
    border-radius: 12px;
}

.btn-icon.xl svg {
    width: 24px;
    height: 24px;
}

/* ==========================
   Shape Variants
   ========================== */

.btn-icon.rounded {
    border-radius: 50%;
}

.btn-icon.pill {
    border-radius: 20px;
}

.btn-icon.flat {
    box-shadow: none;
    border: 1px solid #e9ecef;
}

.btn-icon.flat:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ==========================
   Animation Variants - Subtle
   ========================== */

.btn-icon.bounce:hover {
    animation: iconBounce 0.5s ease;
}

.btn-icon.pulse:hover {
    animation: iconPulse 2s infinite;
}

.btn-icon.spin:hover svg {
    animation: iconSpin 1s ease-out;
}

@keyframes iconBounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-3px); }
    80% { transform: translateY(-1px); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================
   State Variants
   ========================== */

.btn-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.btn-icon:focus:not(:focus-visible) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* ==========================
   Special Variants
   ========================== */

/* Ghost buttons - minimal appearance */
.btn-icon.ghost {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    color: #6c757d;
}

.btn-icon.ghost:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #495057;
}

/* Outline buttons */
.btn-icon.outline {
    background: transparent;
    border: 1px solid currentColor;
    box-shadow: none;
}

.btn-icon.outline.primary { color: #667eea; }
.btn-icon.outline.secondary { color: #6c757d; }
.btn-icon.outline.success { color: #51cf66; }
.btn-icon.outline.danger { color: #ff6b6b; }
.btn-icon.outline.warning { color: #ffd43b; }
.btn-icon.outline.info { color: #4dabf7; }
.btn-icon.outline.dark { color: #495057; }

.btn-icon.outline:hover {
    background: currentColor;
    color: white;
}

.search-item {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
    border-radius: 5px;
    margin-bottom: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-item strong {
    color: #333;
}
.search-item:hover {
    background: #f0f8ff;
    cursor: pointer;
}

/* Enhanced Font Styles */
/* Enhanced Font Styles */
.side-nav {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 2px 8px;
}

.menu-item:hover {
    background-color: rgba(59, 130, 246, 0.08);
    transform: translateX(4px);
}

.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.icon-base {
    width: 18px;
    height: 18px;
    stroke: #6b7280;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.3s ease;
}

.menu-item:hover .icon-base {
    stroke: #3b82f6;
    transform: scale(1.05);
}

.menu-text {
    font-weight: 500;
    font-size: 14px;
    color: #374151;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    flex: 1;
}

.menu-item:hover .menu-text {
    color: #3b82f6;
    font-weight: 600;
}

/* Menu Arrow - Single Chevron Style */
.menu-arrow {
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.icon-arrow {
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

.menu-item:hover .icon-arrow {
    stroke: #3b82f6;
}

[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
}

[aria-expanded="true"] .icon-arrow {
    stroke: #3b82f6;
}

/* Sub-menu Styles */
.sub-menu {
    padding-left: 24px;
    margin: 4px 0;
}

.sub-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 13.5px;
    margin: 1px 8px;
    color: #6b7280;
}

.sub-menu-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
    color: #3b82f6;
    transform: translateX(2px);
}

.sub-menu-item .menu-text {
    font-weight: 400;
    font-size: 13.5px;
    color: inherit;
}

/* Active State */
.side-nav-link.active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.side-nav-link.active .icon-base {
    stroke: white;
}

.side-nav-link.active .menu-text {
    color: white;
    font-weight: 600;
}

.side-nav-link.active .icon-arrow {
    stroke: white;
}

/* Section Title */
.side-nav-title {
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 24px 8px;
    margin-bottom: 8px;
}

/* Collapse Animation */
.collapse {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsing {
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-item {
        padding: 14px 16px;
    }
    
    .menu-icon {
        margin-right: 10px;
    }
    
    .menu-text {
        font-size: 15px;
    }
}

/* Scrollbar Styling */
.scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.scrollbar::-webkit-scrollbar {
    width: 4px;
}

.scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 4px;
}

.scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #d1d5db;
}

