/* Layout for side menu and main content */
.layout-container {
    display: flex;
    min-height: 100vh;
}

.side-menu {
    width: 200px;
    background: #f4f6fa;
    border-right: 1px solid #e0e0e0;
    padding: 32px 0 0 0;
    min-height: 100vh;
}

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

.side-menu li {
    margin-bottom: 18px;
}

.side-menu a {
    display: block;
    padding: 12px 24px;
    color: #1976d2;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 4px 0 0 4px;
    transition: background 0.2s, color 0.2s;
}

.side-menu a:hover, .side-menu a.active {
    background: #e3eafc;
    color: #125ea2;
}

.main-content {
    flex: 1;
    padding: 40px 32px;
    background: #f9fafb;
    min-height: 100vh;
}

/* Roles Table Styles */
.roles-table-container {
    max-width: 1400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 24px 32px 32px 32px;
}

.roles-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.roles-table-header .btn {
    padding: 8px 18px;
    font-size: 1rem;
    border-radius: 4px;
    background: #1976d2;
    color: #fff;
    text-decoration: none;
    border: none;
    transition: background 0.2s;
}

.roles-table-header .btn:hover {
    background: #125ea2;
}

/* Hidden select dropdown styles */
.roles-table-header select {
    padding: 8px 12px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafbfc;
    color: #333;
    cursor: pointer;
    transition: border 0.2s;
    min-width: 150px;
}

.roles-table-header select:focus {
    border-color: #1976d2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.2);
}

.roles-table-header select:hover {
    border-color: #1976d2;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table.roles-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
}

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

.table.roles-table th {
    background: #f5f5f5;
    font-weight: 600;
}

.table.roles-table tr:nth-child(even) {
    background: #fafbfc;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.97rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-right: 6px;
    transition: background 0.2s;
}

.btn-secondary {
    background: #e0e7ef;
    color: #1a237e;
}

.btn-secondary:hover {
    background: #b6c6e0;
}

.btn-danger {
    background: #e53935;
    color: #fff;
}

.btn-danger:hover {
    background: #b71c1c;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 18px 0;
}

.pagination a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    background: #f5f5f5;
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e0e0e0;
    transition: background 0.2s, color 0.2s;
}

.pagination a.active, .pagination a:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
}

.roles-form-container {
    max-width: 1400px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 32px 32px 24px 32px;
}

.roles-form-container h2 {
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1976d2;
}

.roles-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.checkbox {
    flex-direction: row;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #333;
}

.form-group input[type="text"], .form-group input[type="password"], .form-group select {
    padding: 8px 12px;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    font-size: 1rem;
    background: #fafbfc;
    transition: border 0.2s;
}

.form-group input[type="text"]:focus, .form-group input[type="password"]:focus, .form-group select:focus {
    border-color: #1976d2;
    outline: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #e57373;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 1rem;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
}

.btn-primary:hover {
    background: #125ea2;
}

.parameters-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prompt-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.prompt-row input {
    width: 100%;
}

/* Login form styles */
.login-container {
  max-width: 350px;
  margin: 60px auto;
  padding: 2rem 2.5rem 2rem 2.5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08), 0 1.5px 4px rgba(0,0,0,0.04);
  text-align: center;
}
.login-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #222;
}
.login-form .form-group {
  margin-bottom: 1.2rem;
  text-align: left;
}
.login-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #333;
}
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background: #fafbfc;
  transition: border 0.2s;
}
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: #007bff;
  outline: none;
}
.form-error {
  color: #b00020;
  background: #ffeaea;
  border: 1px solid #ffb3b3;
  border-radius: 5px;
  padding: 0.7rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.form-actions {
  margin-top: 1.5rem;
}
.login-form .btn.btn-primary {
  width: 100%;
  padding: 0.7rem;
  font-size: 1.1rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}
.login-form .btn.btn-primary:hover {
  background: #0056b3;
}