
@font-face {
  font-family: Vazirmatn;
  src: url('fonts/webfonts/Vazirmatn-FD-NL-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


body {
    font-family: 'Vazirmatn' !important;
    direction: rtl;
    text-align: right;
}

img.device-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid;
  padding: 2px;
}
.performance-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}
span.text-left {
  float: left;
  font-weight: 1 !important;
  font-size: 20px;
}
a.text-left {
  float: left;
  font-weight: 1 !important;
  font-size: 15px;
}
span.text-right {
  float: right;
  font-weight: 1 !important;
  font-size: 20px;
}
form.update_service_date , form.delete_performance {
  margin: 0;
  padding: 0;
  display: contents;
}

.stat-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    text-align: center;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}
.stat-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.stat-box h3 {
    font-size: 1.5rem;
    color: #333;
}
.stat-box p {
    font-size: 1.2rem;
    color: #666;
}


.container {
    max-width: 1200px;
}

/* کارت‌ها */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
    padding: 15px;
    border-radius: 12px 12px 0 0;
}

/* جداول */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    vertical-align: middle;
    padding: 12px;
}

.table td {
    vertical-align: middle;
    padding: 12px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff;
}

.table-hover tbody tr:hover {
    background-color: #e9ecef;
}

/* دکمه‌ها */
.btn {
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #b02a37;
    border-color: #b02a37;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.875rem;
}

/* تصویر دستگاه */
.device-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* بخش عملکردها */
.performance-box {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.performance-box:hover {
    transform: translateY(-5px);
}

.performance-box .alert {
    margin-bottom: 0;
    border-radius: 8px;
}

/* سرصفحه‌ها */
.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    border-radius: 12px;
    padding: 15px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* مودال */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}


/* فاصله‌گذاری و ترازبندی */
.mt-5 {
    margin-top: 3rem !important;
}

.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.ltr {
    direction: ltr;
    text-align: left;
}