* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f2f5;
}

.container,
.password-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.password-container {
    max-width: 400px;
    padding: 25px;
}

.password-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #4a6dd8;
}

.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.logo-img {
    max-width: 150px;
}

.login-container {
    width: 400px;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-container img {
    margin-bottom: 20px;
}

.login-container h3 {
    margin-bottom: 20px;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    margin-right: 10px;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button,
.btn-primary {
    padding: 10px 15px;
    background-color: #4a6dd8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover,
.btn-primary:hover {
    background-color: #3a5ec9;
}

.btn-link {
    display: inline-block;
    margin-left: 10px;
    color: #4a6dd8;
    text-decoration: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #4a6dd8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Íconos */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid transparent;
    padding: 0;
    margin-right: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s, border 0.2s;
}

.btn-icon .dashicons {
    font-size: 18px;
    line-height: 1;
}

.edit-icon {
    background-color: #ffc107;
    color: #000;
    border-color: #e0a800;
}

.edit-icon:hover {
    background-color: #e0a800;
}

.delete-icon {
    background-color: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.delete-icon:hover {
    background-color: #f8d7da;
}

.lock-icon {
    background-color: #f1f3f5;
    color: #495057;
    border-color: #ced4da;
}

.lock-icon:hover {
    background-color: #dee2e6;
}

.lock-icon.inactive {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

/* Campo de contraseña con ícono */
.password-field-container {
    position: relative;
    width: 100%;
}

.password-field-container input[type="password"],
.password-field-container input[type="text"] {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 10;
    user-select: none;
}

.toggle-password:hover {
    color: #333;
}

.toggle-password.dashicons {
    font-size: 20px;
}

.dashicons {
    line-height: 1;
    font-size: 18px;
    vertical-align: middle;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
    font-weight: bold;
}

tr:hover {
    background-color: #f5f5f5;
}

.actions {
    white-space: nowrap;
}

/* Mensajes */
.error, .success {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Estados */
.status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    margin-right: 5px;
}

.online {
    background-color: #d4edda;
    color: #155724;
}

.offline {
    background-color: #f8f9fa;
    color: #6c757d;
}

.active {
    background-color: #cce5ff;
    color: #004085;
}

.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.online-users {
    font-size: 12px;
    background-color: #e9ecef;
    padding: 3px 8px;
    border-radius: 15px;
}

/* Tabs */
.admin-panel .tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    margin-right: 5px;
}

.tab-button.active {
    background-color: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: bold;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Permisos */
.permissions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.permissions-form {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.current-user {
    font-style: italic;
    color: #6c757d;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    margin-top: 30px;
}
