/* dashboard.css */

/* General styles for the dashboard */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
}

/* Container for the dashboard */
.dashboard-container {
    display: flex;
    flex-direction: row;
    margin: 20px;
}

/* Sidebar for navigation */
.sidebar {
    background-color: #1c1c1e;
    color: white;
    width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Sidebar links */
.sidebar a {
    text-decoration: none;
    color: white;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.sidebar a:hover {
    background-color: #3b3b3d;
}

/* Dashboard header */
.dashboard-header {
    background-color: #4e73df;
    color: white;
    padding: 15px;
    text-align: center;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin: 0;
}

/* User Dashboard Section */
.user-dashboard {
    flex-grow: 1;
    padding: 20px;
}

.user-dashboard h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Support ticket table */
.support-table {
    width: 100%;
    border-collapse: collapse;
}

.support-table th, .support-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.support-table th {
    background-color: #f1f1f1;
    font-weight: bold;
}

.support-table tr:hover {
    background-color: #f9f9f9;
}

/* Button styles */
button {
    background-color: #4e73df;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2e59d9;
}

/* Live Chat Widget */
#mlm-live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4e73df;
    padding: 12px 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#mlm-live-chat-widget button {
    background-color: transparent;
    color: white;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
}

/* Admin dashboard specific styles */
.admin-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.admin-dashboard th, .admin-dashboard td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

.admin-dashboard th {
    background-color: #f1f1f1;
}

.admin-dashboard tr:hover {
    background-color: #f9f9f9;
}

/* Notifications */
.notification {
    background-color: #28a745;
    color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.notification.error {
    background-color: #dc3545;
}

.notification .close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Form Styles */
form input, form select, form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 15px;
}

form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: #4e73df;
}

/* Modal Dialog */
.modal {
    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;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
}

.modal.active {
    display: flex;
}

/* Spinner (for loading) */
.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4e73df;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}