@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', 'Arial', sans-serif;
    background: #f0f2f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    background: #1a3c6b;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    font-size: 0.9rem;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f2f5;
}

.card-header h1 {
    color: #1a3c6b;
    font-size: 1.5rem;
}

.card-header h2 {
    color: #1a3c6b;
    font-size: 1.2rem;
}

.login-card {
    max-width: 450px;
    margin: 60px auto;
    text-align: center;
}

.form-group {
    margin-bottom: 18px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a3c6b;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: #1a3c6b;
    color: white;
}

.btn-primary:hover {
    background: #14305a;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-info {
    background: #3498db;
    color: white;
}

.btn-info:hover {
    background: #2980b9;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .info-grid { grid-template-columns: 1fr; }
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    color: #888;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.cert-status {
    text-align: center;
    padding: 30px;
}

.cert-ready p {
    color: #27ae60;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.cert-pending p {
    color: #888;
    margin-bottom: 8px;
}

.text-muted {
    color: #888;
    font-size: 0.9rem;
}

.mt-2 {
    margin-top: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.link-muted {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
}

.link-muted:hover {
    color: #1a3c6b;
}

input[type="file"] {
    padding: 10px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    width: 100%;
    background: #fafafa;
}
