* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 12px;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 15px 0;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    text-decoration: none;
}

.logout-btn:hover {
    background: #c82333;
}

.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.datetime {
    text-align: center;
    margin-bottom: 25px;
}

.date {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.time {
    font-size: 36px;
    font-weight: bold;
    color: #333;
    letter-spacing: 2px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    margin: 10px 0;
}

.status-in {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-out {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
    width: 100%;
    text-align: center;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 11px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.table th {
    background: #f8f9fa;
    padding: 10px;
    text-align: right;
    border-bottom: 2px solid #dee2e6;
    font-weight: bold;
    color: #495057;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.table tr:hover {
    background: #f8f9fa;
}

.badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.action-btns {
    display: flex;
    gap: 5px;
}

.login-box {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 11px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: 6px;
    padding: 25px;
    width: 90%;
    max-width: 350px;
}

.modal-title {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
}

.link {
    color: #007bff;
    text-decoration: none;
    font-size: 12px;
}

.link:hover {
    text-decoration: underline;
}


.filter-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.filter-header {
    padding: 8px 10px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.filter-header:hover {
    background: #e9ecef;
}

.filter-title {
    font-size: 13px;
    font-weight: bold;
    color: #495057;
    margin: 0;
}

.filter-icon {
    font-size: 12px;
    transition: transform 0.3s;
    color: #6c757d;
}

.filter-icon.active {
    transform: rotate(180deg);
}

.filter-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 15px;
}

.filter-body.open {
    max-height: 500px;
    padding: 15px;
}

.filter-form {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item label {
    font-size: 11px;
    color: #666;
}

.filter-select, .filter-input {
    padding: 7px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: white;
}

.filter-select {
    min-width: 120px;
}

.filter-input {
    width: 110px;
}

.btn-filter {
    padding: 7px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-apply {
    background: #007bff;
    color: white;
}

.btn-apply:hover {
    background: #0056b3;
}

.btn-clear {
    background: #6c757d;
    color: white;
}

.btn-clear:hover {
    background: #545b62;
}

.filter-divider {
    border: none;
    border-top: 1px solid #dee2e6;
    margin: 15px 0;
}

.filter-label {
    font-size: 11px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 8px;
}