/*
Theme Name: SANRU AI Elementor
Theme URI: https://ai.sanru.ac.ir/
Author: FSI & ChatGPT (GPT-5.1 Thinking)
Author URI: https://ai.sanru.ac.ir/
Description: Custom SANRU AI theme optimized for Elementor with front-end login and request flow.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanru-ai-elementor
*/

:root{
  --primary:#0b6e4f;
  --primary-soft:#2aa876;
  --accent:#f4b400;
  --muted:#6b6b6b;
  --bg:#f7f7f7;
  --maxw:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Vazirmatn",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:var(--bg);
  color:#222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}

/* Layout */
.ai-wrap{max-width:var(--maxw);margin:0 auto;padding:24px;}
.ai-main{min-height:60vh}
.ai-page-content{background:#fff;border-radius:10px;padding:18px;}
.ai-page-title{margin:0 0 16px;font-size:24px;color:var(--primary);}

/* Header */
.ai-header{
  background:#fff;
  border-bottom:1px solid #e7e7e7;
  position:sticky;
  top:0;
  z-index:50;
  box-shadow:0 1px 0 rgba(0,0,0,0.03);
}
.ai-header-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:12px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.ai-brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.ai-brand-logo{
  height:44px;
  width:44px;
  border-radius:8px;
  background:linear-gradient(135deg,#0b6e4f,#2aa876);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-weight:700;
  font-size:18px;
}
.ai-brand h1{
  font-size:18px;
  margin:0;
  font-weight:700;
  color:var(--primary);
}
.ai-subtitle{
  font-size:13px;
  color:var(--muted);
}

/* Nav */
.ai-nav ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:12px;
  align-items:center;
}
.ai-nav li{margin:0;}
.ai-nav a{
  color:#333;
  text-decoration:none;
  padding:8px 12px;
  border-radius:6px;
  font-weight:500;
  font-size:14px;
}
.ai-nav a:hover{
  background:#f2f2f2;
}
.ai-nav a.ai-login-link{
  background:var(--primary);
  color:#fff;
}
.ai-nav a.ai-login-link:hover{
  background:#09533c;
}

/* Footer */
.ai-footer{
  margin-top:28px;
  background:#fff;
  border-top:1px solid #e7e7e7;
}
.ai-footer-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:16px 24px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

/* Buttons (for Elementor CSS classes) */
.button-ai{
  display:inline-block;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  border:none;
  font-size:14px;
}
.button-ai-primary{
  background:var(--primary);
  color:#fff;
}
.button-ai-primary:hover{
  background:#09533c;
}
.button-ai-ghost{
  border:1px solid var(--primary);
  color:var(--primary);
  background:transparent;
}
.button-ai-ghost:hover{
  background:rgba(11,110,79,0.05);
}

/* Auth layout (login/register page) */
.ai-auth-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:24px 20px 40px;
}
.ai-auth-hero{
  background:linear-gradient(90deg, rgba(11,110,79,0.12), rgba(42,168,118,0.04));
  border-radius:12px;
  padding:24px;
  margin-bottom:24px;
}
.ai-auth-hero h2{
  margin:0 0 10px;
  font-size:24px;
  color:var(--primary);
}
.ai-auth-hero p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
.ai-auth-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px;
}
.ai-auth-box{
  background:#fff;
  border-radius:10px;
  padding:18px;
  box-shadow:0 4px 14px rgba(0,0,0,0.04);
}
.ai-auth-box h3{
  margin:0 0 10px;
  color:var(--primary);
}
.ai-auth-form label{
  display:block;
  margin-bottom:10px;
  font-size:14px;
  color:var(--muted);
}
.ai-auth-form input{
  width:100%;
  padding:8px 10px;
  border-radius:6px;
  border:1px solid #ddd;
  margin-top:4px;
  font-size:14px;
}
.ai-auth-error,
.ai-auth-success{
  border-radius:6px;
  padding:8px 10px;
  font-size:13px;
  margin-bottom:10px;
}
.ai-auth-error{
  background:#ffe5e5;
  color:#b3261e;
}
.ai-auth-success{
  background:#e6f4ea;
  color:#0b6e4f;
}

@media (max-width:900px){
  .ai-auth-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:768px){
  .ai-header-inner{
    flex-direction:column;
    align-items:flex-start;
  }
  .ai-nav ul{
    flex-wrap:wrap;
  }
}
