/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-light: #EEF2FF;
    --secondary-color: #7C3AED;
    --secondary-light: #F5F3FF;
    --accent-color: #F59E0B;
    --success-color: #10B981;
    --warning-color: #FBBF24;
    --error-color: #EF4444;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --border-color: #E2E8F0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --primary-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
    --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(248, 250, 252, 1) 100%);
    --glass-background: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    transition: var(--transition);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--glass-background);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulseIcon 3s ease-in-out infinite;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    white-space: nowrap;
}

.nav-menu li {
    margin: 0 0.25rem;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition);
    padding: 0.5rem 0.85rem;
    border-radius: var(--border-radius);
    will-change: color;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 999px;
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active::after {
    display: none;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle,
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover,
.search-toggle:hover {
    background-color: var(--surface);
    color: var(--primary-color);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    animation: glowPulse 6s ease-in-out infinite;
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.header--condensed .container {
    padding: 0.5rem 20px;
}

.header--condensed .logo i {
    transform: scale(0.95);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    z-index: 1100;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-color);
    z-index: 1100;
}

.gradient-bg-primary {
    background: var(--primary-gradient);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: translateZ(0) scale(1);
    }

    50% {
        transform: translateZ(0) scale(1.06);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
    }

    50% {
        box-shadow: 0 12px 36px rgba(59, 130, 246, 0.25);
    }
}

@media (max-width: 1024px) {
    .btn-cta {
        display: none;
    }
}

/* Search Container */
.search-container {
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    background: var(--background);
    box-shadow: var(--shadow);
    z-index: 1100;
    transition: var(--transition);
}

.search-container.active {
    top: 0;
}

.search-container .container {
    display: flex;
    align-items: center;
    padding: 1rem 20px;
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    padding: 0.75rem;
    background: transparent;
    color: var(--text-primary);
}

.search-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-secondary);
    padding: 0.5rem;
}

/* Hide header nav when search is active */
.search-active .header .nav-menu {
    display: none;
}

/* Ensure mobile nav collapses when search is active */
.search-active .nav-menu.active {
    left: -100%;
}

/* Hero Section */
.hero {
    background-image: url('../assets/hero_background.png');
    background-size: cover;
    background-position: center;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0.4), var(--background));
    z-index: 1;
}

.hero .container {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1;
    background: linear-gradient(135deg, #1E293B 0%, #4F46E5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    background: var(--glass-background);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: inline-flex;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    font-family: 'Outfit', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
}

.tool-category {
    margin-bottom: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.category-title i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 1.5rem;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.25px;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tool Modal */
.tool-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tool-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--background);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: var(--transition);
}

.tool-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--surface);
    color: var(--error-color);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

/* Tool Specific Styles */
.tool-content {
    min-height: 300px;
}

.calculator {
    max-width: 400px;
    margin: 0 auto;
}

.calculator-display {
    width: 100%;
    height: 80px;
    font-size: 2rem;
    text-align: right;
    padding: 0 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background: var(--background);
    color: var(--text-primary);
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calc-btn {
    height: 60px;
    font-size: 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn:hover {
    background: var(--primary-color);
    color: white;
}

.calc-btn.operator {
    background: var(--secondary-color);
    color: white;
}

.calc-btn.equals {
    background: var(--success-color);
    color: white;
    grid-column: span 2;
}

.calc-btn.clear {
    background: var(--error-color);
    color: white;
}

/* Scientific Calculator Styles */
.scientific-calculator {
    max-width: 500px;
    margin: 0 auto;
}

.scientific-calculator .calculator-buttons {
    display: block;
}

.scientific-calculator .calculator-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

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

.scientific-calculator .calc-btn {
    height: 50px;
    font-size: 0.9rem;
    padding: 0;
}

.scientific-calculator .calc-btn.scientific {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.scientific-calculator .calc-btn.scientific:hover {
    background: var(--secondary-color);
    color: white;
}

/* Form Styles */
.tool-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Featured Tools */
.featured-tools {
    padding: 4rem 0;
    background: var(--surface);
}

.featured-tools .tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tool-card.featured {
    background: var(--background);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.tool-card.featured:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Testimonials */
.testimonials {
    padding: 8rem 0;
    background: var(--surface-gradient);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.1rem;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-size: 3rem;
    color: var(--primary-light);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    font-size: 1.5rem;
}

.author-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.author-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.cta-content p {
    font-size: 1.4rem;
    margin-bottom: 3.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--primary-light);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    backdrop-filter: blur(5px);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Results Display */
.result-container {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.result-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.result-content {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Age Calculator Styles */
.age-details p {
    margin: 0.5rem 0;
}

.next-birthday {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.age-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.age-info h4 {
    margin-top: 0;
}

.age-info ul {
    padding-left: 1.5rem;
}

.age-info li {
    margin-bottom: 0.5rem;
}

/* Loan Calculator Styles */
.loan-summary,
.loan-results {
    margin-bottom: 1rem;
}

.loan-summary p,
.loan-results p {
    margin: 0.3rem 0;
}

.amortization-preview {
    margin-top: 1.5rem;
}

.amortization-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.amortization-table th,
.amortization-table td {
    padding: 0.5rem;
    text-align: right;
    border: 1px solid var(--border-color);
}

.amortization-table th {
    background: var(--surface);
    font-weight: bold;
}

.amortization-table tr:nth-child(even) {
    background: var(--background);
}

.loan-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.loan-info h4 {
    margin-top: 0;
}

.loan-info ul {
    padding-left: 1.5rem;
}

.loan-info li {
    margin-bottom: 0.5rem;
}

/* Scientific Notation Calculator Styles */
.scientific-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.scientific-info h4 {
    margin-top: 0;
}

.scientific-info ul {
    padding-left: 1.5rem;
}

.scientific-info li {
    margin-bottom: 0.5rem;
}

.notation-results p {
    margin: 0.3rem 0;
}

.notation-explanation {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Currency Converter Styles */
.currency-converter-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.currency-converter-info h4 {
    margin-top: 0;
}

.popular-pairs {
    margin-top: 1rem;
}

.currency-pairs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.pair-btn {
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.pair-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.conversion-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.amount-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amount-display .flag {
    font-size: 1.5rem;
}

.amount-display .amount {
    font-size: 1.2rem;
    font-weight: bold;
}

.amount-display .currency {
    color: var(--text-secondary);
}

.equals-sign {
    font-size: 1.5rem;
    font-weight: bold;
}

.exchange-rate {
    text-align: center;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--border-radius);
}

.rate-info {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

/* Time Zone Converter Styles */
.time-zone-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.time-zone-info h4 {
    margin-top: 0;
}

.timezone-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.detail-row span:last-child {
    font-weight: 500;
}

.popular-conversions {
    margin-top: 1.5rem;
}

.conversion-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.conv-btn {
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.conv-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-conversion {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.time-display {
    text-align: center;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--border-radius);
}

.time-display h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
}

.time-display .time {
    margin: 0;
    font-size: 1.1rem;
}

.time-arrow {
    text-align: center;
}

.time-arrow i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.time-arrow span {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 6rem 0 2rem;
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-success {
    color: var(--success-color);
}

.text-error {
    color: var(--error-color);
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Legal Content */
.legal-content {
    padding: 4rem 0;
}

.legal-intro {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-section h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* About Page Specific */
.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.about-story {
    margin: 4rem 0;
}

.stats-section {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin: 3rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.values-list {
    margin: 2rem 0;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.value-item h3 {
    color: var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    text-align: center;
}

.member-avatar {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.future-list {
    list-style: none;
    padding: 0;
}

.future-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--success-color);
}

.cta-section {
    text-align: center;
    margin: 4rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-form-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-info-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-details h4 {
    margin-bottom: 0.5rem;
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.response-time,
.business-hours {
    margin-bottom: 2rem;
}

.time-info,
.hours-info {
    background: rgba(33, 150, 243, 0.1);
    padding: 1rem;
    border-radius: 8px;
}

.faq-section {
    margin: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.self-service-section {
    margin: 4rem 0;
}

.self-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.self-service-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.self-service-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.community-section {
    text-align: center;
    margin: 4rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
}

.checkbox-label input:checked+.checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input:checked+.checkmark::after {
    content: '?';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

.form-status {
    margin-top: 1rem;
}

.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Barcode Generator Styles */
.barcode-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.barcode-info h4 {
    margin-top: 0;
}

.barcode-placeholder {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.barcode-lines {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 80px;
    margin-bottom: 1rem;
}

.barcode-line {
    background: var(--text-primary);
    display: inline-block;
}

.barcode-text {
    font-family: monospace;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.barcode-details {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--border-radius);
}

/* Text to Speech Styles */
.tts-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.tts-info h4 {
    margin-top: 0;
}

.tts-status {
    text-align: center;
    padding: 1rem;
}

/* Speech to Text Styles */
.stt-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.stt-info h4 {
    margin-top: 0;
}

.stt-status {
    text-align: center;
    padding: 1rem;
}

/* Character Counter Styles */
.counter-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.counter-info h4 {
    margin-top: 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.limit-progress {
    margin: 1.5rem 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 10px;
    background: var(--surface);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Text to Speech Styles */
.tts-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.tts-info h4 {
    margin-top: 0;
}

.tts-status {
    text-align: center;
    padding: 1rem;
}

.download-info {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Palindrome Checker Styles */
.palindrome-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.palindrome-info h4 {
    margin-top: 0;
}

.palindrome-result {
    text-align: center;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.palindrome-result.is-palindrome {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--success-color);
}

.palindrome-result.not-palindrome {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--error-color);
}

.palindrome-result .result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.palindrome-result.is-palindrome .result-icon {
    color: var(--success-color);
}

.palindrome-result.not-palindrome .result-icon {
    color: var(--error-color);
}

.original-text,
.processed-text,
.comparison,
.options-used {
    margin: 1rem 0;
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

/* Password Strength Checker Styles */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 35px;
    cursor: pointer;
    color: var(--text-secondary);
}

.password-strength {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.password-strength.very-weak {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid var(--error-color);
}

.password-strength.weak {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid #ff9800;
}

.password-strength.fair {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107;
}

.password-strength.good {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
}

.password-strength.excellent {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid #2196f3;
}

.strength-header {
    margin-bottom: 1rem;
}

.strength-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.password-strength.very-weak .strength-header i {
    color: var(--error-color);
}

.password-strength.weak .strength-header i {
    color: #ff9800;
}

.password-strength.fair .strength-header i {
    color: #ffc107;
}

.password-strength.good .strength-header i {
    color: var(--success-color);
}

.password-strength.excellent .strength-header i {
    color: #2196f3;
}

.strength-meter {
    height: 10px;
    background: var(--surface);
    border-radius: 5px;
    overflow: hidden;
    margin: 1rem 0;
}

.meter-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.password-strength.very-weak .meter-fill {
    background: var(--error-color);
    width: 20%;
}

.password-strength.weak .meter-fill {
    background: #ff9800;
    width: 40%;
}

.password-strength.fair .meter-fill {
    background: #ffc107;
    width: 60%;
}

.password-strength.good .meter-fill {
    background: var(--success-color);
    width: 80%;
}

.password-strength.excellent .meter-fill {
    background: #2196f3;
    width: 100%;
}

.strength-score {
    margin: 0.5rem 0;
    font-weight: bold;
}

.strength-feedback {
    text-align: left;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.strength-feedback ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.password-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.password-info h4 {
    margin-top: 0;
}

/* Encryption Tool Styles */
.encryption-result {
    padding: 1rem;
}

.encryption-result h4 {
    margin-top: 0;
}

.result-text {
    margin: 1rem 0;
}

.result-text textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

.result-actions {
    text-align: center;
}

.encryption-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.encryption-info h4 {
    margin-top: 0;
}

.encryption-info .warning {
    color: var(--error-color);
    font-weight: bold;
}

.encryption-info ul {
    margin: 0.5rem 0;
}

/* Hash Generator Styles */
.hash-results {
    margin-top: 1rem;
}

.hash-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.hash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hash-header h5 {
    margin: 0;
}

.hash-value {
    font-family: monospace;
    word-break: break-all;
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

.hash-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.hash-info h4 {
    margin-top: 0;
}

.hash-info .warning {
    color: var(--warning-color);
    font-weight: bold;
}

/* UUID Generator Styles */
.uuid-list {
    margin-top: 1rem;
}

.uuid-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.uuid-index {
    font-weight: bold;
    margin-right: 1rem;
    min-width: 30px;
}

.uuid-value {
    flex: 1;
    font-family: monospace;
    word-break: break-all;
    margin-right: 1rem;
}

.uuid-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.uuid-info h4 {
    margin-top: 0;
}

/* JWT Decoder Styles */
.jwt-results {
    margin-top: 1rem;
}

.jwt-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.jwt-section h4 {
    margin-top: 0;
}

.jwt-content {
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    padding: 1rem;
    background: var(--background);
    border-radius: var(--border-radius);
    max-height: 200px;
    overflow-y: auto;
}

.jwt-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.jwt-info h4 {
    margin-top: 0;
}

.jwt-info .warning {
    color: var(--error-color);
    font-weight: bold;
}

/* URL Shortener Styles */
.url-results {
    margin-top: 1rem;
}

.url-item {
    margin-bottom: 1rem;
}

.url-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.url-value {
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    word-break: break-all;
}

.url-short {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-short a {
    flex: 1;
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--primary-color);
    word-break: break-all;
}

.url-short a:hover {
    text-decoration: underline;
}

.url-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.url-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.url-info h4 {
    margin-top: 0;
}

.url-info .warning {
    color: var(--warning-color);
    font-weight: bold;
}

/* VPN Checker Styles */
.vpn-results {
    margin-top: 1rem;
}

.ip-info {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.ip-address {
    display: flex;
    flex-direction: column;
}

.ip-address label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.ip-value {
    font-family: monospace;
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

.detection-result {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.detection-result.detected {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--error-color);
}

.detection-result.not-detected {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--success-color);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detection-result.detected .result-icon {
    color: var(--error-color);
}

.detection-result.not-detected .result-icon {
    color: var(--success-color);
}

.result-details {
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--background);
    border-radius: var(--border-radius);
}

.detail-item label {
    font-weight: bold;
}

.risk-none {
    color: var(--success-color);
}

.risk-low {
    color: var(--warning-color);
}

.risk-medium {
    color: var(--error-color);
}

.recommendations {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.recommendations h5 {
    margin-top: 0;
}

.vpn-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.vpn-info h4 {
    margin-top: 0;
}

.vpn-info .warning {
    color: var(--warning-color);
    font-weight: bold;
}

/* IP Lookup Styles */
.ip-results {
    margin-top: 1rem;
}

.ip-main-info {
    text-align: center;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.ip-address-display h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-family: monospace;
}

.ip-hostname {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ip-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .ip-details {
        grid-template-columns: 1fr;
    }
}

.detail-section {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.detail-section h5 {
    margin-top: 0;
}

.map-placeholder {
    text-align: center;
    padding: 2rem;
    margin-top: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ip-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.ip-info h4 {
    margin-top: 0;
}

/* SSL Checker Styles */
.ssl-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.ssl-header.valid {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid var(--success-color);
}

.ssl-header.invalid {
    background: rgba(244, 67, 54, 0.1);
    border: 2px solid var(--error-color);
}

.status-icon {
    font-size: 3rem;
    margin-right: 1rem;
}

.ssl-header.valid .status-icon {
    color: var(--success-color);
}

.ssl-header.invalid .status-icon {
    color: var(--error-color);
}

.status-info h4 {
    margin: 0 0 0.5rem 0;
}

.domain {
    font-family: monospace;
    font-size: 1.2rem;
}

.ssl-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 768px) {
    .ssl-details {
        grid-template-columns: 1fr;
    }
}

.ssl-details .detail-section {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.ssl-details .detail-section h5 {
    margin-top: 0;
}

.status-valid {
    color: var(--success-color);
    font-weight: bold;
}

.status-expired {
    color: var(--error-color);
    font-weight: bold;
}

.days-remaining {
    color: var(--success-color);
    font-weight: bold;
}

.days-expired {
    color: var(--error-color);
    font-weight: bold;
}

.ssl-recommendations {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.ssl-recommendations h5 {
    margin-top: 0;
}

.ssl-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.ssl-info h4 {
    margin-top: 0;
}

.ssl-info .warning {
    color: var(--warning-color);
    font-weight: bold;
}

/* Encryption Tool Styles */
.encryption-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.encryption-result h4 {
    margin-top: 0;
}

.result-text {
    margin: 1rem 0;
}

.result-text textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

.result-actions {
    text-align: center;
}

.encryption-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.encryption-info h4 {
    margin-top: 0;
}

.encryption-info .warning {
    color: var(--error-color);
    font-weight: bold;
}

/* Image Compressor Styles */
.compression-result {
    text-align: center;
}

.compression-result .image-preview {
    margin: 1rem 0;
}

.compression-result .size-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.compression-result .size-info p {
    margin: 0.5rem 0;
}

/* Image Resizer Styles */
.resize-result {
    text-align: center;
}

.resize-result .image-preview {
    margin: 1rem 0;
}

.resize-result .size-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Image Converter Styles */
.convert-result {
    text-align: center;
}

.convert-result .image-preview {
    margin: 1rem 0;
}

.convert-result .format-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Color Palette Styles */
.palette-result {
    text-align: center;
}

.palette-result .image-preview {
    margin: 1rem 0;
}

.palette-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.color-item {
    background: var(--surface);
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.color-info {
    margin: 0.5rem 0;
}

.color-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

/* Favicon Generator Styles */
.favicon-result {
    text-align: center;
}

.favicon-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1rem 0;
}

.favicon-item {
    text-align: center;
}

.favicon-item p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
}

/* Image Cropper Styles */
.crop-result {
    text-align: center;
}

.crop-result .image-preview {
    margin: 1rem 0;
}

.crop-result .crop-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Watermark Tool Styles */
.watermark-result {
    text-align: center;
}

.watermark-result .image-preview {
    margin: 1rem 0;
}

.watermark-result .watermark-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Base64 Encoder Styles */
.base64-result {
    text-align: center;
}

.base64-result .image-preview {
    margin: 1rem 0;
}

.base64-result .encoding-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* SVG Optimizer Styles */
.svg-result {
    text-align: center;
}

.svg-result .optimization-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.form-checkbox input {
    margin-right: 0.5rem;
}

.range-value {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CSS Minifier Styles */
.minify-result {
    text-align: center;
}

.minify-result .size-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.minify-result .size-info p {
    margin: 0.5rem 0;
}

/* XML Formatter Styles */
.format-result {
    text-align: center;
}

/* Regex Tester Styles */
.regex-result {
    text-align: center;
}

.matches-list {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    text-align: left;
}

.match-item {
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.match-item:last-child {
    border-bottom: none;
}

.regex-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Markdown Editor Styles */
#markdownPreview {
    overflow-y: auto;
    max-height: 500px;
}

#markdownPreview h1,
#markdownPreview h2,
#markdownPreview h3,
#markdownPreview h4,
#markdownPreview h5,
#markdownPreview h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

#markdownPreview p {
    margin: 0.5rem 0;
}

#markdownPreview code {
    background: var(--surface);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

#markdownPreview pre {
    background: var(--surface);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
}

#markdownPreview blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
}

/* API Tester Styles */
.api-result {
    text-align: center;
}

.response-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.response-info p {
    margin: 0.5rem 0;
}

.error-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

/* Code Diff Styles */
.code-diff {
    text-align: left;
    font-family: monospace;
    background: var(--surface);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.diff-line {
    display: flex;
    padding: 0.25rem 0;
}

.line-number {
    width: 40px;
    color: var(--text-secondary);
    text-align: right;
    padding-right: 1rem;
    user-select: none;
}

.line-content {
    flex: 1;
}

.diff-line.unchanged {
    color: var(--text-primary);
}

.diff-line.added {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.diff-line.removed {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
}

.diff-line.modified {
    background-color: rgba(255, 152, 0, 0.1);
    color: var(--warning-color);
}

.diff-stats {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.diff-stats p {
    margin: 0.5rem 0;
}

/* URL Encoder/Decoder Styles */
.url-result {
    text-align: center;
}

.encoding-info {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.encoding-info p {
    margin: 0.5rem 0;
}

/* HTML Entity Decoder Styles */
.entities-result {
    text-align: center;
}

/* Chart Generator Styles */
.chart-canvas {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* CSV Viewer Styles */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.05);
}

/* Numbers Display Styles */
.numbers-display,
.names-list {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
}

.number-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-weight: bold;
}

.number-badge.bonus {
    background: #ff9800;
}

.dice-display {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.dice-value {
    display: inline-block;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 3rem;
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.stat-item {
    padding: 1rem;
    background: var(--surface);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-item span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

/* Amazon Banner Utility Support */
.d-flex { display: flex; }
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-around { justify-content: space-around; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.bg-warning { background-color: rgba(255, 193, 7, 0.1); }
.border-top { border-top: 1px solid #ffc107; }
.border-bottom { border-bottom: 1px solid #ffc107; }
.d-block { display: block; }
.fw-bold { font-weight: 700; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.ms-1 { margin-left: 0.25rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.btn-sm { padding: 0.25rem 0.75rem; font-size: 0.875rem; border-radius: 4px; display: inline-block; text-decoration: none;}
.btn-warning { background-color: #ffc107; color: #000; border: none; }
.btn-warning:hover { background-color: #e0a800; transform: translateY(-1px); }
.d-none { display: none; }

@media (min-width: 576px) {
  .d-sm-inline { display: inline; }
}
@media (min-width: 768px) {
  .flex-md-row { flex-direction: row; }
}
