@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #ef4444;
    --secondary-hover: #dc2626;
    --success-color: #10b981;
    --success-bg: #f0fdf4;
    --success-border: #86efac;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --focus-ring: rgba(79, 70, 229, 0.4);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
    --gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    min-height: 100vh;
    padding: 24px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-nav {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 40px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.converter-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 500px;
    margin: 0 auto 40px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.converter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f9fafb;
    color: var(--text-main);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--focus-ring);
    background-color: #fff;
}

.arrow-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    opacity: 0.5;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-family: inherit;
    font-size: 1rem;
    gap: 8px;
}

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

.btn-outline:hover {
    background: #f9fafb;
    border-color: var(--text-muted);
}

.ads-wrapper {
    margin: 40px auto;
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Article Styles */
.info-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
    text-align: left;
    width: 100%;
}

.info-section h2 {
    font-size: 1.85rem;
    margin-bottom: 24px;
    margin-top: 48px;
    color: var(--text-main);
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
    line-height: 1.2;
}

.info-section h2:first-of-type {
    margin-top: 0;
}

.info-section h3 {
    font-size: 1.35rem;
    margin: 32px 0 16px 0;
    color: var(--text-main);
    font-weight: 600;
}

.info-section p {
    margin-bottom: 20px;
    color: #4b5563;
    line-height: 1.8;
}

.info-section ul,
.info-section ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.info-section li {
    margin-bottom: 12px;
    color: #4b5563;
}

.table-responsive {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.info-section table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.info-section th,
.info-section td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.info-section th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--text-main);
}

.info-section tr:last-child td {
    border-bottom: none;
}

.info-section tr:nth-child(even) {
    background: #fcfcfd;
}

.converter-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px auto 60px auto;
    width: 100%;
}

.flash-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.flash-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: linear-gradient(to bottom, #ffffff, #f8faff);
}

.card-icon {
    font-size: 2rem;
    background: #f3f4f6;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.flash-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: #eef2ff;
}

.card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.flash-card:hover .card-title {
    color: var(--primary-color);
}

.faq-item {
    margin-bottom: 32px;
}

.faq-item h3 {
    margin-bottom: 12px;
}

footer {
    width: 100%;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

@media (max-width: 640px) {
    header h1 {
        font-size: 2rem;
    }

    .converter-card {
        padding: 24px;
    }

    .btn {
        width: 100%;
    }
}