﻿
.user-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}
.search-box {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}
/* User Table */
.table-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

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

    .user-table th {
        background-color: var(--off-white);
        color: var(--dark-brown);
        font-weight: 600;
        text-align: left;
        padding: 15px;
        font-size: 0.9rem;
        border-bottom: 1px solid var(--light-gray);
    }

    .user-table td {
        padding: 15px;
        border-bottom: 1px solid var(--light-gray);
        font-size: 0.9rem;
    }

    .user-table tr:last-child td {
        border-bottom: none;
    }

    .user-table tr:hover {
        background-color: var(--off-white);
    }

.user-info {
    display: flex;
    align-items: center;
}

.user-avatar-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--dark-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    margin-right: 10px;
    font-size: 0.85rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name-table {
    font-weight: 600;
    color: var(--dark-brown);
}

.user-email {
    font-size: 0.85rem;
    color: var(--gray);
}

.user-role-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
}

.role-admin {
    background-color: rgba(243, 124, 34, 0.1);
    color: var(--orange);
}

.role-editor {
    background-color: rgba(47, 88, 198, 0.1);
    color: var(--blue);
}

.role-viewer {
    background-color: rgba(75, 192, 75, 0.1);
    color: #4BC04B;
}

.status-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #4BC04B;
}

.status-inactive {
    background-color: var(--gray);
}

.user-status {
    display: flex;
    align-items: center;
}

.date {
    color: var(--gray);
}

.actions {
    display: flex;
    align-items: center;
}

.action-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    background-color: transparent;
    margin-left: 10px;
}

    .action-icon:hover {
        background-color: var(--light-gray);
    }

    .action-icon.edit {
        color: var(--blue);
    }

    .action-icon.delete {
        color: #EF4747;
    }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 20px;
}

.pagination-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    color: var(--dark-gray);
    cursor: pointer;
    transition: var(--transition);
    margin: 0 5px;
}

    .pagination-button:hover {
        background-color: var(--off-white);
    }

    .pagination-button.active {
        background-color: #b5986b;
        color: var(--white);
        border-color: #b5986b;
    }

    .pagination-button.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* User Modal */
.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

    .modal-background.show {
        display: flex;
    }

.modal-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.modal-close {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

    .modal-close:hover {
        color: var(--dark-brown);
    }

.modal-body {
    padding: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: 0 0 0 2px rgba(47, 88, 198, 0.1);
    }

.form-description {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.form-toggle {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    margin-right: 10px;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-gray);
    transition: var(--transition);
    border-radius: 34px;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: var(--white);
        transition: var(--transition);
        border-radius: 50%;
    }

input:checked + .toggle-slider {
    background-color: var(--blue);
}

    input:checked + .toggle-slider:before {
        transform: translateX(30px);
    }

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 70px;
    }

    .content {
        margin-left: 70px;
    }

    .sidebar .menu-item-text {
        opacity: 0;
        width: 0;
    }

    .sidebar .logo {
        font-size: 1.2rem;
    }

    .sidebar-toggle {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }

    .header-title {
        display: none;
    }

    .main {
        padding: 15px;
    }

    .user-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box {
        width: 100%;
        max-width: none;
    }

    .user-table {
        display: block;
        overflow-x: auto;
    }

    .modal-footer {
        flex-direction: column;
    }

        .modal-footer .btn {
            width: 100%;
        }
}

@media (max-width: 576px) {
    .sidebar {
        width: 0;
        transform: translateX(-100%);
    }

    .content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .user-name, .user-role {
        display: none;
    }

    .language-switcher {
        margin: 0 10px;
    }

    .filter-item {
        margin-right: 0;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .pagination {
        justify-content: center;
    }
}

 
