:root {
            --primary: #f43f5e;
            --primary-hover: #e11d48;
            --bg: #111827;
            --card-bg: #1f2937;
            --text: #f9fafb;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }

        body {
            background-color: var(--bg);
            color: var(--text);
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
            transition: direction 0.3s ease;
        }

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

        h1 {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 10px;
        }

        .card {
            background-color: var(--card-bg);
            padding: 40px;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            width: 100%;
            max-width: 500px;
            margin-bottom: 40px;
        }

        .input-group {
            margin-bottom: 25px;
        }

        label {
            display: block;
            margin-bottom: 10px;
            font-size: 1.1rem;
            color: #9ca3af;
        }

        input[type="date"], input[type="number"] {
            width: 100%;
            padding: 15px;
            font-size: 1.2rem;
            border-radius: 8px;
            border: 1px solid #374151;
            background: #374151;
            color: white;
            outline: none;
        }
        
        input[type="date"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }

        button {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 15px 30px;
            font-size: 1.1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.2s;
            width: 100%;
            font-weight: bold;
        }

        button:hover {
            background-color: var(--primary-hover);
        }

        #result-container {
            margin-top: 30px;
            display: none;
            animation: fadeIn 0.5s;
            text-align: center;
        }

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

        .highlight {
            font-size: 1.8rem;
            color: var(--primary);
            font-weight: bold;
            margin: 15px 0;
            background: rgba(244, 63, 94, 0.1);
            padding: 10px;
            border-radius: 8px;
        }

        .seo-content {
            max-width: 800px;
            line-height: 1.8;
            color: #d1d5db;
        }
        .seo-content h2 {
            color: white;
            margin-top: 20px;
        }
        
        /* RTL support */
        [dir="rtl"] {
            text-align: right;
        }
        [dir="rtl"] header {
            text-align: center;
        }
        [dir="rtl"] #result-container {
            text-align: center;
        }

/* Footer */
footer {
    width: 100%;
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid var(--card-bg);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}
.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: var(--primary);
}
.copyright {
    color: #6b7280;
    font-size: 0.85rem;
}

/* Static Pages */
.page-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    margin-bottom: 40px;
    line-height: 1.7;
}
.page-card h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #374151;
    padding-bottom: 15px;
    color: var(--primary);
}
.page-card h2 {
    font-size: 1.5rem;
    color: #f9fafb;
    margin: 30px 0 15px 0;
}
.page-card p {
    margin-bottom: 15px;
    color: #d1d5db;
    font-size: 1.05rem;
}
.page-card ul, .page-card ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #d1d5db;
    font-size: 1.05rem;
}
.page-card li {
    margin-bottom: 8px;
}
.page-card a {
    color: var(--primary);
    text-decoration: none;
}
.page-card a:hover {
    text-decoration: underline;
}
.nav-back {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
}
.nav-back a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.nav-back a:hover {
    color: var(--text);
}
