* { box-sizing: border-box; }

body {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    color: #1f2937;
    direction: rtl;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px;
}

.navbar {
    background: #1e3a8a;
    color: #fff;
    padding: 14px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin-right: 16px;
    font-size: 14px;
}

.navbar .brand {
    font-weight: bold;
    font-size: 18px;
    margin-right: 0;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

h1, h2, h3 { margin-top: 0; }

label {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    font-weight: bold;
    color: #374151;
}

input[type=text], input[type=password], input[type=date], input[type=number], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    direction: rtl;
}

textarea { resize: vertical; min-height: 80px; }

.btn {
    display: inline-block;
    background: #1e3a8a;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    margin-top: 14px;
}

.btn:hover { background: #16306e; }

.btn-danger { background: #b91c1c; }
.btn-danger:hover { background: #931515; }

.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #565c66; }

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #86efac; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

th, td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

th { background: #f3f4f6; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.badge-completed { background: #dcfce7; color: #166534; }
.badge-failed { background: #fee2e2; color: #991b1b; }
.badge-in_progress { background: #fef9c3; color: #854d0e; }

.search-hero {
    text-align: center;
    padding: 40px 16px;
}

.search-hero h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.search-hero p {
    color: #6b7280;
    margin-bottom: 24px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.muted { color: #6b7280; font-size: 13px; }
