/* .docker/sspa/dashboard.css */
/* Modal Styles */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal { background: var(--white); border-radius: 16px; max-width: 560px; width: 90%; max-height: 85vh; overflow-y: auto; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.show .modal { transform: translateY(0); }
.modal-header { padding: 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 20px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.modal-close { width: 36px; height: 36px; border: none; background: var(--surface); border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--text-secondary); display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-close:hover { background: var(--danger); color: var(--white); }
.modal-body { padding: 24px; }
.modal-section { margin-bottom: 24px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section-title { font-size: 14px; font-weight: 600; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.modal-welcome { background: var(--surface); padding: 16px; border-radius: 8px; font-size: 14px; line-height: 1.6; color: var(--text); border-left: 4px solid var(--secondary); }
.modal-tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.modal-tech-item { background: var(--surface); padding: 12px; border-radius: 8px; text-align: center; }
.modal-tech-label { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; }
.modal-tech-value { font-size: 16px; font-weight: 600; color: var(--primary); margin-top: 4px; }
.modal-benefits { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-benefit { background: rgba(0,181,184,0.1); color: var(--secondary); padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.modal-tech-badge { background: var(--success); color: var(--white); padding: 4px 10px; border-radius: 12px; font-size: 11px; font-weight: 500; }
.modal-tech-stack { background: var(--surface); padding: 8px 12px; border-radius: 6px; font-size: 13px; color: var(--text); }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); text-align: center; }
.modal-footer-text { font-size: 12px; color: var(--text-secondary); }
:root { --primary: #2D0F55; --secondary: #00B5B8; --accent: #FF6B35; --surface: #F4F5FB; --text: #1C1D22; --text-secondary: #6B7280; --border: #D9DBE7; --white: #FFFFFF; --success: #1DB954; --warning: #FF9F1C; --danger: #E63946; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--surface); color: var(--text); min-height: 100vh; display: flex; }
.sidebar { width: 280px; background: var(--primary); color: var(--white); min-height: 100vh; position: fixed; left: 0; top: 0; overflow-y: auto; z-index: 100; }
.sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-header h1 { font-size: 20px; font-weight: 600; }
.sidebar-menu { padding: 16px 0; }
.menu-item { padding: 12px 24px; cursor: pointer; transition: background 0.2s; display: flex; align-items: center; justify-content: space-between; }
.menu-item:hover { background: rgba(255,255,255,0.1); }
.menu-item.active { background: var(--secondary); }
.menu-item .arrow { transition: transform 0.2s; font-size: 10px; }
.menu-item.expanded .arrow { transform: rotate(90deg); }
.sub-items { display: none; background: rgba(0,0,0,0.2); }
.sub-items.show { display: block; }
.sub-item { padding: 10px 24px 10px 40px; cursor: pointer; font-size: 14px; color: rgba(255,255,255,0.8); }
.sub-item:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.main { margin-left: 280px; flex: 1; padding: 32px; min-height: 100vh; }
.dashboard-title { font-size: 28px; margin-bottom: 24px; color: var(--primary); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.project-card { background: var(--white); border-radius: 12px; padding: 24px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border: 2px solid transparent; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); border-color: var(--secondary); }
.project-card.expanded { grid-column: 1 / -1; background: var(--white); }
.project-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.project-name { font-size: 18px; font-weight: 600; color: var(--primary); text-transform: uppercase; }
.project-count { background: var(--secondary); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 12px; }
.project-description { color: var(--text-secondary); font-size: 14px; }
.entity-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.entity-grid.show { display: grid; }
.entity-item { background: var(--surface); padding: 16px; border-radius: 8px; cursor: pointer; transition: all 0.2s; text-align: center; }
.entity-item:hover { background: var(--secondary); color: var(--white); }
.entity-name { font-weight: 500; margin-bottom: 4px; }
.entity-comment { font-size: 12px; opacity: 0.8; }
.entity-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.entity-title { font-size: 24px; color: var(--primary); }
.entity-actions { display: flex; gap: 12px; }
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary { background: var(--secondary); color: var(--white); }
.btn-primary:hover { background: #009A9D; }
.btn-success { background: var(--success); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.table-container { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--primary); color: var(--white); padding: 16px; text-align: left; font-weight: 500; }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
tr:hover { background: var(--surface); }
.action-btns { display: flex; gap: 8px; }
.action-btn { width: 32px; height: 32px; border: none; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.action-btn.view { background: var(--secondary); color: white; }
.action-btn.edit { background: var(--warning); color: white; }
.action-btn.delete { background: var(--danger); color: white; }
.pagination { display: flex; justify-content: center; gap: 8px; padding: 24px; }
.page-btn { padding: 8px 16px; border: 1px solid var(--border); background: var(--white); cursor: pointer; border-radius: 6px; }
.page-btn.active { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.project-card-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.info-btn { padding: 6px 12px; border: none; background: var(--surface); color: var(--text-secondary); border-radius: 6px; cursor: pointer; font-size: 12px; display: flex; align-items: center; gap: 4px; transition: all 0.2s; }
.info-btn:hover { background: var(--secondary); color: var(--white); }
@media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .main { margin-left: 0; } }
