/* Dynamic Form Styles */
.dynamic-form-container {
    margin-top: 20px;
}

.dynamic-form-container h4 {
    color: #0073aa;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.dynamic-form-container .form-group {
    margin-bottom: 20px;
}

.dynamic-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.dynamic-form-container .required {
    color: #dc3232;
}

.dynamic-form-container input[type="text"],
.dynamic-form-container input[type="email"],
.dynamic-form-container input[type="number"],
.dynamic-form-container textarea,
.dynamic-form-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.dynamic-form-container textarea {
    height: 100px;
    resize: vertical;
}

.dynamic-form-container input[type="checkbox"],
.dynamic-form-container input[type="radio"] {
    margin-right: 8px;
}

.dynamic-form-container .radio-option {
    margin-bottom: 10px;
}

.dynamic-form-container .radio-option label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
}

.portal-submit

/* Portal Login Form Styles */
.portal-login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portal-login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 24px;
}

.portal-login-form .form-group {
    margin-bottom: 20px;
}

.portal-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.portal-login-form input[type="text"],
.portal-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.portal-login-form input[type="text"]:focus,
.portal-login-form input[type="password"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
}

.portal-login-btn {
    width: 100%;
    padding: 12px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.portal-login-btn:hover {
    background: #005a87;
}

/* Portal Dashboard Styles */
.portal-dashboard {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.portal-header h2 {
    color: #333;
    margin: 0;
    font-size: 28px;
}

.portal-logout-btn {
    background: #dc3232;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.portal-logout-btn:hover {
    background: #a00;
    color: white;
}

.portal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.portal-card {
    background: #fff;
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.portal-card h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.portal-card p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.portal-custom-content {
    margin-top: 20px;
}

.portal-custom-content h4 {
    color: #0073aa;
    margin-bottom: 15px;
}

.portal-custom-content ul {
    list-style: none;
    padding: 0;
}

.portal-custom-content li {
    margin-bottom: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #0073aa;
}

.portal-custom-content a {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.portal-custom-content a:hover {
    text-decoration: underline;
}

/* Message Styles */
.portal-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 15px;
}

.portal-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
}

.portal-loading {
    background: #d1ecf1;
    color: #0c5460;
    padding: 12px;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .portal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .portal-login-container {
        margin: 20px auto;
        padding: 15px;
    }

    .portal-dashboard {
        padding: 15px;
    }
}

/* Admin Styles */
.portal-admin-container {
    margin-top: 20px;
}

.portal-admin-container .add-user-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.portal-admin-container .add-user-form h2 {
    margin-top: 0;
    color: #333;
}

.portal-admin-container .users-list {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.status-active {
    color: #46b450;
    font-weight: bold;
}

.status-inactive {
    color: #dc3232;
    font-weight: bold;
}

.edit-user,
.delete-user {
    margin-right: 5px;
}