Nursing Citizen Development
feat: Fresh deployment of BYOK feature
0a34218
.dashboard {
min-height: calc(100vh - 64px);
padding: 48px 24px;
display: flex;
flex-direction: column;
align-items: center;
width: 100%;
}
.hero-top-actions {
position: absolute;
top: 20px;
right: 20px;
}
.settings-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
cursor: pointer;
transition: all 0.2s;
backdrop-filter: blur(5px);
}
.settings-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: rotate(45deg);
}
.card-subtitle-row {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.provider-badge {
background: rgba(99, 102, 241, 0.1);
color: #818cf8;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 500;
border: 1px solid rgba(99, 102, 241, 0.2);
}
/* Hero Section */
.dashboard-hero {
text-align: center;
margin-bottom: 3rem;
background: linear-gradient(135deg, rgba(88, 28, 135, 0.2) 0%, rgba(124, 58, 237, 0.1) 100%);
padding: 4rem 2rem;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
position: relative;
/* For absolute positioning of settings button */
}
.hero-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 16px;
background: var(--accent-gradient);
border-radius: 20px;
font-size: 0.875rem;
font-weight: 500;
color: white;
margin-bottom: 24px;
}
.hero-title {
font-size: 3rem;
font-weight: 700;
background: linear-gradient(135deg, #ffffff 0%, #a855f7 50%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 16px;
line-height: 1.2;
}
.hero-subtitle {
font-size: 1.125rem;
color: var(--text-secondary);
line-height: 1.7;
}
.user-welcome {
margin-bottom: 16px;
font-size: 1rem;
color: var(--accent-primary);
font-weight: 600;
}
.login-btn {
padding: 12px 24px;
background: #0078d4;
/* Microsoft Blue */
color: white;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
}
.login-btn:hover {
background: #006abc;
}
/* Content Area */
.dashboard-content {
width: 100%;
max-width: 800px;
display: flex;
flex-direction: column;
gap: 24px;
}
/* Cards */
.content-card {
background: var(--bg-card);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 24px;
box-shadow: var(--shadow-card);
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
}
.card-title {
font-size: 1.25rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 8px;
}
.card-description {
font-size: 0.875rem;
color: var(--text-secondary);
}
/* Input */
.content-textarea {
width: 100%;
padding: 16px;
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: 12px;
color: var(--text-primary);
font-size: 1rem;
font-family: inherit;
resize: vertical;
min-height: 150px;
margin-top: 16px;
margin-bottom: 16px;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.content-textarea::placeholder {
color: var(--text-muted);
}
.content-textarea:focus {
outline: none;
border-color: var(--accent-primary);
box-shadow: var(--shadow-glow);
}
/* Submit Button */
.submit-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 14px 24px;
background: var(--accent-gradient);
border: none;
border-radius: 12px;
color: white;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.submit-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: var(--shadow-glow);
}
.submit-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.spinner {
width: 16px;
height: 16px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Add Role Button */
.add-role-btn {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background: transparent;
border: 1px solid var(--accent-primary);
border-radius: 8px;
color: var(--accent-primary);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.add-role-btn:hover {
background: rgba(168, 85, 247, 0.1);
}
/* Roles Grid */
.roles-grid {
display: grid;
gap: 12px;
}
.role-card {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background: var(--bg-secondary);
border: 1px solid var(--border-subtle);
border-radius: 12px;
border-left: 4px solid var(--role-color);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.role-card:hover {
transform: translateX(4px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.role-icon {
font-size: 1.75rem;
flex-shrink: 0;
}
.role-info {
flex: 1;
}
.role-name {
font-size: 1rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
}
.role-description {
font-size: 0.8rem;
color: var(--text-secondary);
line-height: 1.4;
}
/* Error Alert */
.error-alert {
display: inline-flex;
align-items: center;
gap: 12px;
margin-top: 24px;
padding: 12px 20px;
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.2);
border-radius: 12px;
color: #fca5a5;
font-size: 0.9rem;
font-weight: 500;
animation: slideDown 0.3s ease-out;
}
.error-icon {
font-size: 1.25rem;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Custom Role Styling */
.custom-role {
border-style: dashed;
}
.custom-badge {
display: inline-block;
margin-left: 8px;
padding: 2px 8px;
background: rgba(139, 92, 246, 0.2);
border-radius: 6px;
font-size: 0.65rem;
font-weight: 600;
color: var(--accent-primary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.remove-role-btn {
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: 1px solid var(--border-subtle);
border-radius: 6px;
color: var(--text-muted);
font-size: 1.25rem;
cursor: pointer;
transition: all 0.2s ease;
flex-shrink: 0;
}
.remove-role-btn:hover {
background: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.3);
color: #f87171;
}
/* Responsive */
@media (max-width: 640px) {
.dashboard {
padding: 32px 16px;
}
.hero-title {
font-size: 2rem;
}
.hero-subtitle {
font-size: 1rem;
}
.card-header {
flex-direction: column;
gap: 16px;
}
}