/* Modern CSS Reset & Variables */
        :root {
            --bg-950: #09090b;
            --bg-900: #18181b;
            --bg-800: #27272a;
            --zinc-100: #f4f4f5;
            --zinc-200: #e4e4e7;
            --zinc-300: #d4d4d8;
            --zinc-400: #a1a1aa;
            --zinc-500: #71717a;
            --zinc-700: #3f3f46;
            --zinc-800: #27272a;
            --orange-500: #f97316;
            --orange-600: #ea580c;
            --orange-400: #fb923c;
            --radius-xl: 1rem;
            --radius-lg: 0.75rem;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        .tim-dashboard h1,.tim-dashboard h2,.tim-dashboard h3 {
            color: var(--zinc-100)!important;
        }
        #wpbody-content{
            padding-bottom: 0px;
        }
        #wpcontent{
            padding-left: 0px;
        }
        #wpfooter{
            display: none;
        }
        .tim-dashboard {
            font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-950);
            color: var(--zinc-100);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
            overflow-x: hidden;
        }

        /* Layout Structure */
        .tim-dashboard {
            display: flex;
            /* min-height: 100vh; */
        }

        /* Sidebar Navigation */
        .tim-sidebar {
            /* position: fixed; */
            left: 0;
            top: 0;
            /* height: 100%; */
            width: 256px;
            background-color: rgba(24, 24, 27, 0.5);
            backdrop-filter: blur(20px);
            border-right: 1px solid var(--zinc-800);
            z-index: 50;
        }

        .sidebar-brand {
            display: flex;
            items-center: center;
            gap: 12px;
            padding: 24px;
            border-bottom: 1px solid var(--zinc-800);
            align-items: center;
        }

        .brand-icon {
            display: flex;
            height: 40px;
            width: 40px;
            align-items: center;
            justify-content: center;
            border-radius: 0.75rem;
            background-color: var(--orange-500);
            color: white;
            box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
        }

        .brand-name {
            font-size: 1.125rem;
            font-weight: 700;
            letter-spacing: -0.025em;
        }

        .sidebar-nav {
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .nav-button {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 0.5rem;
            border: 1px solid transparent;
            background: transparent;
            color: var(--zinc-400);
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            text-align: left;
        }

        .nav-button:hover {
            background-color: var(--zinc-800);
            color: var(--zinc-200);
        }

        .nav-button.active {
            background-color: rgba(249, 115, 22, 0.1);
            color: var(--orange-500);
            border-color: rgba(249, 115, 22, 0.2);
        }

        .sidebar-footer {
            position: absolute;
            bottom: 24px;
            left: 24px;
            right: 24px;
            padding: 16px;
            border-radius: 0.75rem;
            background: linear-gradient(to bottom right, var(--bg-800), var(--bg-900));
            border: 1px solid rgba(63, 63, 70, 0.5);
        }

        .footer-label { font-size: 0.75rem; color: var(--zinc-500); margin-bottom: 8px; }
        .footer-version { font-size: 0.875rem; font-weight: 600; }
        .pro-badge { 
            font-size: 10px; 
            background: rgba(249, 115, 22, 0.2); 
            color: var(--orange-400); 
            padding: 2px 6px; 
            border-radius: 4px; 
            margin-left: 4px;
        }

        /* Main Content */
        .tim-main {
            /* padding-left: 256px; */
            flex: 1;
        }

        header.tim-header {
            position: sticky;
            top: 0;
            z-index: 40;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 24px 40px;
            background-color: rgba(9, 9, 11, 0.8);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(39, 39, 42, 0.5);
        }

        .breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.75rem;
            color: var(--zinc-500);
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 4px;
        }

        .breadcrumb .active-tab-name { color: var(--zinc-300); font-weight: 700; }

        .page-title {
            font-size: 1.875rem;
            font-weight: 900;
            letter-spacing: -0.025em;
            text-transform: capitalize;
        }

        .save-button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 24px;
            background-color: var(--orange-500);
            color: white;
            border: none;
            border-radius: 9999px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2);
            transition: var(--transition);
        }

        .save-button:hover { background-color: var(--orange-600); transform: translateY(-1px); }
        .save-button:active { transform: scale(0.95); }

        .content-container {
            padding: 40px;
            max-width: 896px; /* max-w-4xl */
        }

        .settings-tab {
            display: none;
            opacity: 0;
            transform: translateY(16px);
            transition: var(--transition);
        }

        .settings-tab.active {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .settings-section {
            background-color: var(--bg-900);
            border: 1px solid var(--zinc-800);
            border-radius: 1.5rem;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            margin-bottom: 32px;
        }

        .section-header {
            padding: 32px;
            border-bottom: 1px solid var(--zinc-800);
            background-color: rgba(24, 24, 27, 0.5);
        }

        .section-header h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
        .section-header p { font-size: 0.875rem; color: var(--zinc-500); }

        .section-body { padding: 32px; }

        /* Form Controls */
        .form-row {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 32px;
            margin-bottom: 32px;
        }

        .form-row:last-child { margin-bottom: 0; }

        .form-label {
            font-size: 0.875rem;
            font-weight: 700;
            color: var(--zinc-400);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            padding-top: 12px;
        }

        .input-group { display: flex; flex-direction: column; gap: 12px; }

        input[type="text"], input[type="number"], select {
            width: 100%;
            background-color: var(--bg-950) !important;
            border: 1px solid var(--zinc-800);
            border-radius: 0.75rem !important;
            padding: 12px 16px !important;
            color: var(--zinc-100) !important;
            font-size: 0.875rem !important;
            transition: var(--transition);
            max-width: unset !important;
        }

        input:focus, select:focus {
            border-color: var(--orange-500);
            outline: none;
            box-shadow: 0 0 0 1px var(--orange-500);
        }

        .field-description { font-size: 0.75rem; color: var(--zinc-500); font-style: italic; }

        .checkbox-group { display: flex; gap: 16px; flex-wrap: wrap; }

        .checkbox-card {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 24px;
            background-color: var(--bg-950);
            border: 1px solid var(--zinc-800);
            border-radius: 1rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .checkbox-card:hover { border-color: rgba(249, 115, 22, 0.5); }

        .checkbox-card input {
            width: 20px;
            height: 20px;
            accent-color: var(--orange-500);
            -webkit-appearance: auto;
        }
        .checkbox-card input::before{
            content: ''!important;
        }
        .checkbox-card span { font-weight: 500; color: var(--zinc-300); }

        .upload-row { display: flex; gap: 12px; }

        .upload-button {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 20px;
            background-color: var(--bg-800);
            border: 1px solid var(--zinc-700);
            color: var(--zinc-200);
            border-radius: 0.75rem;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: var(--transition);
        }

        .upload-button:hover { background-color: var(--zinc-700); }

        /* Color Pickers */
        .color-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 32px;
        }

        .color-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 4px;
        }

        .color-picker-wrapper {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .color-hex { font-family: monospace; font-size: 0.75rem; color: var(--zinc-500); text-transform: uppercase; }

        input[type="color"] {
            -webkit-appearance: none;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 0.75rem;
            background: var(--bg-950);
            border: 1px solid var(--zinc-800);
            cursor: pointer;
            padding: 4px;
        }

        input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
        input[type="color"]::-webkit-color-swatch { border: none; border-radius: 0.5rem; }

        /* Range Slider */
        input[type="range"] {
            -webkit-appearance: none;
            width: 100%;
            height: 8px;
            background: var(--bg-950);
            border-radius: 4px;
            accent-color: var(--orange-500);
        }

        .range-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            font-family: monospace;
            color: var(--zinc-500);
            margin-top: 16px;
        }

        .info-card {
            display: flex;
            gap: 16px;
            padding: 24px;
            background-color: rgba(249, 115, 22, 0.05);
            border: 1px solid rgba(249, 115, 22, 0.1);
            border-radius: 1rem;
            align-items: center;
        }

        .info-icon {
            flex-shrink: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(249, 115, 22, 0.2);
            color: var(--orange-500);
            border-radius: 50%;
        }

        .info-text { font-size: 0.875rem; color: var(--zinc-400); line-height: 1.6; }
        .info-text b { color: var(--orange-400); }
        /* Success Toast Styling */
        .toast-notification {
            position: fixed;
            bottom: 0px;
            right: 32px;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 24px;
            background-color: #064e3b; /* Deep emerald background */
            color: #ecfdf5; /* Light emerald text */
            border: 1px solid #059669; /* Emerald border */
            border-radius: 9999px;
            font-weight: 600;
            font-size: 0.875rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(16, 185, 129, 0.2);
            z-index: 999999;
            transform: translateY(150%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .toast-notification.show {
            transform: translateY(0);
            bottom: 15px;
        }
        .tim-marker-preview{
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 5px;
}
.tim-marker-preview img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tim-marker-preview.is-empty{
  opacity: .45;
}
.tim-marker-preview.is-empty img{
  display:none;
}
.wp-core-ui .button-link-delete {
    color: #d63638;
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 999;
}
.prev-wrapper{
    position: relative;
margin-right:25px ;
}
        /* Animation */
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .tim-sidebar { width: 80px; overflow: hidden; }
            .sidebar-brand span, .nav-button span, .sidebar-footer { display: none; }
            .tim-main { padding-left: 80px; }
            .sidebar-brand { justify-content: center; }
            .nav-button { justify-content: center; padding: 12px; }
        }