* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazir', 'Tahoma', sans-serif;
}

body {
    background: #f5f5f5;
    color: #333;
    line-height: 1.7;
}

header {
    background: linear-gradient(135deg, #8B0000, #C41E3A);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3em;
    font-weight: bold;
}

header nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

header nav a {
    color: white;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

header nav a:hover,
header nav a.active {
    background: rgba(255, 255, 255, 0.2);
}

main {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

h1 {
    color: #8B0000;
    font-size: 1.8em;
    margin-bottom: 12px;
}

h2 {
    color: #333;
    border-bottom: 3px solid #C41E3A;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.card h3 {
    color: #8B0000;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, #8B0000, #C41E3A);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.btn-secondary {
    background: #666;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #888;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 0.95em;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8B0000;
    outline: none;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

table thead {
    background: #8B0000;
    color: white;
}

table th {
    padding: 12px 15px;
    text-align: right;
    white-space: nowrap;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

table tr:hover td {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.status-badge.admin {
    background: #ffebee;
    color: #c62828;
}

.status-badge.user {
    background: #e3f2fd;
    color: #0d47a1;
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #999;
}

.empty-state .icon {
    font-size: 3em;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    nav {
        justify-content: center;
    }
    section {
        padding: 20px;
    }
    table {
        font-size: 0.8em;
    }
    table th,
    table td {
        padding: 6px 8px;
    }
}