/* ============================================
   MODERN THEME - UNIFIED CSS
   Professional Light Theme for Tools Website
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #4338ca;
    --success-color: #10b981;
    --info-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --secondary-color: #64748b;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #1e293b;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --nav-height: 72px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

html {
    scroll-behavior: smooth;
}

/* ============================================
   3. NAVIGATION
   ============================================ */
.navbar {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    height: var(--nav-height);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar.fixed-top {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    transition: var(--transition);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 0.5rem;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-item:first-child {
    margin-left: 0;
}

.nav-item:last-child {
    margin-right: 0;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: transparent;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
}

.nav-link i {
    font-size: 1rem;
}

/* Dropdown Menu */
.dropdown-menu {
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.dropdown-mega-menu {
    min-width: 900px;
    max-width: 1000px;
    padding: 0 !important;
    margin-top: 0.75rem !important;
    border-radius: 16px;
    overflow: hidden;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

.dropdown-mega-menu .container-fluid {
    padding: 1.5rem;
}

.dropdown-mega-menu .row {
    margin: 0;
}

.mega-column {
    position: relative;
}

.mega-column:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--border-color) 10%, 
        var(--border-color) 90%, 
        transparent 100%);
}

.mega-column:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--border-color) 10%, 
        var(--border-color) 90%, 
        transparent 100%);
}

.dropdown-category {
    padding: 0;
    position: relative;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.category-icon {
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
}

.category-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin: 0;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    position: relative;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.category-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.category-item:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    padding-left: 1rem;
}

.category-item:hover::before {
    height: 60%;
}

.category-item:hover i {
    color: var(--primary-color);
}

.dropdown-item {
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 0 2px 2px 0;
    transition: height 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
    padding-left: 1rem;
}

.dropdown-item:hover::before {
    height: 60%;
}

.dropdown-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Search Box */
/* ============================================
   4. HERO SECTIONS
   ============================================ */

/* Index Page Hero */
.hero-section {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-main-icon {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
    box-shadow: var(--shadow-xl);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
    color: var(--success-color);
}

.icon-3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 2s;
    color: var(--info-color);
}

/* Tool Section Spacing */
.tool-section-spacing {
    margin-top: var(--nav-height);
}

/* ============================================
   Tool Page Background - Fully Professional Google-Style
   Universal background for all tool pages
   Clean, minimal, sophisticated - Google Material Design inspired
   Enhanced with cool color palette
   ============================================ */
.tool-page-background {
    background: linear-gradient(135deg, 
        #fafbfc 0%, 
        #f8f9fa 25%, 
        #f1f3f5 50%, 
        #f8f9fa 75%, 
        #fafbfc 100%);
    background-size: 200% 200%;
    background-image: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, transparent 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
    animation: gradientBackgroundShift 22s ease infinite;
    position: relative;
    overflow: hidden;
}

.tool-page-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(66, 133, 244, 0.035) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(52, 168, 83, 0.03) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(251, 188, 5, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(234, 67, 53, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, rgba(156, 39, 176, 0.02) 0%, transparent 45%),
        radial-gradient(circle at 40% 60%, rgba(0, 188, 212, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gentleFloat 20s ease-in-out infinite;
}

.tool-page-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(66, 133, 244, 0.15) 25%,
        rgba(52, 168, 83, 0.1) 50%,
        rgba(234, 67, 53, 0.1) 75%,
        transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.tool-page-background > .container {
    position: relative;
    z-index: 1;
}

@keyframes gradientBackgroundShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% {
        transform: translate(2%, 1%) scale(1.02);
        opacity: 0.95;
    }
    66% {
        transform: translate(-1%, 2%) scale(0.98);
        opacity: 0.97;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--primary-color) !important;
}

/* Tool Page Hero */
.hero-tool-section {
    background: var(--bg-white);
    position: relative;
    padding: 2rem 0;
    min-height: auto;
}

.hero-tool-content {
    position: relative;
    z-index: 1;
    animation: fadeInLeft 0.8s ease-out;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.hero-tool-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* ============================================
   5. STATS
   ============================================ */
.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-stats {
    margin-top: 2rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

/* ============================================
   6. FEATURES SECTION
   ============================================ */
.features-section {
    background: var(--bg-light);
}

.feature-card {
    background: var(--bg-white);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    color: white;
    transform: scale(1.1);
}

.feature-card-mini {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card-mini:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon-mini {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.feature-card-mini:hover .feature-icon-mini {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.features-showcase {
    background: white;
}

/* ============================================
   7. TOOLS SECTION
   ============================================ */
.tools-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.tools-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.section-badge {
    animation: fadeInDown 0.6s ease-out;
}

.section-title {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.section-content-max-width {
    max-width: 600px;
}

.tool-card {
    border-radius: 20px;
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-white);
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.08),
        0 2px 4px -1px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(99, 102, 241, 0.05);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 20px 25px -5px rgba(99, 102, 241, 0.15),
        0 10px 10px -5px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        0 0 40px rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.tool-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tool-icon-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.tool-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    color: white;
    box-shadow: 
        0 8px 16px -4px rgba(0, 0, 0, 0.15),
        0 4px 8px -2px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
}

.tool-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 12px 24px -6px rgba(0, 0, 0, 0.2),
        0 6px 12px -3px rgba(0, 0, 0, 0.15);
}

.tool-card:hover .tool-icon::after {
    opacity: 1;
}

.tool-card:hover .card-title {
    color: var(--primary-color);
}

/* Make tool card links clickable and stretch */
.row.g-4 > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

a.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex: 1;
    height: 100%;
}

a.tool-card-link:hover {
    text-decoration: none;
    color: inherit;
}

a.tool-card-link:focus {
    outline: none;
}

a.tool-card-link:focus .tool-card {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.card-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 1rem;
}

/* ============================================
   8. TOOL PAGE COMPONENTS
   ============================================ */
.tool-main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* ============================================
   Tool Main Card - Animated Wavy Gradient Top Border
   ============================================
   Feature: Animated wavy gradient border at the top of tool cards
   Style: Wavy/curved shape with animated multi-color gradient
   Colors: Indigo → Purple → Pink → Green → Cyan
   Animation: Smooth gradient shift (4s infinite loop)
   Height: 5px
   ============================================ */
.tool-main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #8b5cf6 20%, 
        #ec4899 40%, 
        #10b981 60%, 
        #06b6d4 80%, 
        #6366f1 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 2;
    clip-path: polygon(
        0% 0%,
        0% 100%,
        8% 65%,
        16% 100%,
        24% 70%,
        32% 100%,
        40% 75%,
        48% 100%,
        56% 68%,
        64% 100%,
        72% 72%,
        80% 100%,
        88% 70%,
        96% 100%,
        100% 75%,
        100% 0%
    );
}

/* Gradient Shift Animation for Top Border */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.tool-main-card:hover {
    box-shadow: 
        0 25px 70px rgba(99, 102, 241, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.glass-effect {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Desktop Glass Card Design */
.glass-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.8rem;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
    position: relative;
    overflow: hidden;
}

/* Animated Wavy Gradient Top Border for Glass Card */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #8b5cf6 20%, 
        #ec4899 40%, 
        #10b981 60%, 
        #06b6d4 80%, 
        #6366f1 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 2;
    clip-path: polygon(
        0% 0%,
        0% 100%,
        8% 65%,
        16% 100%,
        24% 70%,
        32% 100%,
        40% 75%,
        48% 100%,
        56% 68%,
        64% 100%,
        72% 72%,
        80% 100%,
        88% 70%,
        96% 100%,
        100% 75%,
        100% 0%
    );
}

/* Desktop Editor Card Design - Clean Textarea */
.editor-card {
    background: white;
    border: 1.8px solid #e2e8f0;
    border-radius: 1.4rem;
    padding: 1.4rem;
    font-family: 'JetBrains Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.7;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 2px 8px rgba(0, 0, 0, 0.02);
    width: 100%;
    resize: none;
    outline: none;
    color: var(--text-primary);
    overflow-y: auto;
    overflow-x: auto;
}

/* Light cool hover effect - thin pink/red border */
.editor-card:hover,
.form-control.editor-card:hover {
    border-color: rgba(236, 72, 153, 0.4);
    border-width: 1.5px;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 2px 8px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(236, 72, 153, 0.1);
    transform: none;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Custom Scrollbar Styling for Editor Card */
.editor-card::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.editor-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 0 1.4rem 1.4rem 0;
    margin: 1.4rem 0;
}

.editor-card::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    transition: background 0.3s ease;
}

.editor-card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

.editor-card::-webkit-scrollbar-corner {
    background: #f1f5f9;
    border-radius: 0 0 1.4rem 0;
}

/* Firefox Scrollbar Styling */
.editor-card {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #f1f5f9;
}

.editor-card:focus {
    outline: none;
    border-color: #e2e8f0;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.editor-card:focus-visible {
    outline: none;
    border-color: #e2e8f0;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.editor-card::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.editor-card:read-only {
    cursor: default;
    background: #f8f9fa;
}

.tool-options-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.operation-selector {
    display: flex;
    gap: 0.5rem;
}

.operation-dropdown-button {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color) !important;
    background: white !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    overflow: visible;
}

.operation-dropdown-button::before {
    display: none !important;
}

.operation-dropdown-button:hover {
    background: var(--bg-light) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: none;
    box-shadow: none;
}

.operation-dropdown-button:hover::before {
    display: none !important;
}

.operation-dropdown-button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

.operation-dropdown-button span,
.operation-dropdown-button i {
    position: relative;
    z-index: auto;
}

.operation-dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.operation-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.operation-dropdown-item.active {
    background: var(--primary-color);
    color: white;
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color) !important;
    background: white !important;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    position: relative;
    overflow: visible;
}

.action-btn::before {
    display: none !important;
}

.action-btn:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.action-btn:hover::before {
    display: none !important;
}

.action-btn span,
.action-btn i {
    position: relative;
    z-index: auto;
}

/* Minimal Button Style - Desktop Design */
.minimal-btn {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: white;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.125rem;
    padding: 0;
}

.minimal-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.minimal-btn.text-primary {
    color: var(--primary-color);
}

.minimal-btn.text-primary:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.minimal-btn.text-danger {
    color: var(--danger-color);
}

.minimal-btn.text-danger:hover {
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.split-view-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

.split-view-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.split-view-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.view-title {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.view-stats,
.view-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.view-body {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.view-footer {
    padding: 0.75rem 1.25rem;
    background: white;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

/* ============================================
   Tool Input/Output Cards - Unique Card Experience
   Universal card styling for all tool pages
   ============================================ */
.tool-input-card,
.tool-output-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 
        0 8px 32px rgba(99, 102, 241, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: none;
}

.tool-input-card::before,
.tool-output-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #8b5cf6 30%, 
        #ec4899 60%, 
        #10b981 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-input-card:hover::before,
.tool-output-card:hover::before {
    opacity: 1;
}

.tool-input-card:has(.tool-editor:focus)::before {
    opacity: 1;
    animation: gradientShift 2s ease infinite;
}

.tool-input-card:hover,
.tool-output-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(99, 102, 241, 0.12),
        0 6px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tool-input-card:has(.tool-editor:focus) {
    transform: translateY(-6px);
    box-shadow: 
        0 16px 48px rgba(99, 102, 241, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 4px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.tool-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tool-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-input-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    color: var(--primary-color);
}

.tool-input-icon::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.tool-input-card:hover .tool-input-icon,
.tool-input-card:has(.tool-editor:focus) .tool-input-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-input-card:hover .tool-input-icon::before,
.tool-input-card:has(.tool-editor:focus) .tool-input-icon::before {
    opacity: 1;
}

.tool-output-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.12) 100%);
    color: var(--success-color);
}

.tool-output-icon::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.tool-output-card:hover .tool-output-icon {
    transform: scale(1.1);
}

.tool-output-card:hover .tool-output-icon::before {
    opacity: 1;
}

/* Universal editor class for all textareas (JSON, CSV, XML, YAML, String, Base64, URL, etc.) */
.tool-editor {
    width: 100%;
    flex: 1;
    min-height: 350px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1.25rem;
    border: none !important;
    background: transparent;
    color: var(--text-primary);
    resize: none;
    outline: none !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.tool-editor:focus {
    background: rgba(99, 102, 241, 0.02);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.tool-editor:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.tool-editor:read-only {
    cursor: default;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove border highlight from parent card when textarea is focused */
.card:has(.tool-editor:focus) {
    border-color: var(--border-color) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.tool-editor::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Backward compatibility - keep json-editor for existing references */
.json-editor {
    width: 100%;
    flex: 1;
    min-height: 350px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 1.25rem;
    border: none !important;
    background: transparent;
    color: var(--text-primary);
    resize: none;
    outline: none !important;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.json-editor:focus {
    background: rgba(99, 102, 241, 0.02);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.json-editor:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.json-editor:read-only {
    cursor: default;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.card:has(.json-editor:focus) {
    border-color: var(--border-color) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.json-editor::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

.split-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid var(--border-color) !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    border-radius: 8px;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.process-btn::before {
    display: none !important;
}

.process-btn:hover {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.process-btn:hover::before {
    display: none !important;
}

.process-btn span,
.process-btn i {
    position: relative;
    z-index: auto;
}

.process-btn:active {
    transform: translateY(0);
}

.process-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-muted);
}

.copy-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
    transform: scale(1.1);
}

.action-btn.copied,
.copy-btn.copied {
    background: var(--success-color) !important;
    color: white !important;
    border-color: var(--success-color) !important;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: var(--bg-light);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.tool-status-message {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--primary-color);
    animation: slideDown 0.3s ease-out;
}

.tool-status-message.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.tool-status-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

/* ============================================
   9. BUTTONS
   ============================================ */
.btn {
    font-weight: 600;
    border-radius: 12px;
    padding: 0.625rem 1.5rem;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    border-radius: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-fresh {
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    color: white;
    border: none;
    box-shadow: var(--shadow-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-fresh:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.4);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-outline-primary span,
.btn-outline-primary i {
    position: relative;
    z-index: 1;
}

.btn-outline-primary:hover {
    color: white;
    border-color: var(--primary-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-outline-success {
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-outline-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-outline-success span,
.btn-outline-success i {
    position: relative;
    z-index: 1;
}

.btn-outline-success:hover {
    color: white;
    border-color: var(--success-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline-success:hover::before {
    left: 0;
}

.btn-outline-info {
    color: var(--info-color);
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-outline-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-outline-info span,
.btn-outline-info i {
    position: relative;
    z-index: 1;
}

.btn-outline-info:hover {
    color: white;
    border-color: var(--info-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.btn-outline-info:hover::before {
    left: 0;
}

.btn-outline-warning {
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-outline-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-outline-warning span,
.btn-outline-warning i {
    position: relative;
    z-index: 1;
}

.btn-outline-warning:hover {
    color: white;
    border-color: var(--warning-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline-warning:hover::before {
    left: 0;
}

.btn-outline-danger {
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: rgba(239, 68, 68, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-outline-danger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-outline-danger span,
.btn-outline-danger i {
    position: relative;
    z-index: 1;
}

.btn-outline-danger:hover {
    color: white;
    border-color: var(--danger-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-outline-danger:hover::before {
    left: 0;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border: 1px solid rgba(100, 116, 139, 0.25);
    background: rgba(100, 116, 139, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-outline-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #475569 100%);
    transition: left 0.3s ease;
    z-index: 0;
}

.btn-outline-secondary span,
.btn-outline-secondary i {
    position: relative;
    z-index: 1;
}

.btn-outline-secondary:hover {
    color: white;
    border-color: var(--secondary-color);
    background: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-outline-secondary:hover::before {
    left: 0;
}

/* ============================================
   10. FOOTER
   ============================================ */
/* ============================================
   Footer - Cool & Fresh Design (No Hover Effects)
   ============================================ */
.footer {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.3) 50%, 
        transparent 100%);
}

.footer-content {
    min-height: 50px;
}

.footer-brand {
    font-size: 0.9375rem;
}

.footer-brand i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    font-size: 0.875rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    transition: all 0.2s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    transition: width 0.3s ease;
}

.footer-link i {
    font-size: 0.875rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: var(--transition);
}

.footer-link span {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    background: transparent;
}

.footer-link:hover::after {
    width: 80%;
}

.footer-link:hover span {
    color: var(--primary-color);
}

.footer-link:hover i {
    opacity: 1;
}

.footer-social {
    font-size: 1.125rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-social-link i {
    color: var(--primary-color);
    opacity: 0.8;
}

/* No hover effects - removed all :hover styles */

/* ============================================
   11. BADGE
   ============================================ */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* ============================================
   12. THEME SETTINGS
   ============================================ */
.theme-settings-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 
        0 10px 25px rgba(99, 102, 241, 0.3),
        0 5px 15px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    z-index: 1055;
    animation: pulse 2s ease-in-out infinite;
}

.theme-settings-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(99, 102, 241, 0.4),
        0 8px 20px rgba(99, 102, 241, 0.3);
}

.theme-settings-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.theme-settings-panel {
    position: fixed;
    top: 50%;
    right: -350px;
    transform: translateY(-50%);
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1056;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.theme-settings-panel.active {
    right: 30px;
}

.settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(99, 102, 241, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
}

.settings-panel-header h6 {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.settings-close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.125rem;
}

.settings-close-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.settings-panel-body {
    padding: 1.5rem;
}

.color-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: var(--bg-light);
}

.color-option:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-option.active {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.color-preview {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.color-preview-indigo {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

.color-preview-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.color-preview-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.color-preview-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.color-preview-teal {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.color-preview-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.color-preview-red {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.color-preview-pink {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.color-option:hover .color-preview {
    transform: scale(1.1);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.2),
        0 3px 6px rgba(0, 0, 0, 0.15);
}

.color-option.active .color-preview {
    transform: scale(1.1);
    box-shadow: 
        0 6px 12px rgba(99, 102, 241, 0.3),
        0 3px 6px rgba(99, 102, 241, 0.2);
}

.color-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
    transition: color 0.3s ease;
}

.color-option.active .color-name {
    color: var(--primary-color);
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1055;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   13. ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 10px 25px rgba(99, 102, 241, 0.3),
            0 5px 15px rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: 
            0 10px 25px rgba(99, 102, 241, 0.5),
            0 5px 15px rgba(99, 102, 241, 0.4),
            0 0 0 8px rgba(99, 102, 241, 0.1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   14. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1199.98px) {
    .hero-tool-title {
        font-size: 2.5rem;
    }
    
    .split-view-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .split-divider {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .process-btn {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-tool-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-tool-title {
        font-size: 2rem;
    }
    
    .tool-main-card {
        padding: 1.5rem;
    }
    
    .tool-editor,
    .json-editor {
        min-height: 250px;
    }
    
    .operation-selector {
        width: 100%;
    }
    
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-item {
        margin: 0.25rem 0;
    }
    
    .dropdown-mega-menu {
        min-width: 100%;
        max-width: 100%;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .dropdown-mega-menu .row {
        flex-direction: column;
    }
    
    .dropdown-mega-menu .col-lg-4,
    .dropdown-mega-menu .col-md-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .mega-column::after,
    .mega-column::before {
        display: none !important;
    }
    
    .mega-column:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .dropdown-category {
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem !important;
    }
    
    .footer-brand {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .footer-brand span.mx-2 {
        display: none;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .footer-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8125rem;
    }
    
    .theme-settings-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        border-radius: 14px;
    }
    
    .theme-settings-panel {
        width: 280px;
        right: -300px;
    }
    
    .theme-settings-panel.active {
        right: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-main-icon {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-tool-title {
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .tool-options-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tool-actions {
        justify-content: center;
    }
    
    .tool-editor,
    .json-editor {
        min-height: 200px;
        font-size: 0.8125rem;
    }
    
    .footer {
        padding: 1.5rem 0 !important;
    }
    
    .footer-links {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem !important;
    }
    
    .footer-link {
        width: 100%;
        justify-content: center;
        padding: 0.5rem;
    }
    
    .footer-social {
        justify-content: center;
        width: 100%;
    }
    
    .theme-settings-panel {
        width: calc(100% - 40px);
        right: -100%;
        top: 50%;
        transform: translateY(-50%);
        max-width: 340px;
    }
    
    .theme-settings-panel.active {
        right: 20px;
    }
    
    .color-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   15. UTILITIES
   ============================================ */
/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   16. UTILITY CLASSES - Replace Inline Styles
   ============================================ */

/* Hero Feature Icon Circles */
.hero-feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Tool Card Icon Circles */
.tool-card-icon-circle {
    width: 56px;
    height: 56px;
}

/* Tool Card Gradient Backgrounds */
.tool-card-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.tool-card-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.tool-card-gradient-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

/* Tool Card Top Border Gradients */
.tool-card-border-primary {
    height: 4px;
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
}

.tool-card-border-success {
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.tool-card-border-info {
    height: 4px;
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
}

/* Tool Card Transitions */
.tool-card-animated {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    min-height: 400px;
    position: relative;
    z-index: 1;
}

.how-it-works-step {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.25rem;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 1 !important;
    min-height: 280px;
    display: block !important;
    visibility: visible !important;
}

/* Animated Wavy Gradient Top Border for How It Works Steps - Same as glass-card */
.glass-card.how-it-works-step::before,
.how-it-works-step.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        #6366f1 0%, 
        #8b5cf6 20%, 
        #ec4899 40%, 
        #10b981 60%, 
        #06b6d4 80%, 
        #6366f1 100%);
    background-size: 200% 100%;
    animation: gradientShift 4s ease infinite;
    z-index: 2;
    clip-path: polygon(
        0% 0%,
        0% 100%,
        8% 65%,
        16% 100%,
        24% 70%,
        32% 100%,
        40% 75%,
        48% 100%,
        56% 68%,
        64% 100%,
        72% 72%,
        80% 100%,
        88% 70%,
        96% 100%,
        100% 75%,
        100% 0%
    );
}

.row.position-relative > div:nth-child(1) .how-it-works-step {
    animation-delay: 0.1s;
}

.row.position-relative > div:nth-child(2) .how-it-works-step {
    animation-delay: 0.2s;
}

.row.position-relative > div:nth-child(3) .how-it-works-step {
    animation-delay: 0.3s;
}

.row.position-relative > div:nth-child(4) .how-it-works-step {
    animation-delay: 0.4s;
}

.how-it-works-step:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.how-it-works-number {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 10;
}

.how-it-works-icon-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.how-it-works-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.how-it-works-step:hover .how-it-works-icon-circle {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.how-it-works-icon-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.how-it-works-icon-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.how-it-works-icon-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.how-it-works-icon-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Connecting Lines (Desktop Only) */
.how-it-works-connector {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.how-it-works-line {
    position: absolute;
    top: 50%;
    left: calc(12.5% + 40px);
    right: calc(12.5% + 40px);
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(99, 102, 241, 0.2) 10%,
        rgba(99, 102, 241, 0.4) 30%,
        rgba(99, 102, 241, 0.6) 50%,
        rgba(99, 102, 241, 0.4) 70%,
        rgba(99, 102, 241, 0.2) 90%,
        transparent 100%);
    transform: translateY(-50%);
    animation: linePulse 2s ease-in-out infinite;
}

.how-it-works-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    animation: arrowPulse 2s ease-in-out infinite;
    z-index: 1;
}

@keyframes linePulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateY(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scaleX(1.05);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }
    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .how-it-works-connector {
        display: none;
    }
    
    .how-it-works-step {
        margin-bottom: 1.5rem;
    }
}

/* Image Output Container */
.image-output-container {
    display: none;
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.image-output-container.show {
    display: block;
}

.image-output-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 0.375rem;
}

/* Display Utilities - For JavaScript controlled elements */
.display-none {
    display: none !important;
}

/* Icon Size Utilities */
.icon-size-4rem {
    font-size: 4rem !important;
}

.icon-size-3rem {
    font-size: 3rem !important;
}

.icon-size-2-5rem {
    font-size: 2.5rem !important;
}

.icon-size-1-5rem {
    font-size: 1.5rem !important;
}

/* Gradient Card Backgrounds */
.gradient-card-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.gradient-card-light {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}

/* Text Utilities */
.text-opacity-95 {
    opacity: 0.95;
}

.max-width-800 {
    max-width: 800px;
    margin: 0 auto;
}

.max-width-700 {
    max-width: 700px;
    margin: 0 auto;
}

.max-width-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout Utilities */
.min-height-viewport {
    min-height: calc(100vh - 200px);
}

.z-index-1 {
    z-index: 1;
}

/* Margin Utilities */
.margin-auto-top {
    margin: 1rem auto 0;
}

/* Textarea Display Block */
.textarea-display-block {
    display: block;
}

/* Smooth Animations */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Feature Cards Hover Effects */
.card.shadow-lg:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

/* Gradient Badge */
.bg-gradient-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

/* ============================================
   COMPONENT ERROR MESSAGE
   ============================================ */
.component-error-message {
    padding: 1rem;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 4px;
    margin: 1rem 0;
}

/* ============================================
   CLIPBOARD SUCCESS STATE
   ============================================ */
.clipboard-success-icon {
    color: #10b981 !important;
}

.clipboard-success-button {
    color: #10b981 !important;
}

/* ============================================
   HIDDEN TEXTAREA (For Clipboard Fallback)
   ============================================ */
.clipboard-textarea-hidden {
    position: fixed;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

