/* =========================
   🌑 PISHI ERP DARK UI (CLEAN VERSION)
========================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600;700&display=swap');

/* ================= BASE ================= */

* {
    box-sizing: border-box;
    transition: all 0.2s ease;
}

body {
    font-family: 'Vazirmatn', Tahoma, Arial;
    direction: rtl;
    margin: 0;
    padding: 20px;
    background: #0f172a;
    color: #e5e7eb;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* ================= HEADINGS ================= */

h1, h2, h3 {
    text-align: center;
    color: #f8fafc;
    margin-bottom: 20px;
}

/* ================= CARDS / BOX ================= */

.box,
.card {
    background: #1b2230;
    border: 1px solid #2b3448;
    padding: 18px;
    border-radius: 16px;
    margin-top: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.box:hover,
.card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
}

/* ================= DASHBOARD ================= */

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* ================= LINKS ================= */

a {
    color: #38bdf8;
    text-decoration: none;
}

a:hover {
    color: #22d3ee;
}

/* ================= FORMS ================= */

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin: 6px 0 14px;
    border-radius: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e5e7eb;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56,189,248,.2);
    outline: none;
}

/* ================= BUTTONS REDESIGN ================= */

button,
.btn {
    background: linear-gradient(135deg,#38bdf8,#0284c7);
    color: #fff;
    border: 0;
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(56,189,248,.25);
    width: 100%;
    display: block;
    margin-top: 8px;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56,189,248,.35);
}

.btn-success{
    background: linear-gradient(135deg,#22c55e,#15803d);
}

.btn-danger{
    background: linear-gradient(135deg,#ef4444,#b91c1c);
}

.btn-warning{
    background: linear-gradient(135deg,#f59e0b,#d97706);
}

.btn-info{
    background: linear-gradient(135deg,#38bdf8,#0284c7);
}

.btn-orange{
    background: linear-gradient(135deg,#f87238,#ea580c);
}

.btn-gray{
    background: linear-gradient(135deg,#475569,#334155);
}
/* ================= TABLE REDESIGN ================= */

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #111827;
    border: 1px solid #2b3448;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

thead th,
table th {

    background: linear-gradient(
        135deg,
        #1e293b,
        #334155
    );

    color: #38bdf8;
    font-weight: 700;
    padding: 14px;
    border-bottom: 1px solid #475569;
}

table td {

    padding: 12px;
    color: #e5e7eb;
    border-bottom: 1px solid #263142;
}

table tr:nth-child(even) {
    background: #182233;
}

table tr:nth-child(odd) {
    background: #111827;
}

table tr:hover {

    background: rgba(56,189,248,.08);
}

table tr:hover td {

    color: #fff;
}

/* ================= FILTER ================= */

.filter-box {
    background: #111827;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #1f2937;
}

/* ================= CHARTS ================= */

.charts {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.chart-box {
    flex: 1;
    min-width: 300px;
    background: #111827;
    border: 1px solid #1f2937;
    padding: 15px;
    border-radius: 14px;
}

/* ================= PRINT ================= */

@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }

    * {
        visibility: hidden !important;
    }

    #printArea,
    #printArea * {
        visibility: visible !important;
    }

    #printArea {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
    }

    .no-print {
        display: none !important;
    }
}

/* ================= SCROLLBAR ================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #38bdf8;
}
/* =========================
   QUICK CARDS
========================= */

.quick-cards{
    width:100%;
}

.quick-card{
    width:100%;
    margin-bottom:20px;
    text-align:center;
}

.quick-card h2,
.quick-card h3,
.quick-card h4{
    color:#38bdf8;
    margin-bottom:15px;
}

.quick-card a{
    display:block;
    color:#f87238;
    margin:8px 0;
    font-weight:600;
}

.quick-card a:hover{
    color:#38bdf8;
}