* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: Arial, sans-serif;
}
body {
	display: flex;
	height: 100vh;
	background-color: #121212;
	color: white;
}
.container {
	display: flex;
	width: 100%;
}
.sidebar-header {
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333;
}

.sidebar-header h3 {
    margin: 0;
}

.logo {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.05);
}
.sidebar {
	width: 300px;
	background: #1e1e1e;
	padding: 20px;
	display: flex;
	flex-direction: column;
}
.sidebar .controls {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	margin-bottom: 20px;
}
.sidebar .controls button {
	padding: 5px 10px;
	border: none;
	background: #2e2e2e;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sidebar .controls button:hover {
	background: #333;
}
.chats {
	flex: 1;
	overflow-y: auto;
}
.chats h3 {
	margin-bottom: 10px;
}
.chats ul {
	list-style: none;
	flex: 1; /* Take up the remaining space */
    overflow-y: auto; /* Add a scrollbar if content overflows */
	/*max-height: 300px;
	overflow-y: auto;*/
}
.chats ul li {
	padding: 10px;
	background: #2e2e2e;
	margin-bottom: 5px;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease;
	border: 2px solid transparent
}
.chats ul li.selected {
	background: #333;
	border: 2px solid red;
}
.user {
	margin-top: auto;
	padding: 10px;
	background: #333;
	border-radius: 5px;
	text-align: center;
}
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px;
}
.main-content .editor {
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 5px;
	background: #2e2e2e;
	color: white;
	padding: 10px;
	box-sizing: border-box;
}
/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
	background-color: #2e2e2e;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #444;
	width: 80%;
	max-width: 600px;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.close {
	color: #fff;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	transition: color 0.3s ease;
}
.close:hover,
.close:focus {
	color: #ccc;
}
.modal-content input {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: none;
	border-radius: 5px;
	background: #333;
	color: white;
}
.modal-content button {
	padding: 10px 20px;
	border: none;
	background: #333;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.3s ease;
}
.modal-content button:hover {
	background: #444;
}
.modal-content .error {
	color: red;
	margin-top: 10px;
}

/* Add this to your style.css - Modal buttons styling */
.modal-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.modal-buttons button {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: #333;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-buttons button:hover {
    background: #444;
}

/* Light theme modal buttons */
.light-theme .modal-buttons button {
    background: #d0d0d0;
    color: #333;
}

.light-theme .modal-buttons button:hover {
    background: #c0c0c0;
}

/* Light Theme Styles */
body.light-theme {
	background-color: #f0f0f0;
	color: #333;
}
.light-theme .sidebar {
	background: #e0e0e0;
}
.light-theme .sidebar .controls button {
	background: #d0d0d0;
}
.light-theme .sidebar .controls button:hover {
	background: #c0c0c0;
}
.light-theme .chats ul li {
	background: #d0d0d0;
}
.light-theme .chats ul li:hover {
	background: #c0c0c0;
}
.light-theme .chats ul li.selected {
	background: #c0c0c0;
}
.light-theme .user {
	background: #d0d0d0;
}
.light-theme .main-content .editor {
	background: #d0d0d0;
	color: #333;
}
.light-theme .modal {
	background-color: rgba(255, 255, 255, 0.4);
}
.light-theme .modal-content {
	background-color: #d0d0d0;
	border: 1px solid #ccc;
}
.light-theme .modal-content input {
	background: #e0e0e0;
	color: #333;
}
.light-theme .modal-content button {
	background: #d0d0d0;
}
.light-theme .modal-content button:hover {
	background: #c0c0c0;
}

.lock-icon {
	color: #ffd700; /* Gold color for the lock icon */
	margin-right: 8px;
	font-size: 12px;
}

/* Light theme lock icon */
.light-theme .lock-icon {
	color: #ff6b00; /* Orange color for light theme */
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f6f8fa;
    text-decoration: none; 
    font-size: 14px;
    /*margin-top: 8px;*/
    padding: 5px 5px; 
    border: 1px solid #d0d7de;
    border-radius: 6px;
	float: right;
}