@font-face {
    font-family: 'IRANSansMobile';
    src: url('/assets/IRANSansMobile_Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSansMobile', Tahoma, sans-serif;
    background: #f5f7fa;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    border-right: 5px solid #3498db;
    padding-right: 15px;
}

h2 {
    font-size: 1.4rem;
    margin: 25px 0 15px 0;
    color: #34495e;
}

.stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.stat-box {
    background: #ecf0f1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    flex: 1;
    text-align: center;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn-sale {
    background: #27ae60;
    color: white;
}
.btn-sale:hover {
    background: #2ecc71;
}

.btn-purchase {
    background: #e67e22;
    color: white;
}
.btn-purchase:hover {
    background: #f39c12;
}

.btn-list {
    background: #3498db;
    color: white;
}
.btn-list:hover {
    background: #2980b9;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.invoice-table th,
.invoice-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: center;
}

.invoice-table th {
    background: #34495e;
    color: white;
    font-weight: bold;
}

.invoice-table tr:nth-child(even) {
    background: #f9f9f9;
}

.btn-print {
    background: #95a5a6;
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
}
.btn-print:hover {
    background: #7f8c8d;
}

@media (max-width: 768px) {
    .stats, .actions {
        flex-direction: column;
    }
    .invoice-table {
        font-size: 0.8rem;
    }
}
.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    display: inline-block;
}
.btn-logout:hover {
    background: #c0392b;
}