body.hidden {
    visibility: hidden;
}

.hidden {
    display: none;
  }
  
  label {
    margin-bottom: 10px;
    display: block;
  }

/* --- new styles --- */

.container {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h2 {
    margin-top: 0;
}

button {
    cursor: pointer;
    padding: 10px 24px;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    margin: 6px;
    transition: background-color 0.2s ease;
}

button.primary {
    background-color: #0056d2;
    color: #fff;
}

button.primary:hover {
    background-color: #0045a3;
}

button.secondary {
    background-color: #e0e0e0;
    color: #333;
}

button.secondary:hover {
    background-color: #cacaca;
}

/* Button group styling */
.button-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.button-group .add-entity-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.button-group .add-entity-btn.primary {
    background-color: #0056d2;
    color: white;
    border-color: #0056d2;
}

.button-group .add-entity-btn.primary:hover {
    background-color: #0045a3;
    border-color: #0045a3;
}

.button-group .add-entity-btn.secondary {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.button-group .add-entity-btn.secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.button-group .add-entity-btn svg {
    width: 16px;
    height: 16px;
}

/* Enhanced modal styling */
.section-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.section-modal > div {
    background: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-actions button:first-child {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.modal-actions button:first-child:hover {
    background-color: #e9ecef;
}

.modal-actions button:last-child {
    background-color: #0056d2;
    color: white;
    border: 1px solid #0056d2;
}

.modal-actions button:last-child:hover {
    background-color: #0045a3;
}

.modal-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form styling enhancements */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #0056d2;
    box-shadow: 0 0 0 3px rgba(0, 86, 210, 0.1);
}

.form-input:invalid {
    border-color: #dc3545;
}

/* Small text styling */
.text-sm {
    font-size: 14px;
}

.text-gray-500 {
    color: #6c757d;
}

.text-gray-600 {
    color: #495057;
}

.mb-4 {
    margin-bottom: 16px;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 8px;
}

#user-name {
    font-weight: 600;
    margin-bottom: 16px;
}

.error {
    color: #fff;
    background-color: #ff4d4f;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-weight: 500;
}