:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #ff6b8b; /* Warm pink */
    --accent-color-hover: #ff5177;
    --accent-secondary: #ffac6b; /* Warm orange */
    --background-color: #f9f9f9;
    --text-color: #333;
    --border-color: #e0e0e0;
    --success-color: #4cd97b;
    --error-color: #ff6b6b;
    --warning-color: #ffac6b;
    --input-bg: #ffffff;
    --card-bg: #ffffff;
    --hover-bg: rgba(255, 107, 139, 0.1);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.2s;
    --border-radius: 12px;
    --fieldset-bg: #f9f9f9;
    --font-family: 'Nunito', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --paw-pattern-opacity: 0.1;
    --neko-pattern-opacity: 0.1;
    --neko-pawprint-size: 20px;
    --neko-accent-gradient: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

:root[data-theme="dark"] {
    --primary-color: #f1f1f1;
    --secondary-color: #bdc3c7;
    --accent-color: #ff6b8b;
    --accent-color-hover: #ff5177;
    --accent-secondary: #ffac6b;
    --background-color: #1a1a1a;
    --text-color: #f1f1f1;
    --border-color: #2c2c2c;
    --input-bg: #2a2a2a;
    --card-bg: #232323;
    --hover-bg: rgba(255, 107, 139, 0.15);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.3);
    --fieldset-bg: #232323;
    --paw-pattern-opacity: 0.2;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Nunito';
    src: url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');
    font-display: swap;
}

body {
    color: var(--text-color);
    background-color: var(--background-color);
    font-family: var(--font-family);
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    line-height: 1.6;
    padding: 0;
    margin: 0;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 10c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm30 0c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm-30 30c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm30 0c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5z' fill='%23ff6b8b' opacity='0.1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    z-index: -1;
    opacity: var(--neko-pattern-opacity);
    pointer-events: none;
}

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.app-title {
    font-weight: 700;
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.app-title svg {
    width: 40px;
    height: 40px;
    fill: var(--accent-color);
    transition: transform 0.3s ease;
}

.app-title:hover svg {
    transform: rotate(-5deg) scale(1.1);
}

.app-title::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    border-radius: 2px;
}

.app-title-image {
    width: 40px;
    height: 40px;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle:hover {
    background-color: var(--hover-bg);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.editor-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.tab-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.tab-button::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    transition: width 0.3s ease;
}

.tab-button:hover {
    color: var(--accent-color);
}

.tab-button:hover::after {
    width: 100%;
}

.tab-button.active {
    color: var(--accent-color);
    font-weight: 700;
}

.tab-button.active::after {
    width: 100%;
}

.tab-content {
    position: relative;
    min-height: 300px;
}

.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.editor-container {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.editor-container:hover {
    box-shadow: var(--shadow-hover);
}

.editor-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3a3 3 0 100 6 3 3 0 000-6zm8 8a3 3 0 100 6 3 3 0 000-6zM7 11a3 3 0 100 6 3 3 0 000-6zm8 8a3 3 0 100 6 3 3 0 000-6z' fill='%23ff99cc' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.code-editor {
    height: 450px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.left-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-family: inherit;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--neko-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn:hover::before {
    opacity: 0.1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color-hover), var(--accent-secondary));
    box-shadow: 0 4px 8px rgba(255, 107, 139, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 139, 0.1);
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    transform: none;
}

.notification {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
    background: var(--card-bg);
    border-left: 4px solid transparent;
    animation: slideIn 0.3s ease, fadeIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notification.success { border-color: var(--success-color); }
.notification.error { border-color: var(--error-color); }
.notification.warning { border-color: var(--warning-color); }

.notification::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-size: contain;
    vertical-align: middle;
}

.notification.success::before {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293l-4 4a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L9 10.586l3.293-3.293a1 1 0 011.414 1.414z' fill='%234cd97b'/%3E%3C/svg%3E");
}

.notification[hidden] {
    display: block !important;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.close-btn {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 1.25rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-btn:hover {
    opacity: 1;
}

/* Loading state */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    opacity: 0.7;
    z-index: 1;
    border-radius: var(--border-radius);
}

.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath fill='%23ff6b8b' d='M20 3.333a16.667 16.667 0 1 0 0 33.334 16.667 16.667 0 0 0 0-33.334zm0 30A13.333 13.333 0 1 1 20 6.667a13.333 13.333 0 0 1 0 26.666z' opacity='.3'/%3E%3Cpath fill='%23ff6b8b' d='M30 20h3.333A13.333 13.333 0 0 1 20 33.333v-3.333A10 10 0 0 0 30 20z'%3E%3CanimateTransform attributeName='transform' attributeType='XML' type='rotate' from='0 20 20' to='360 20 20' dur='1s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

/* Form elements */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.form-group {
    flex: 1 0 calc(50% - 1.25rem);
    min-width: 250px;
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.2);
}

.form-control.is-invalid {
    border-color: var(--error-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff6b6b' viewBox='0 0 16 16'%3E%3Cpath d='M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 12c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm1-3H7V4h2v5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
    padding-right: 30px;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.3rem;
}

.form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
}

fieldset {
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    background-color: var(--fieldset-bg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

fieldset:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(255, 107, 139, 0.1);
}

fieldset legend {
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

fieldset legend::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><path d="M5.5,1.5 C4.5,1.5 3.5,2.5 3.5,3.5 C3.5,4.5 4.5,5.5 5.5,5.5 C6.5,5.5 7.5,4.5 7.5,3.5 C7.5,2.5 6.5,1.5 5.5,1.5 Z M11,5.5 C10,5.5 9,6.5 9,7.5 C9,8.5 10,9.5 11,9.5 C12,9.5 13,8.5 13,7.5 C13,6.5 12,5.5 11,5.5 Z M3.5,9.5 C2.5,9.5 1.5,10.5 1.5,11.5 C1.5,12.5 2.5,13.5 3.5,13.5 C4.5,13.5 5.5,12.5 5.5,11.5 C5.5,10.5 4.5,9.5 3.5,9.5 Z M9,11.5 C8,11.5 7,12.5 7,13.5 C7,14.5 8,15.5 9,15.5 C10,15.5 11,14.5 11,13.5 C11,12.5 10,11.5 9,11.5 Z" fill="%23ff6b8b"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

/* Anime decorative elements */
.kawaii-icon {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.kawaii-icon-1 {
    top: 100px;
    right: 5%;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10C25 10 5 30 5 55c0 25 20 35 45 35s45-10 45-35c0-25-20-45-45-45zm-15 45c-2.8 0-5-2.2-5-5s2.2-5 5-5 5-2.2 5-5-2.2-5-5-5zm30 0c-2.8 0-5-2.2-5-5s2.2-5 5-5 5-2.2 5-5-2.2-5-5-5zm-15 20c-8.3 0-15-2.2-15-5s6.7-5 15-5 15 2.2 15 5-6.7 5-15 5z" fill="%23ff6b8b"/></svg>');
}

.kawaii-icon-2 {
    bottom: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M35 40c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zm30 0c-3 0-5 2-5 5s2 5 5 5 5-2 5-5-2-5-5-5zM20 20c-10 0-20 10-20 20 0 30 25 60 50 60s50-30 50-60c0-10-10-20-20-20H20zm30 50c-8 0-15-1-15-8 0-2 2-3 4-3h22c2 0 4 1 4 3 0 7-7 8-15 8z" fill="%23ff6b8b"/></svg>');
}

.kawaii-icon-3 {
    top: 40%;
    left: 15%;
    width: 60px;
    height: 60px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M30 30c-5.5 0-10 4.5-10 10s4.5 10 10 10 10-4.5 10-10-4.5-10-10-10zm40 0c-5.5 0-10 4.5-10 10s4.5 10 10 10 10-4.5 10-10-4.5-10-10-10zM50 5C25.1 5 5 25.1 5 50c0 24.9 20.1 45 45 45s45-20.1 45-45C95 25.1 74.9 5 50 5zm0 80c-19.3 0-35-15.7-35-35s15.7-35 35-35 35 15.7 35 35-15.7 35-35 35zm0-20c-8.3 0-15-6.7-15-15h5c0 5.5 4.5 10 10 10s10-4.5 10-10h5c0 8.3-6.7 15-15 15z" fill="%23ff6b8b"/></svg>');
}

/* Kawaii elements */
.kawaii-cat {
    pointer-events: none;
    z-index: 1;
    transition: all 0.5s ease;
    opacity: 0.9;
    position: absolute;
}

.kawaii-cat-corner {
    bottom: 20px;
    right: 20px;
    width: 80px;
    height: 80px;
    position: fixed;
    animation: floating 3s ease-in-out infinite;
}

.kawaii-cat-header {
    width: 45px;
    height: 45px;
    position: absolute;
    top: -15px;
    right: -15px;
    transition: transform 0.5s ease;
}

.app-header:hover .kawaii-cat-header {
    transform: translateY(-5px) rotate(-10deg);
    animation: headTilt 1s ease-in-out;
}

@keyframes headTilt {
    0% { transform: translateY(0) rotate(0); }
    30% { transform: translateY(-5px) rotate(-10deg); }
    60% { transform: translateY(-3px) rotate(5deg); }
    100% { transform: translateY(-5px) rotate(-10deg); }
}

@keyframes floating {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* Loading animation with cat paw */
.tab-pane-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--neko-accent-gradient);
    border-radius: 50%;
    animation: neko-chase 2s infinite;
}

.loader::after {
    animation-delay: -1s;
}

@keyframes neko-chase {
    0% { transform: translate(0, 0) scale(0.8); }
    25% { transform: translate(28px, 0) scale(1); }
    50% { transform: translate(28px, 28px) scale(0.8); }
    75% { transform: translate(0, 28px) scale(1); }
    100% { transform: translate(0, 0) scale(0.8); }
}

/* Enhanced loader animation */
.loading-neko .tab-pane-loader::before {
    content: "🐱";
    position: absolute;
    font-size: 24px;
    animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

/* Form elements enhancements */
.form-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.form-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.form-header p {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Enhanced fieldset styling with paw icon */
fieldset {
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    background-color: var(--fieldset-bg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

fieldset:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(255, 107, 139, 0.1);
}

fieldset legend {
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

fieldset legend::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url('data:image/svg+xml;utf8,<svg width="15" height="15" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><path d="M5.5,1.5 C4.5,1.5 3.5,2.5 3.5,3.5 C3.5,4.5 4.5,5.5 5.5,5.5 C6.5,5.5 7.5,4.5 7.5,3.5 C7.5,2.5 6.5,1.5 5.5,1.5 Z M11,5.5 C10,5.5 9,6.5 9,7.5 C9,8.5 10,9.5 11,9.5 C12,9.5 13,8.5 13,7.5 C13,6.5 12,5.5 11,5.5 Z M3.5,9.5 C2.5,9.5 1.5,10.5 1.5,11.5 C1.5,12.5 2.5,13.5 3.5,13.5 C4.5,13.5 5.5,12.5 5.5,11.5 C5.5,10.5 4.5,9.5 3.5,9.5 Z M9,11.5 C8,11.5 7,12.5 7,13.5 C7,14.5 8,15.5 9,15.5 C10,15.5 11,14.5 11,13.5 C11,12.5 10,11.5 9,11.5 Z" fill="%23ff6b8b"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

/* Add cat ear for the app footer */
.app-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--secondary-color);
    position: relative;
}

.app-footer::before,
.app-footer::after {
    content: "";
    position: absolute;
    top: -15px;
    width: 15px;
    height: 15px;
    background-color: var(--accent-color);
    border-radius: 50% 50% 0 0;
    transform: rotate(45deg);
    opacity: 0.5;
}

.app-footer::before {
    left: calc(50% - 30px);
}

.app-footer::after {
    right: calc(50% - 30px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-hover);
}

/* Loading animation */
.tab-pane-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader::before,
.loader::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--neko-accent-gradient);
    border-radius: 50%;
    animation: neko-chase 2s infinite;
}

.loader::after {
    animation-delay: -1s;
}

@keyframes neko-chase {
    0% { transform: translate(0, 0) scale(0.8); }
    25% { transform: translate(28px, 0) scale(1); }
    50% { transform: translate(28px, 28px) scale(0.8); }
    75% { transform: translate(0, 28px) scale(1); }
    100% { transform: translate(0, 0) scale(0.8); }
}

/* Enhanced fieldset styling */
fieldset {
    border: 1px solid var(--border-color);
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    background-color: var(--fieldset-bg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

fieldset:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px rgba(255, 107, 139, 0.1);
}

fieldset legend {
    padding: 0 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

/* Toast notifications */
.notification {
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: rgba(76, 217, 123, 0.1);
    border-left: 3px solid var(--success-color);
    color: var(--success-color);
}

.notification.error {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 3px solid var(--error-color);
    color: var(--error-color);
}

.notification.warning {
    background-color: rgba(255, 172, 107, 0.1);
    border-left: 3px solid var(--warning-color);
    color: var(--warning-color);
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Animation keyframes */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-right: 45px;
    }

    .app-header .theme-toggle {
        position: absolute;
        top: 1.5rem;
        right: 1rem;
    }

    .tab-button {
        flex: 1;
        text-align: center;
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }

    .form-group {
        flex: 1 0 100%;
    }
    
    .editor-container {
        padding: 1rem;
    }
    
    .code-editor {
        height: 350px;
    }
    
    fieldset {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .actions-bar {
        flex-direction: column;
    }

    .left-actions,
    .actions-bar .btn-primary {
        width: 100%;
    }

    .left-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .kawaii-icon {
        display: none;
    }
}

/* Enhanced validation errors styling */
.validation-errors {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.notification-with-list {
    padding-bottom: 0.5rem;
}

/* Footer copyright paw print indicator */
.copyright-paw {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

copyright-paw::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M6,1 C5,1 4.5,1.5 4.5,2 C4.5,2.5 5,3 6,3 C7,3 7.5,2.5 7.5,2 C7.5,1.5 7,1 6,1 Z M9,4 C8,4 7.5,4.5 7.5,5 C7.5,5.5 8,6 9,6 C10,6 10.5,5.5 10.5,5 C10.5,4.5 10,4 9,4 Z M3,4 C2,4 1.5,4.5 1.5,5 C1.5,5.5 2,6 3,6 C4,6 4.5,5.5 4.5,5 C4.5,4.5 4,4 3,4 Z M6,7 C5,7 4.5,7.5 4.5,8 C4.5,8.5 5,9 6,9 C7,9 7.5,8.5 7.5,8 C7.5,7.5 7,7 6,7 Z" fill="%23bdc3c7"/></svg>');
    background-repeat: no-repeat;
}

/* Array UI styling - Enhanced version */
.array-container {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    background-color: var(--input-bg);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .array-container:hover {
    border-color: var(--accent-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(255, 107, 139, 0.1);
  }
  
  .array-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
  }
  
  .array-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease;
    border-radius: var(--border-radius);
    border: 1px dashed transparent;
    background-color: var(--accent-color);
    transition: all 0.2s ease;
  }
  
  .array-item:hover {
    border-color: var(--accent-color);
    background-color: var(--hover-bg);
  }
  
  .array-item-input {
    flex: 1;
  }
  
  .array-empty-message {
    padding: 1rem;
    color: var(--secondary-color);
    text-align: center;
    font-style: italic;
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
    background-color: rgba(255, 255, 255, 0.3);
  }
  
  .array-empty-message::before {
    content: "🐾";
    display: inline-block;
    margin-right: 0.5rem;
    font-style: normal;
  }
  
  .array-remove-btn, .array-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: all 0.2s ease;
    color: white;
    flex-shrink: 0;
  }
  
  .array-remove-btn {
    background-color: var(--error-color);
    opacity: 0.7;
  }
  
  .array-remove-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(255, 107, 107, 0.3);
  }
  
  .array-add-btn {
    background-color: var(--accent-color);
    margin-left: auto;
    position: relative;
    overflow: hidden;
  }
  
  .array-add-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-color-hover);
    box-shadow: 0 2px 5px rgba(255, 107, 139, 0.3);
  }
  
  .array-add-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%);
    border-radius: inherit;
  }
  
  .array-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
  
  .array-json {
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
    max-height: 250px;
  }
  
  .array-json-hint {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .array-json-hint::before {
    content: "🔍";
    font-style: normal;
  }
  
  /* For arrays with many items, add a subtle fade at the bottom */
  .array-items::after {
    content: "";
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--input-bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .array-items.scrollable::after {
    opacity: 1;
  }
  
  /* Drag handle for future sortable implementation */
  .array-item-handle {
    width: 12px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    cursor: grab;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
  }
  
  .array-item-handle:hover {
    opacity: 1;
  }
  
  .array-item-handle::before,
  .array-item-handle::after {
    content: "";
    width: 12px;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 1px;
  }
  
  /* Array type badges */
  .array-type-indicator {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: rgba(255, 107, 139, 0.1);
    color: var(--accent-color);
    margin-left: 0.5rem;
    vertical-align: middle;
  }
  
  /* Simple paw print animation when hovering over array items */
  .array-item:hover::before {
    content: "🐾";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0;
    animation: pawFloat 0.6s ease forwards;
  }
  
  @keyframes pawFloat {
    0% { opacity: 0; transform: translateX(-50%) translateY(5px); }
    100% { opacity: 0.7; transform: translateX(-50%) translateY(-5px); }
  }
  
  /* Make array inputs more kawaii */
  .array-item-input {
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.6rem 0.75rem;
    background-color: var(--input-bg);
    color: var(--text-color);
  }
  
  .array-item-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.15);
    outline: none;
  }
  
  /* Improved spacing for complex arrays */
  .complex-array {
    padding-bottom: 0.5rem;
  }
  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    .array-item {
      flex-wrap: wrap;
    }
    
    .array-item-input {
      flex: 1 0 100%;
      margin-bottom: 0.5rem;
    }
    
    .array-remove-btn {
      margin-left: auto;
    }
  }