/* css/style.css */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary: #4a90e2;
    --primary-hover: #357abd;
    --success: #28a745;
    --danger: #dc3545;
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
    --radius: 10px;
}

body {
    font-family: 'Vazirmatn', sans-serif !important;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
    direction: rtl;
    text-align: right;
    color: #444;
}

/* --- Login Page Styles --- */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #ece9e6 0%, #ffffff 100%);
}

.auth-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-box h2 { margin-bottom: 20px; color: var(--primary); }
.auth-switch { margin-top: 20px; font-size: 14px; }
.auth-switch a { color: var(--primary); text-decoration: none; font-weight: bold; }

/* --- Navbar --- */
.navbar {
    background: var(--white);
    padding: 15px 10%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.brand { font-weight: 900; font-size: 22px; color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 20px; align-items: center; font-size: 14px;}
.nav-links a { text-decoration: none; color: #666; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }
.btn-logout { color: var(--danger) !important; }

/* --- Forms & Inputs --- */
.container { max-width: 950px; margin: 0 auto; padding-bottom: 50px; }
.card { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }

h3 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin: 30px 0 20px 0; color: #555; font-size: 16px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: bold; color: #666; }

input, textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif; box-sizing: border-box; transition: 0.3s; background: #fafafa;
}
input:focus { border-color: var(--primary); background: #fff; outline: none; }

/* --- Buttons --- */
.btn {
    padding: 12px 20px; border: none; border-radius: 6px; cursor: pointer;
    font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: bold; transition: 0.3s;
}
.btn-primary { background: var(--primary); color: white; width: 100%; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-danger { background: var(--danger); color: white; }
.btn-add { background: #eef2f5; color: #333; width: 100%; border: 1px dashed #ccc; }
.btn-add:hover { background: #e2e6ea; }

/* --- Invoice Specific --- */
.row-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.invoice-footer { background: #f8f9fa; padding: 20px; border-radius: var(--radius); margin-top: 30px; border: 1px solid #eee; }
.total-display { font-size: 22px; color: var(--primary); font-weight: 900; float: left; }

@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } .row-item { flex-direction: column; } }