/* Global styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: #0d1117;
    color: #f0f6fc;
    display: flex;
    flex-direction: column;
}

.sidebar h1 {
    padding: 16px;
    font-size: 20px;
    text-align: center;
    margin: 0;
    background-color: #010409;
}

.sidebar nav {
    flex: 1;
    padding-top: 16px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar li:hover {
    background-color: #161b22;
}

.sidebar li.active {
    background-color: #238636;
}

/* Main content area */
.content {
    margin-left: 200px;
    padding: 24px;
}

/* Cards */
.card {
    background-color: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 800px;
}

.card h2 {
    margin-top: 0;
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.button {
    background-color: #238636;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.button:hover {
    background-color: #2ea043;
}

/* Login page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, #662D8C, #ED1E79);
}

.login-card {
    background-color: #0d1117;
    color: #f0f6fc;
    padding: 40px;
    border-radius: 8px;
    width: 320px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 24px;
    text-align: center;
}

.login-card .form-group input {
    background-color: #161b22;
    border: 1px solid #30363d;
    color: #f0f6fc;
}

.login-card .button {
    width: 100%;
}

/* Message template button group */
.template-buttons {
    display: flex;
    flex-direction: column;
    margin-right: 20px;
}

.template-buttons button {
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.template-buttons button.active,
.template-buttons button:hover {
    background-color: #dfe2e7;
}

/* Macro table */
.macro-table {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 12px;
}

.macro-table div {
    width: 48%;
    text-align: center;
    margin-bottom: 8px;
    padding: 4px;
    border: 1px dashed #ccc;
    border-radius: 4px;
}
