/* General Layout */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    margin: 0;
}
header {
    background-color: #075E54;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav li {
    margin-left: 20px;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ddd;
}

/* New Layout for Dashboard */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px); /* Adjust based on header/footer height */
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.dashboard-sidebar {
    width: 250px;
    padding: 20px 0;
    border-right: 1px solid #eee;
}
.dashboard-sidebar .nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-sidebar .nav-list li {
    margin: 0;
}
.dashboard-sidebar .nav-list .nav-link {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.dashboard-sidebar .nav-list .nav-link i {
    margin-right: 10px;
}
.dashboard-sidebar .nav-list .nav-link:hover {
    background-color: #f0f2f5;
}
.dashboard-main-content {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
.card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* The rest of your styles from the old design */
.dashboard-header {
    grid-column: span 2;
    margin-bottom: 20px;
}
.dashboard-header h2 {
    color: #128C7E;
    display: inline-block;
}
.dashboard-header #user-info {
    float: right;
    font-style: italic;
    color: #555;
    margin-top: 10px;
}
.card h3 {
    margin-top: 0;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    color: #128C7E;
}
.card h3 i {
    margin-right: 10px;
}
input[type="text"], textarea, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
button:hover {
    background-color: #128C7E;
}
.status-msg-warn {
    color: #ffc107;
    font-weight: bold;
}
.status-msg-success {
    color: #28a745;
    font-weight: bold;
}
#credentials-display {
    text-align: left;
}
.cred-value {
    font-family: monospace;
    font-size: 1.1em;
}
.chat-container {
    grid-column: span 2;
    display: flex;
    height: 600px;
    padding: 0;
}
.chat-sidebar {
    width: 30%;
    border-right: 1px solid #eee;
    padding: 10px;
    overflow-y: auto;
}
.chat-main {
    width: 70%;
    position: relative;
    padding: 10px;
    overflow-y: auto;
}
.no-chat-selected {
    text-align: center;
    color: #999;
    margin-top: 50px;
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        padding: 0;
        margin: 10px auto;
    }
    .dashboard-sidebar {
        width: 100%;
        padding: 10px;
        box-shadow: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .dashboard-sidebar .nav-list {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .dashboard-sidebar .nav-list .nav-link {
        flex-grow: 1;
        text-align: center;
        padding: 10px;
    }
    .dashboard-sidebar .nav-list .nav-link i {
        margin-right: 0;
    }
    .dashboard-sidebar .nav-list .nav-link span {
        display: none; /* Hide text on mobile */
    }
    .dashboard-main-content {
        padding: 10px;
    }
}