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

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

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

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background-color: #001233;
    width: 250px;
    padding: 2rem 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: fixed;
    height: 100%;
    top: 0;
    right: 0;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.sidebar h2 {
    text-align: center;
    font-size: 1.5rem;
}

.sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.7rem;
    border-radius: 5px;
    display: block;
    transition: background 0.3s ease;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background-color: rgba(255,255,255,0.2);
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    background-color: #001233;
    border: none;
    color: #fff;
    padding: 0.5rem 0.7rem;
    font-size: 1.5rem;
    border-radius: 5px;
    cursor: pointer;
}

.main-content {
    margin-right: 250px;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-content h1 {
    margin-bottom: 2rem;
    color: #333;
}

.form-card, .profile-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.profile-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.profile-card h2 {
    margin-bottom: 0.5rem;
}

.profile-card p {
    color: #777;
}

.form-card label {
    font-weight: bold;
    text-align: right;
}

.form-card input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s ease;
}

.form-card input:focus {
    border-color: #001233;
}

.btn {
    padding: 0.7rem;
    background-color: #001233;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: bold;
}

.btn:hover {
    background-color: #000d1f;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
        padding: 1rem;
    }
}