* { box-sizing: border-box; }

body {
    font-family: Tahoma, Arial, sans-serif;
    background: #f2f4f7;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    direction: rtl;
}

.card {
    background: #fff;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 380px;
}

.card h1 {
    font-size: 20px;
    margin: 0 0 20px;
    text-align: center;
    color: #222;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #444;
}

input[type=text], input[type=password], input[type=date], input[type=number] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #d5d9e0;
    border-radius: 6px;
    font-size: 14px;
}

button, .btn {
    width: 100%;
    padding: 11px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

button:hover, .btn:hover { background: #1d4ed8; }

.error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.success {
    background: #dcfce7;
    color: #15803d;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 16px;
}

.wide { max-width: 900px; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: right;
}

th { background: #f8f9fb; }

.badge {
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.badge-active { background: #dcfce7; color: #15803d; }
.badge-expired { background: #fee2e2; color: #b91c1c; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.top-bar a { color: #2563eb; text-decoration: none; font-size: 14px; }
