/*
Theme Name: AdminFlow Pro
Theme URI: https://eslamdev.com/
Author: EsLaM Hamed
Author URI: https://eslamdev.com
Description: A premium, ultra-fast Light Mode SaaS WordPress theme tailored specifically for selling AdminFlow Pro. Fully RTL and WPML ready.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: adminflow-pro
Tags: saas, light-mode, rtl-language-support, premium
*/

/* Reset & Base */
:root {
    --bg-color: #f8fafc;
    --text-color: #1e293b;
    --primary-color: #4f46e5;
    --secondary-color: #0ea5e9;
    --accent-color: #8b5cf6;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* RTL Support - Force Arial */
body.rtl, html[dir="rtl"] body, html[lang^="ar"] body {
    font-family: Arial, sans-serif !important;
}

body.rtl *, html[dir="rtl"] *, html[lang^="ar"] * {
    font-family: Arial, sans-serif !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.5px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Buttons (Strictly no text color change on hover) */
.button, button, input[type="submit"], a.button {
    color: #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.button:hover, button:hover, input[type="submit"]:hover, a.button:hover {
    color: #ffffff !important; /* Forces color to stay white */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Screen Reader Text - Required by WordPress */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* WordPress Required Classes */
.wp-caption {
    max-width: 100%;
    margin-bottom: 1.5em;
}

.wp-caption img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wp-caption-text {
    text-align: center;
    font-style: italic;
    color: var(--text-color);
    padding: 0.5em 0;
}

.sticky {
    display: block;
}

.gallery-caption {
    display: block;
    font-size: 0.875em;
    color: var(--text-color);
}

.bypostauthor {
    display: block;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* WooCommerce Overrides */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #fff;
}

.woocommerce span.onsale {
    background-color: var(--primary-color);
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79,70,229,0.2);
}

/* Light SaaS Cart/Checkout Tables & Forms */
.woocommerce table.shop_table {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.woocommerce table.shop_table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px;
}

.woocommerce table.shop_table td {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px;
    color: #0f172a;
}

.woocommerce-cart .cart-collaterals .cart_totals, 
.woocommerce-checkout #customer_details {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.woocommerce form .form-row input.input-text, 
.woocommerce form .form-row textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 12px;
    color: #0f172a;
    transition: border-color 0.2s;
}

.woocommerce form .form-row input.input-text:focus, 
.woocommerce form .form-row textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.woocommerce form .form-row label {
    color: #475569;
    font-weight: 500;
}

.woocommerce-checkout #payment {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.woocommerce-checkout #payment div.payment_box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: #ffffff;
}

/* Fix Notices */
.woocommerce-error, .woocommerce-info, .woocommerce-message {
    background: #ffffff;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    color: #0f172a;
}

.woocommerce-error { border-left-color: #ef4444; }
.woocommerce-message { border-left-color: #10b981; }