@font-face {
    font-family: Iransans;
    src: url(IRANSANS/woff2/IRANSansWeb.woff2) format(woff);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: Iransans;
}

.admin-panel {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar {
    width: 250px;
    background: #0a9d94;
    color: #fff;
    padding: 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    padding: 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}

.sidebar li i {
    margin-left: 10px;
}

.sidebar li:hover {
    background: #054d44;
}

.sidebar li.active {
    background: #054d44;
}

.content {
    flex: 1;
    padding: 20px;
}

.section {
    display: none;
}

.section h3 {
    color: #0a9d94;
    margin-bottom: 15px;
}

.add-btn {
    background: #0a9d94;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
}

.add-btn:hover {
    background: #054d44;
}

.items-list {
    max-height: 400px;
    overflow-y: auto;
}

.item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 10px;
}

.item-details {
    flex: 1;
    color: #0a9d94;
}

.item-actions {
    display: flex;
    gap: 5px;
}

.item-actions button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.item-actions .edit-btn, .item-actions .activate-btn {
    background: #28a745;
    color: #fff;
}

.item-actions .edit-btn:hover, .item-actions .activate-btn:hover {
    background: #218838;
}

.item-actions .members-btn {
    background: #007bff;
    color: #fff;
}

.item-actions .members-btn:hover {
    background: #0069d9;
}

.item-actions .delete-btn, .item-actions .reject-btn {
    background: #dc3545;
    color: #fff;
}

.item-actions .delete-btn:hover, .item-actions .reject-btn:hover {
    background: #c82333;
}

.item-actions .accept-btn {
    background: #0a9d94;
    color: #fff;
}

.item-actions .accept-btn:hover {
    background: #054d44;
}

    .item-actions .acceptR-btn {
        background: #0a9d94;
        color: #fff;
    }

        .item-actions .acceptR-btn:hover {
            background: #054d44;
        }

/* استایل مودال */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #000;
}

.members-list {
    max-height: 300px;
    overflow-y: auto;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.member-item label {
    flex: 1;
}

.member-item input[type="checkbox"] {
    margin-left: 10px;
    accent-color: #0a9d94;
}

.member-item .toggle-role-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.member-item .toggle-role-btn:hover {
    background: #0069d9;
}

.save-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    width: 100%;
}

.save-btn:hover {
    background: #218838;
}


















/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}*/

.login-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 24px;
}

.login-header {
    background: #0a9d94;
    color: #fff;
    padding: 15px;
    text-align: center;
}

    .login-header h2 {
        margin: 0;
    }

.form-group {
    margin-block: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: white;
        text-align: center;
    }

    .form-group input {
        width: 100%;
        padding: 8px;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 16px;
    }

        .form-group input:focus {
            border-color: #0a9d94;
            outline: none;
        }

button[type="submit"] {
    width: 100%;
    padding: 10px;
    background: white;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #098981;
    transition: background-color .2s, color .2s;
}

    button[type="submit"]:hover {
        background: #054d44;
        color: white;
    }

