Spaces:
Paused

miracle / frontend /apps /internal /src /components /WorkspaceSettings.module.css
dushyantsingh0
backend stabilisation
30c470c
Raw History Blame Contribute Delete
9.85 kB
.container {
padding: 40px;
max-width: 1200px;
margin: 0 auto;
}
.header {
margin-bottom: 48px;
}
.workspaceName {
font-size: 32px;
font-weight: 800;
color: var(--text-main);
margin-bottom: 8px;
letter-spacing: -0.02em;
text-transform: uppercase;
}
.description {
font-size: 16px;
color: var(--text-muted);
max-width: 600px;
line-height: 1.5;
}
.sectionHeader {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}
.sectionTitle {
font-size: 20px;
font-weight: 700;
color: var(--text-main);
}
.addBtn {
background-color: var(--primary);
color: white;
border: none;
padding: 10px 24px;
border-radius: 8px;
font-weight: 700;
font-size: 14px;
cursor: pointer;
display: flex;
align-items: center;
gap: 8px;
transition: all 0.2s;
box-shadow: 0 4px 12px var(--primary-glow);
}
.addBtn:hover {
background-color: var(--primary);
filter: brightness(0.9);
transform: translateY(-1px);
}
.headerActions {
display: flex;
align-items: center;
gap: 12px;
}
.refreshBtn {
background: var(--bg-hover);
border: 1px solid var(--border-subtle);
color: var(--text-muted);
width: 38px;
height: 38px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.refreshBtn:hover {
background: var(--bg-card);
color: var(--primary);
border-color: var(--primary);
box-shadow: 0 4px 12px var(--primary-glow);
}
.refreshBtn:disabled {
opacity: 0.5;
cursor: wait;
}
.spinning {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Table Styles */
.tableCard {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 12px;
overflow: visible;
box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
.th {
background: var(--bg-hover);
padding: 16px 24px;
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
border-bottom: 1px solid var(--border-subtle);
}
.table th:first-child {
border-top-left-radius: 12px;
}
.table th:last-child {
border-top-right-radius: 12px;
}
.td {
padding: 20px 24px;
border-bottom: 1px solid var(--border-subtle);
vertical-align: middle;
}
.memberCell {
display: flex;
align-items: center;
gap: 16px;
}
.avatar {
width: 40px;
height: 40px;
background: var(--bg-hover);
color: var(--primary);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 14px;
border: 1px solid var(--border-subtle);
}
.memberInfo {
display: flex;
flex-direction: column;
}
.memberName {
font-size: 14px;
font-weight: 700;
color: var(--text-main);
}
.memberEmail {
font-size: 12px;
color: var(--text-muted);
}
/* Role Badges */
.roleBadge {
display: inline-block;
padding: 4px 12px;
background: var(--bg-hover);
color: var(--text-muted);
border-radius: 6px;
font-size: 11px;
font-weight: 800;
text-transform: uppercase;
}
.roleAdmin {
background: var(--primary-glow);
color: var(--primary);
}
/* Status */
.statusCell {
display: flex;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 500;
color: #10b981;
}
.statusDot {
width: 6px;
height: 6px;
background: #10b981;
border-radius: 50%;
}
/* Modal */
.modalOverlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.4);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal {
background: var(--bg-card);
width: 480px;
border-radius: 16px;
padding: 32px;
box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.modalTitle {
font-size: 22px;
font-weight: 800;
color: var(--text-main);
margin-bottom: 8px;
}
.modalSub {
font-size: 14px;
color: var(--text-muted);
margin-bottom: 24px;
}
.formGroup {
margin-bottom: 20px;
}
.label {
display: block;
font-size: 13px;
font-weight: 700;
color: var(--text-main);
margin-bottom: 8px;
}
.input, .select {
width: 100%;
padding: 12px;
border: 1px solid var(--border-subtle);
background: var(--bg-hover);
border-radius: 8px;
color: var(--text-main);
outline: none;
transition: all 0.2s;
}
.input:focus, .select:focus {
border-color: var(--primary);
background: var(--bg-card);
box-shadow: 0 0 0 3px var(--primary-glow);
}
.modalActions {
display: flex;
gap: 12px;
margin-top: 32px;
}
.cancelBtn {
flex: 1;
background: var(--bg-hover);
border: 1px solid var(--border-subtle);
color: var(--text-main);
padding: 12px;
border-radius: 8px;
font-weight: 700;
cursor: pointer;
}
.submitBtn {
flex: 2;
background: var(--primary);
color: white;
border: none;
padding: 12px;
border-radius: 8px;
font-weight: 700;
cursor: pointer;
}
.submitBtn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.error {
color: #ef4444;
font-size: 12px;
margin-top: 8px;
font-weight: 600;
}
/* Action Menu Styles */
.actionBtn {
background: none;
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 8px;
border-radius: 6px;
transition: all 0.2s;
}
.actionBtn:hover {
background: var(--bg-hover);
color: var(--text-main);
}
.actionMenu {
position: absolute;
top: 100%;
right: 0;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 12px;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
padding: 6px;
z-index: 100;
min-width: 160px;
margin-top: 4px;
}
.menuItem {
width: 100%;
text-align: left;
background: none;
border: none;
padding: 10px 12px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
color: var(--text-main);
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
transition: all 0.2s;
}
.menuItem:hover {
background: var(--bg-hover);
color: var(--primary);
}
.menuItemDestructive {
color: #ef4444;
}
.menuItemDestructive:hover {
background: var(--error-glow);
color: var(--error);
}
/* Destructive Modal Variant */
.modalDestructive {
border-top: 4px solid #ef4444;
}
.warningIcon {
width: 48px;
height: 48px;
background: var(--error-glow);
color: var(--error);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.btnDestructive {
background: #ef4444 !important;
}
.btnDestructive:hover {
background: #dc2626 !important;
}
.teamTag {
font-size: 11px;
font-weight: 700;
color: var(--text-muted);
background: var(--bg-hover);
padding: 2px 8px;
border-radius: 4px;
border: 1px solid var(--border-subtle);
}
/* Branding Section */
.brandingSection {
margin-bottom: 48px;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 32px;
box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.brandingGrid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 32px;
margin-top: 24px;
}
.brandingItem {
display: flex;
flex-direction: column;
gap: 12px;
}
.logoPreview {
width: 48px;
height: 48px;
border-radius: 8px;
background: var(--bg-hover);
border: 1px solid var(--border-subtle);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
}
.logoPreview img {
max-width: 80%;
max-height: 80%;
object-fit: contain;
}
.colorPicker {
display: flex;
align-items: center;
gap: 8px;
background: var(--bg-dark);
border: 1px solid var(--border-subtle);
border-radius: 8px;
padding: 4px 12px 4px 4px;
width: fit-content;
}
.colorInput {
width: 32px;
height: 32px;
border: none;
border-radius: 6px;
cursor: pointer;
background: none;
}
.colorValue {
background: none;
border: none;
font-family: var(--font-mono);
font-size: 13px;
font-weight: 700;
color: var(--text-main);
width: 80px;
text-transform: uppercase;
}
.themePickerContainer {
display: flex;
flex-direction: column;
gap: 12px;
}
.colorPresets {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.presetBtn {
width: 28px;
height: 28px;
border-radius: 50%;
border: 2px solid transparent;
cursor: pointer;
transition: all 0.2s;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.presetBtn:hover {
transform: scale(1.1);
box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.activePreset {
border-color: var(--text-main);
transform: scale(1.1);
box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary);
}
.brandingFooter {
margin-top: 16px;
display: flex;
align-items: center;
gap: 12px;
color: var(--text-muted);
font-size: 12px;
font-weight: 500;
}
.brandingActions {
display: flex;
justify-content: flex-end;
padding-top: 24px;
margin-top: 24px;
border-top: 1px solid var(--border-subtle);
}
.saveBrandingBtn {
background: var(--primary);
color: white;
border: none;
padding: 12px 28px;
border-radius: 10px;
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
align-items: center;
justify-content: center;
min-width: 220px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.saveBrandingBtn:hover:not(:disabled) {
filter: brightness(1.15);
transform: translateY(-2px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}
.saveBrandingBtn:active:not(:disabled) {
transform: translateY(0);
}
.saveBrandingBtn:disabled {
opacity: 0.5;
cursor: not-allowed;
filter: grayscale(0.5);
}
.spinning {
animation: spin 1s linear infinite;
}
@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}