* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #1e293b;
}

/* main profile card */
.dashboard-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.dashboard-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 10px solid #003b7e;
    padding: 40px;
}

/* header */
.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header img {
    width: 70px;
    margin-bottom: 15px;
}

.dashboard-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #003b7e;
    margin-bottom: 8px;
}

.dashboard-header p {
    font-size: 14px;
    color: #64748b;
}


/* profile info */

.profile-info {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px dashed #cbd5e1;
}

.info-row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.info-value {
    font-size: 15px;
    font-weight: 700;
    color: #003b7e;
}


/* buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: #003b7e;
    color: #ffffff;
    border: none;
}
.btn-primary:hover {
    background: #002855;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 59, 126, 0.2);
}

.btn-danger {
    background: #ffffff;
    color: #ef4444;
    border: 2px solid #ef4444;
}
.btn-danger:hover {
    background: #fef2f2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* error box */
.output-container {
    width: 100%;
}

#out {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
    margin: 0;
}

#out:not(:empty) {
    opacity: 1;
    visibility: visible;
    max-height: 200px;
    padding: 15px;
}

#out.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    text-align: right;
    white-space: pre-wrap;
}

/* responsive */
@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
    }
    .dashboard-card {
        padding: 30px 20px;
    }
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
