/**
 * Elegant Admin Settings Enhancement
 * Improves the actual admin.php?area=settings interface
 */

/* Enhanced Settings Container */
.tk-area-settings {
    background: #f8fafc;
}

.tk-area-settings > .tk-tab > .tk-content {
    padding: 2rem 2rem 2rem 2.5rem;
    background: #f8fafc;
}

/* Enhanced Setting Cards */
.tk-setting,
.tk-input-setting {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tk-setting::before,
.tk-input-setting::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tk-setting:hover,
.tk-input-setting:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}

.tk-setting:hover::before,
.tk-input-setting:hover::before {
    opacity: 1;
}

.tk-setting:focus-within,
.tk-input-setting:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    transform: translateY(-1px);
}

.tk-setting:focus-within::before,
.tk-input-setting:focus-within::before {
    opacity: 1;
}

/* Setting Borders */
.tk-setting + .tk-setting,
.tk-input-setting + .tk-setting {
    border-top: none;
    padding-top: 1.5rem;
    margin-top: 0;
}

/* Enhanced Setting Content */
.tk-setting > .tk-setting-content,
.tk-input-setting > .tk-setting-content {
    max-width: 480px;
    width: 480px;
    padding-right: 2rem;
}

/* Enhanced Headings */
.tk-setting h2,
.tk-input-setting h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.375rem 0;
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.tk-setting p,
.tk-input-setting p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
    letter-spacing: 0;
}

.tk-setting p .sb-icon-help,
.tk-input-setting p .sb-icon-help {
    color: #94a3b8;
    margin-left: 0.375rem;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.tk-setting p .sb-icon-help:hover,
.tk-input-setting p .sb-icon-help:hover {
    color: #4f46e5;
}

/* ========================================
   ENHANCED FORM CONTROLS
   ======================================== */

/* Beautiful Modern Input Fields */
.tk-setting input:not([type=checkbox]):not([type=radio]),
.tk-setting select,
.tk-setting textarea,
.tk-input-setting input:not([type=checkbox]):not([type=radio]),
.tk-input-setting select,
.tk-input-setting textarea {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.5;
    height: 42px;
    padding: 0 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-weight: 400;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    position: relative;
}

.tk-setting input:not([type=checkbox]):not([type=radio]):hover,
.tk-setting select:hover,
.tk-setting textarea:hover,
.tk-input-setting input:not([type=checkbox]):not([type=radio]):hover,
.tk-input-setting select:hover,
.tk-input-setting textarea:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.tk-setting input:not([type=checkbox]):not([type=radio]):focus,
.tk-setting select:focus,
.tk-setting textarea:focus,
.tk-input-setting input:not([type=checkbox]):not([type=radio]):focus,
.tk-input-setting select:focus,
.tk-input-setting textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12), 0 2px 8px 0 rgba(79, 70, 229, 0.1);
    outline: none;
    transform: translateY(-1px);
    background: #fafbff;
}

/* Enhanced Textarea */
.tk-setting textarea,
.tk-input-setting textarea {
    min-height: 110px;
    padding: 0.875rem 1rem;
    line-height: 1.6;
    resize: vertical;
    border-radius: 12px;
}

/* Beautiful Select Dropdowns */
.tk-setting select,
.tk-input-setting select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    appearance: none;
}

.tk-setting select:focus,
.tk-input-setting select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234f46e5' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Enhanced Number Inputs */
.tk-setting input[type=number],
.tk-input-setting input[type=number] {
    padding-right: 0.5rem;
}

/* Input Groups with Icons */
.tk-setting .input-group,
.tk-input-setting .input-group {
    position: relative;
}

.tk-setting .input-group .input-icon,
.tk-input-setting .input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 2;
}

.tk-setting .input-group input,
.tk-input-setting .input-group input {
    padding-left: 2.75rem;
}

.tk-setting .input-group input:focus + .input-icon,
.tk-input-setting .input-group input:focus + .input-icon {
    color: #4f46e5;
}

/* Floating Label Effect */
.tk-setting .floating-label-group,
.tk-input-setting .floating-label-group {
    position: relative;
    margin-top: 1rem;
}

.tk-setting .floating-label-group input,
.tk-input-setting .floating-label-group input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    border-radius: 0;
    padding: 0.75rem 0 0.25rem 0;
    font-size: 1rem;
}

.tk-setting .floating-label-group label,
.tk-input-setting .floating-label-group label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    color: #94a3b8;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: left top;
}

.tk-setting .floating-label-group input:focus + label,
.tk-setting .floating-label-group input:not(:placeholder-shown) + label,
.tk-input-setting .floating-label-group input:focus + label,
.tk-input-setting .floating-label-group input:not(:placeholder-shown) + label {
    transform: translateY(-1.25rem) scale(0.75);
    color: #4f46e5;
    font-weight: 500;
}

.tk-setting .floating-label-group input:focus,
.tk-input-setting .floating-label-group input:focus {
    border-bottom-color: #4f46e5;
    background: transparent;
}

/* Input Animation Effects */
@keyframes inputFocus {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    }
}

.tk-setting input:not([type=checkbox]):not([type=radio]):focus,
.tk-setting select:focus,
.tk-setting textarea:focus,
.tk-input-setting input:not([type=checkbox]):not([type=radio]):focus,
.tk-input-setting select:focus,
.tk-input-setting textarea:focus {
    animation: inputFocus 0.3s ease-out;
}

/* Enhanced Labels */
.tk-setting label,
.tk-input-setting label {
    color: #475569;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0 1.5rem 1rem 0;
    letter-spacing: -0.01em;
}

/* ========================================
   CLEAN SIMPLE CHECKBOXES
   ======================================== */

/* Beautiful Modern Checkboxes */
.tk-setting input[type=checkbox],
.tk-input-setting input[type=checkbox] {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    position: relative;
    cursor: pointer;
    appearance: none;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tk-setting input[type=checkbox]:hover,
.tk-input-setting input[type=checkbox]:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.15);
    transform: scale(1.05);
}

.tk-setting input[type=checkbox]:checked,
.tk-input-setting input[type=checkbox]:checked {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tk-setting input[type=checkbox]:checked:hover,
.tk-input-setting input[type=checkbox]:checked:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.tk-setting input[type=checkbox]:focus,
.tk-input-setting input[type=checkbox]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

/* Alternative: Toggle Switch Style Checkboxes */
.tk-setting input[type=checkbox].toggle-style,
.tk-input-setting input[type=checkbox].toggle-style {
    width: 44px;
    height: 24px;
    border-radius: 24px;
    background: #e2e8f0;
    border: none;
    position: relative;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tk-setting input[type=checkbox].toggle-style:before,
.tk-input-setting input[type=checkbox].toggle-style:before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tk-setting input[type=checkbox].toggle-style:checked,
.tk-input-setting input[type=checkbox].toggle-style:checked {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.tk-setting input[type=checkbox].toggle-style:checked:before,
.tk-input-setting input[type=checkbox].toggle-style:checked:before {
    left: 22px;
    background: #ffffff;
}

.tk-setting input[type=checkbox].toggle-style:hover,
.tk-input-setting input[type=checkbox].toggle-style:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tk-setting input[type=checkbox].toggle-style:focus,
.tk-input-setting input[type=checkbox].toggle-style:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Enhanced Upload Images */
.tk-setting.tk-type-upload-image .image,
.tk-setting [data-type=upload-image] .image,
.tk-input-setting.tk-type-upload-image .image,
.tk-input-setting [data-type=upload-image] .image {
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
    height: 160px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.tk-setting.tk-type-upload-image .image:hover,
.tk-setting [data-type=upload-image] .image:hover,
.tk-input-setting.tk-type-upload-image .image:hover,
.tk-input-setting [data-type=upload-image] .image:hover {
    border-color: #4f46e5;
    background: #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(79, 70, 229, 0.1);
}

.tk-setting.tk-type-upload-image .image:before,
.tk-setting [data-type=upload-image] .image:before,
.tk-input-setting.tk-type-upload-image .image:before,
.tk-input-setting [data-type=upload-image] .image:before {
    color: #94a3b8;
    font-size: 1.5rem;
}

.tk-setting.tk-type-upload-image .image:hover:before,
.tk-setting [data-type=upload-image] .image:hover:before,
.tk-input-setting.tk-type-upload-image .image:hover:before,
.tk-input-setting [data-type=upload-image] .image:hover:before {
    color: #4f46e5;
}

/* Enhanced Color Inputs */
.tk-setting.tk-type-color .input:after,
.tk-input-setting.tk-type-color .input:after {
    border-radius: 0 6px 6px 0;
    width: 36px;
    height: 38px;
}

/* Enhanced Multi-Input */
.tk-setting.tk-type-multi-input .input > div,
.tk-input-setting.tk-type-multi-input .input > div {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

/* Enhanced Repeater */
.tk-setting .repeater-item + .repeater-item,
.tk-input-setting .repeater-item + .repeater-item {
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.tk-setting .repeater-item > i,
.tk-input-setting .repeater-item > i {
    right: -2rem;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tk-setting .repeater-item > i:hover,
.tk-input-setting .repeater-item > i:hover {
    background: #dc2626;
    color: #ffffff;
    transform: scale(1.1);
}

/* Enhanced Select Images */
.tk-setting.tk-type-select-images .input,
.tk-input-setting.tk-type-select-images .input {
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
}

.tk-setting.tk-type-select-images .input > div,
.tk-input-setting.tk-type-select-images .input > div {
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.tk-setting.tk-type-select-images .input > div:hover,
.tk-setting.tk-type-select-images .input > div.tk-active:not(.sb-icon-close),
.tk-input-setting.tk-type-select-images .input > div:hover,
.tk-input-setting.tk-type-select-images .input > div.tk-active:not(.sb-icon-close) {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    opacity: 1;
    transform: translateY(-2px);
}

/* ========================================
   BEAUTIFUL ENHANCED BUTTONS
   ======================================== */

/* Enhanced Buttons */
.tk-area-settings .tk-tab .tk-btn,
.tk-btn-white {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tk-area-settings .tk-tab .tk-btn::before,
.tk-btn-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.tk-area-settings .tk-tab .tk-btn:hover,
.tk-btn-white:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-color: #4f46e5;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.2);
}

.tk-area-settings .tk-tab .tk-btn:hover::before,
.tk-btn-white:hover::before {
    left: 100%;
}

.tk-area-settings .tk-tab .tk-btn:active,
.tk-btn-white:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

/* Primary Button Style */
.tk-area-settings .tk-tab .tk-btn.primary,
.tk-btn-white.primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border-color: #4f46e5;
    color: #ffffff;
}

.tk-area-settings .tk-tab .tk-btn.primary:hover,
.tk-btn-white.primary:hover {
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    box-shadow: 0 6px 16px -4px rgba(79, 70, 229, 0.4);
    transform: translateY(-3px);
}

/* Danger Button Style */
.tk-area-settings .tk-tab .tk-btn.danger,
.tk-btn-white.danger {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-color: #dc2626;
    color: #ffffff;
}

.tk-area-settings .tk-tab .tk-btn.danger:hover,
.tk-btn-white.danger:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.4);
    transform: translateY(-3px);
}

/* Success Button Style */
.tk-area-settings .tk-tab .tk-btn.success,
.tk-btn-white.success {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: #059669;
    color: #ffffff;
}

.tk-area-settings .tk-tab .tk-btn.success:hover,
.tk-btn-white.success:hover {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.4);
    transform: translateY(-3px);
}

/* Enhanced Language Switcher */
.tk-setting .tk-language-switcher-cnt,
.tk-type-multi-input > .input > div:not(.multi-input-textarea),
.tk-select-checkbox > div {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    gap: 1rem;
}

/* Responsive Improvements */
@media (max-width: 1250px) {
    .tk-setting > .tk-setting-content,
    .tk-input-setting > .tk-setting-content {
        max-width: 100%;
        width: 100%;
        padding-right: 0;
        margin-bottom: 1rem;
    }
    
    .tk-setting,
    .tk-input-setting {
        flex-direction: column;
    }
    
    .tk-area-settings > .tk-tab > .tk-content {
        padding: 1rem;
    }
}

/* Animation Enhancement */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tk-setting,
.tk-input-setting {
    animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.tk-setting:nth-child(1) { animation-delay: 0s; }
.tk-setting:nth-child(2) { animation-delay: 0.04s; }
.tk-setting:nth-child(3) { animation-delay: 0.08s; }
.tk-setting:nth-child(4) { animation-delay: 0.12s; }
.tk-setting:nth-child(5) { animation-delay: 0.16s; }
.tk-setting:nth-child(6) { animation-delay: 0.2s; }

/* Loading States */
.tk-setting .tk-loading:not(.tk-btn),
.tk-input-setting .tk-loading:not(.tk-btn) {
    border-radius: 50%;
    border: 2px solid #f1f5f9;
    border-top-color: #4f46e5;
}

/* ========================================
   ENHANCED SETTINGS NAVIGATION MENU
   ======================================== */

/* Enhanced Settings Navigation Container */
.tk-area-settings > .tk-tab > .tk-nav {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    margin-right: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    min-width: 240px;
    overflow: visible;
}

/* Enhanced Navigation List */
.tk-area-settings > .tk-tab > .tk-nav > ul {
    display: block !important;
    padding: 0 0.75rem;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    position: static;
}

/* Enhanced Navigation Items */
.tk-area-settings > .tk-tab > .tk-nav > ul li {
    margin: 0 0 0.25rem 0 !important;
    padding: 0;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li:last-child {
    margin-bottom: 0;
}

/* Navigation Link Styling */
.tk-area-settings > .tk-tab > .tk-nav > ul li {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0.75rem 1rem;
    color: #64748b;
    cursor: pointer;
    background: transparent;
    border: none;
    display: block;
    text-decoration: none;
}

/* Hover Effects */
.tk-area-settings > .tk-tab > .tk-nav > ul li:hover {
    background: #f8fafc;
    color: #0f172a;
    transform: translateX(4px);
    border-left: 3px solid #e2e8f0;
    padding-left: calc(1rem - 3px);
}

/* Active State */
.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-active {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 0 2px 4px -1px rgba(79, 70, 229, 0.3);
    border-left: none;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-active:hover {
    background: linear-gradient(135deg, #3730a3, #4f46e5);
    color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

/* Icons in Navigation (if any) */
.tk-area-settings > .tk-tab > .tk-nav > ul li img {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li:hover img,
.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-active img {
    opacity: 1;
}

/* Navigation Titles/Categories */
.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-tab-nav-title {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 1rem 0 0.5rem 0;
    cursor: default;
    background: transparent !important;
    transform: none !important;
    border: none !important;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-tab-nav-title:first-child {
    margin-top: 0;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-tab-nav-title + li.tk-tab-nav-title {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
}

/* Smooth Animations for Navigation Items */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tk-area-settings > .tk-tab > .tk-nav > ul li {
    animation: slideInLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(1) { animation-delay: 0s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(2) { animation-delay: 0.03s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(3) { animation-delay: 0.06s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(4) { animation-delay: 0.09s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(5) { animation-delay: 0.12s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(6) { animation-delay: 0.15s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(7) { animation-delay: 0.18s; }
.tk-area-settings > .tk-tab > .tk-nav > ul li:nth-child(8) { animation-delay: 0.21s; }

/* Scrollbar Enhancement for Navigation */
.tk-area-settings > .tk-tab > .tk-nav::-webkit-scrollbar {
    width: 4px;
}

.tk-area-settings > .tk-tab > .tk-nav::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 2px;
}

.tk-area-settings > .tk-tab > .tk-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.tk-area-settings > .tk-tab > .tk-nav::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Responsive Navigation Enhancements */
@media (max-width: 1024px) {
    .tk-area-settings > .tk-tab > .tk-nav {
        min-width: 200px;
        margin-right: 1rem;
    }
    
    .tk-area-settings > .tk-tab > .tk-nav > ul li {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
}

@media (max-width: 768px) {
    .tk-area-settings > .tk-tab > .tk-nav {
        margin-right: 0;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .tk-area-settings > .tk-tab > .tk-nav > ul {
        padding: 0 0.5rem;
    }
    
    .tk-area-settings > .tk-tab > .tk-nav > ul li {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.125rem;
    }
    
    .tk-area-settings > .tk-tab > .tk-nav > ul li:hover,
    .tk-area-settings > .tk-tab > .tk-nav > ul li.tk-active {
        transform: none;
        border-left: none;
        padding-left: 0.75rem;
    }
}

/* Focus States for Accessibility */
.tk-area-settings > .tk-tab > .tk-nav > ul li:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    background: #f8fafc;
    color: #0f172a;
}

.tk-area-settings > .tk-tab > .tk-nav > ul li.tk-active:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}