/* Global Styles */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    list-style: none;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

.dashboard-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #360374;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-header {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    width: 150px;
}

.nav-menu {
    list-style: none;
    width: 100%;
}

.nav-item {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-item a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-item:hover {
    background-color: #5348c8;
}

.nav-item i {
    margin-right: 10px;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #f0f0f0;
    position: relative;
}

h1, h2 {
    color: #360374;
    text-align: center;
    margin-bottom: 40px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.stat-card h3 {
    color: #360374;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 24px;
    color: #5348c8;
}

.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.search-bar input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 300px;
    outline: none;
}

.search-bar i {
    margin-left: -30px;
    color: #ccc;
    cursor: pointer;
}

.table-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #360374;
    color: white;
}

.status-active {
    color: green;
}

.status-inactive {
    color: red;
}

.status-trial {
    color: orange;
}

.status-suspended {
    color: grey;
}

.action-btn {
    background-color: #360374;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin: 5px;
}

.action-btn:hover {
    background-color: #5348c8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.profile-dropdown {
    position: absolute;
    top: 20px;
    right: 40px;
    display: inline-block;
}

.profile-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    right: 0;
}

.profile-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.profile-dropdown-content a:hover {
    background-color: #ddd;
}

.profile-dropdown:hover .profile-dropdown-content {
    display: block;
}

/* Add Member Button Styles */
.add-member-btn {
    background-color: #360374;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
    display: inline-block;
}

.add-member-btn:hover {
    background-color: #5348c8;
}

.modal form {
    display: flex;
    flex-direction: column;
}

.modal form label {
    margin-top: 10px;
    color: #360374;
}

.modal form input,
.modal form select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-top: 5px;
}

.modal form button {
    margin-top: 20px;
}

/* Activity Feed Styles */
.activity-feed {
    margin-top: 40px;
}

.feed-list {
    list-style-type: none;
    padding: 0;
}

.feed-list li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

.feed-list i {
    margin-right: 10px;
    color: #5348c8;
}

/* Chart Styles */
.charts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.chart {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Stats Styles for Index Page */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card-number {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-card-number h3 {
    color: #360374;
    margin-bottom: 10px;
}

.stat-card-number p {
    font-size: 24px;
    color: #5348c8;
}

/* Additional styles for revenue */
.stat-card-number {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.stat-card-number h3 {
    color: #360374;
    margin-bottom: 10px;
}

.stat-card-number p {
    font-size: 24px;
    color: #5348c8;
}

table th, table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #360374;
    color: white;
}
