/* 

Theme Name:Theon
Description:JsonFormatterpro.dev
Author:Kuldeep
*/

@font-face {  font-family: Onest;  src: url(http://jsonformatterpro.dev/wp-content/themes/CustomTheme/assets/fonts/Onest-VariableFont_wght.ttf);  font-display:swap; }

@font-face {  font-family: Onest-bold;  src: url(http://jsonformatterpro.dev/wp-content/themes/CustomTheme/assets/fonts/Onest-Bold.ttf); font-display:swap; }

@font-face {  font-family: Onest-black;  src: url(http://jsonformatterpro.dev/wp-content/themes/CustomTheme/assets/fonts/Onest-ExtraBold.ttf); font-display:swap;  }
@font-face {  font-family: Onest-light;  src: url(http://jsonformatterpro.dev/wp-content/themes/CustomTheme/assets/fonts/Onest-ExtraLight.ttf); font-display:swap; }
 :root {
            --bg-primary: #0a0a0f;
            --bg-secondary: #12121a;
            --bg-tertiary: #1a1a25;
            --accent: #10b981;
            --accent-hover: #059669;
            --purple: #8b5cf6;
            --text-primary: #ffffff;
            --text-secondary: #9ca3af;
            --border: #2a2a3a;
            --container-7xl: 94rem;
        }
        
        * {
            font-family: 'Inter', sans-serif;
            box-sizing: border-box;
        }
        
        body {
            background: var(--bg-primary);
            color: var(--text-primary);
        }
        #inputJSON::placeholder
        {
            font-size:14px;
        }
        .mono {
            font-family: 'JetBrains Mono', monospace;
        }
        
        .gradient-bg {
            background: linear-gradient(135deg, #0a0a0f 0%, #0f172a 50%, #0a0a0f 100%);
        }
        
        .glass {
            background: rgba(18, 18, 26, 0.8);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
        }
        
        /* Editor with line numbers */
        .editor-wrapper {
            position: relative;
            display: flex;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
        }
        
        .editor-wrapper:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
        }
        
        .line-numbers {
            padding: 16px 0;
            background: rgba(0, 0, 0, 0.3);
            text-align: right;
            user-select: none;
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            line-height: 1.6;
            color: #4a5568;
            min-width: 50px;
            border-right: 1px solid var(--border);
            overflow: hidden;
        }
        
        .line-numbers div {
            padding: 0 12px;
        }
        
        .line-numbers div.error-line {
            background: rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        
        .editor-textarea {
            flex: 1;
            background: transparent;
            border: none;
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            line-height: 1.6;
            padding: 16px;
            resize: none;
            outline: none;
            color: var(--text-primary);
            min-height: 400px;
        }
        
        .editor-textarea::placeholder {
            color: #4a5568;
        }
        .new-grid-actions
        {
            display: grid;
            grid-template-columns: 1fr 0.3fr 1fr;
            align-items: start;
        }
        .output-area {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            line-height: 1.6;
            padding: 16px;
            overflow: auto;
            min-height: 400px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--accent) 0%, #059669 100%);
            transition: all 0.3s ease;
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
        }
        
        .btn-secondary {
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }
        
        .btn-secondary:hover {
            border-color: var(--accent);
            background: rgba(16, 185, 129, 0.1);
        }
        
        .btn-purple {
            background: linear-gradient(135deg, var(--purple) 0%, #7c3aed 100%);
        }
        
        .btn-purple:hover {
            box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
        }
        
        .btn-blue {
            background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        }
        
        .btn-blue:hover {
            box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
        }
        
        .status-valid {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            color: #10b981;
        }
        
        .status-invalid {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #ef4444;
        }
        
        .status-neutral {
            background: rgba(107, 114, 128, 0.1);
            border: 1px solid rgba(107, 114, 128, 0.3);
            color: #9ca3af;
        }
        
        .status-fixed {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.3);
            color: #a78bfa;
        }
        
        .tab-active {
            background: var(--accent);
            color: white;
        }
        
        .toast {
            animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
        }
        
        @keyframes slideIn {
            from { transform: translateY(100px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        
        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }
        
        .feature-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }
        
        .feature-card:hover {
            border-color: var(--accent);
            transform: translateY(-5px);
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--bg-primary);
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }

        /* Syntax highlighting */
        .json-key { color: #f472b6; }
        .json-string { color: #10b981; }
        .json-number { color: #60a5fa; }
        .json-boolean { color: #f59e0b; }
        .json-null { color: #9ca3af; }
        .json-bracket { color: #e2e8f0; }
        
        /* Tooltip styles */
        .tooltip {
            position: relative;
        }
        
        .tooltip::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #1f2937;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            z-index: 100;
            margin-bottom: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
            border: 1px solid var(--border);
            max-width: 250px;
            white-space: normal;
            text-align: center;
        }
        
        .tooltip:hover::after {
            opacity: 1;
            visibility: visible;
        }
        
        /* Download button animation */
        .download-highlight {
            animation: pulse 2s infinite;
            background: rgba(16, 185, 129, 0.2) !important;
            border-color: var(--accent) !important;
        }
        
        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
            50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
        }
        
        /* Fix report panel */
        .fix-report {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 12px;
            padding: 16px;
            margin-top: 12px;
        }
        
        .fix-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 6px 0;
            font-size: 14px;
        }
        
        .fix-badge {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }
        
        /* History Panel */
        .history-panel {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .history-item {
            padding: 12px;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .history-item:hover {
            background: rgba(16, 185, 129, 0.1);
        }
        
        .history-item:last-child {
            border-bottom: none;
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            align-items: center;
            justify-content: center;
        }
        
        .modal.active {
            display: flex;
        }
        
        .modal-content {
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 24px;
            max-width: 500px;
            width: 90%;
        }
        
        /* New feature badge */
        .new-badge {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 700;
            text-transform: uppercase;
        }
        @media (max-width: 768px) {
            .new-grid-actions
        {
         
            grid-template-columns: 1fr;
            /* align-items: start; */
        }
        }