* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    background: linear-gradient(45deg, #fff, #ecf0f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.sidebar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 3px;
}

.mobile-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    background: rgba(44, 62, 80, 0.9);
    border-radius: 4px;
    padding: 8px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
    }
}

.sidebar-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu > li {
    position: relative;
    margin-bottom: 2px;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 0 25px 25px 0;
    margin-right: 10px;
}

.nav-icon {
    font-size: 16px;
    opacity: 0.9;
    min-width: 20px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.content-wrapper {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Enhanced Dropdown Styles */
.nav-dropdown-toggle {
    cursor: pointer;
    width: 100%;
    position: relative;
    transition: all 0.2s ease;
}

.nav-dropdown-toggle:hover {
    background: rgba(255,255,255,0.15);
    border-radius: 0 20px 20px 0;
}

.nav-dropdown-toggle:active {
    transform: scale(0.98);
}

.dropdown-arrow {
    font-size: 12px;
    margin-left: auto;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.nav-dropdown.open .dropdown-arrow,
.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    background: rgba(0,0,0,0.3);
    border-radius: 0 0 8px 8px;
    padding: 0;
    margin-left: 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: none;
    visibility: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    max-height: 400px;
    padding: 8px 0;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Add visual indicator for active dropdowns */
.nav-dropdown.open > .nav-dropdown-toggle {
    background: rgba(255,255,255,0.15);
    border-radius: 0 20px 20px 0;
}

/* Better mobile dropdown behavior */
@media (max-width: 768px) {
    .nav-dropdown-menu {
        margin-left: 10px;
        border-radius: 4px;
        background: rgba(0,0,0,0.4);
    }
    
    .nav-dropdown-toggle:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .nav-dropdown.open .nav-dropdown-menu {
        animation: slideDown 0.3s ease;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown-menu li {
    list-style: none;
}

.nav-dropdown-menu a {
    color: rgba(255,255,255,0.8) !important;
    padding: 8px 20px;
    display: block;
    border-radius: 0;
    font-weight: 400;
    font-size: 14px;
    margin-right: 0;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
}

/* User Dropdown */
.sidebar-user {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.user-dropdown-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    flex: 1;
}

.user-role {
    opacity: 0.8;
    font-size: 11px;
    margin-top: -2px;
}

.user-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 20px;
    right: 20px;
    background: white;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e1e5e9;
}

.user-dropdown:hover .user-dropdown-menu,
.user-dropdown.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: slideUpFade 0.3s ease;
}

.user-dropdown-toggle:active {
    transform: scale(0.98);
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-dropdown-menu li {
    list-style: none;
}

.user-dropdown-menu a {
    color: #2c3e50;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.user-dropdown-menu a:hover {
    background: #f8f9fa;
}

.user-dropdown-menu .divider {
    height: 1px;
    background: #ecf0f1;
    margin: 5px 0;
}

.logout-link {
    color: #e74c3c !important;
}

.logout-link:hover {
    background: #fdf2f2 !important;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 100vh;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card h3 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-number.open {
    color: #e74c3c;
}

.stat-number.closed {
    color: #27ae60;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 400px;
}

.chart-container h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.chart-container canvas {
    height: 300px !important;
}

/* Tables */
.table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

tr:hover {
    background: #f8f9fa;
}

/* Risk Badge */
.risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Action Items */
.action-items {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.action-item {
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.action-item.high-priority {
    border-left: 4px solid #e74c3c;
}

.action-item.medium-priority {
    border-left: 4px solid #f39c12;
}

.action-item.low-priority {
    border-left: 4px solid #27ae60;
}

.action-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.priority-high {
    background: #e74c3c;
    color: white;
}

.priority-medium {
    background: #f39c12;
    color: white;
}

.priority-low {
    background: #27ae60;
    color: white;
}

/* Related Risks */
.related-risks {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Templates */
.template-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.template-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* Scoring Systems */
.weights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.inactive {
    background: #95a5a6;
    color: white;
}

/* Documents */
.documents-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.upload-form {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.documents-list {
    max-height: 300px;
    overflow-y: auto;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.document-item a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
}

.document-item a:hover {
    text-decoration: underline;
}

.file-size, .upload-date {
    font-size: 12px;
    color: #7f8c8d;
}

.related-risk-item {
    padding: 10px;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Compliance Dashboard */
.compliance-dashboard {
    margin: 20px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.dashboard-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.dashboard-card p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
}

/* Audit Trail */
.action-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.action-badge.insert {
    background: #27ae60;
    color: white;
}

.action-badge.update {
    background: #f39c12;
    color: white;
}

.action-badge.delete {
    background: #e74c3c;
    color: white;
}

/* Backup Management */
.backup-actions {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* Report Generation */
.report-generator {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.report-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Version Management */
.version-creator {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Version snapshot styles */
.version-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

/* Analytics Dashboard Styles */
.analytics-dashboard {
    padding: 20px 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 4px solid #3498db;
}

.kpi-card.critical { border-left-color: #e74c3c; }
.kpi-card.high { border-left-color: #f39c12; }
.kpi-card.overdue { border-left-color: #e67e22; }
.kpi-card.completion { border-left-color: #27ae60; }

.kpi-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.kpi-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.kpi-change {
    font-size: 0.8rem;
    color: #95a5a6;
}

.kpi-trend {
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Trend Analysis Styles */
.trend-controls {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

.time-period-selector {
    display: flex;
    gap: 10px;
}

.time-period-selector .btn.active {
    background-color: #3498db;
    color: white;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.chart-container.large {
    grid-column: 1 / -1;
}

.chart-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.trend-summary {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.summary-card {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.summary-value.increasing { color: #e74c3c; }
.summary-value.decreasing { color: #27ae60; }

.summary-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Executive Dashboard Styles */
.executive-summary {
    margin-bottom: 30px;
}

.executive-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.top-risks-section {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Aging Analysis Styles */
.aging-summary {
    margin: 30px 0;
}

.aging-buckets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.bucket-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.bucket-card.new { border-left: 4px solid #27ae60; }
.bucket-card.medium { border-left: 4px solid #f39c12; }
.bucket-card.old { border-left: 4px solid #e67e22; }
.bucket-card.stale { border-left: 4px solid #e74c3c; }

.bucket-count {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.bucket-label {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.aging-details {
    margin-top: 30px;
}

.aging-details tr.stale {
    background-color: #fdf2f2;
}

.aging-details tr.old {
    background-color: #fefbf3;
}

/* Custom Report Builder Styles */
.custom-report-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.report-builder {
    max-width: 1000px;
}

.builder-section {
    margin-bottom: 30px;
}

.builder-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.custom-report-results {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.report-export {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* Risk Heat Maps by Department */
.heatmap-container {
    margin: 20px 0;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.heatmap-cell {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.heatmap-cell:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

.dept-name {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.dept-metric {
    font-size: 18px;
    color: #7f8c8d;
}

.heatmap-legend {
    margin: 20px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legend-scale {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Authentication Styles */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    text-align: center;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.auth-card h2 {
    text-align: center;
    color: #7f8c8d;
    margin: 0 0 30px 0;
    font-size: 18px;
    font-weight: normal;
}

.auth-form {
    margin-bottom: 20px;
}

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

.auth-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.btn-full {
    width: 100%;
    margin: 0;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Navigation User Info */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    color: white;
    font-size: 14px;
}

.user-role {
    color: #bdc3c7;
    font-size: 12px;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    font-size: 12px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* User Management */
.role-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.role-badge.admin {
    background: #e74c3c;
    color: white;
}

.role-badge.risk_manager {
    background: #f39c12;
    color: white;
}

.role-badge.viewer {
    background: #95a5a6;
    color: white;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.active {
    background: #27ae60;
    color: white;
}

.status-badge.inactive {
    background: #95a5a6;
    color: white;
}

.activity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.activity-badge.login {
    background: #27ae60;
    color: white;
}

.activity-badge.logout {
    background: #95a5a6;
    color: white;
}

.activity-badge.user_create,
.activity-badge.user_update {
    background: #3498db;
    color: white;
}

.activity-badge.password_reset {
    background: #f39c12;
    color: white;
}

.user-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Alert styles */
.alert {
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-link {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

.relationship-type {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
}

/* Notifications */
.notifications-badge {
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    position: relative;
    top: -2px;
    margin-left: 5px;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #ecf0f1;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.notification-item.escalation {
    background: #f8d7da;
    border-left-color: #dc3545;
}

/* Filter Controls */
.filter-controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Risk Details */
.risk-details {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    margin-bottom: 30px;
}

.risk-info {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.risk-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.risk-info p {
    margin-bottom: 10px;
}

.risk-matrix-individual {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mitigation {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Matrix */
.matrix-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.matrix-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.y-label {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    margin-bottom: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.matrix-wrapper {
    display: flex;
    flex-direction: column;
}

.matrix-header {
    display: grid;
    grid-template-columns: 60px repeat(5, 120px);
    gap: 2px;
    margin-bottom: 2px;
}

.matrix-corner {
    background: #f8f9fa;
}

.matrix-label {
    background: #f8f9fa;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #2c3e50;
}

.matrix-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.matrix-row {
    display: grid;
    grid-template-columns: 60px repeat(5, 120px);
    gap: 2px;
}

.matrix-cell {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border-radius: 3px;
    position: relative;
}

.matrix-cell.large {
    min-height: 120px;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10px;
}

.matrix-cell.current-risk {
    border: 3px solid #2c3e50;
}

.cell-score {
    font-size: 1.2rem;
    font-weight: bold;
}

.cell-count {
    font-size: 0.8rem;
    margin-top: 5px;
}

.cell-risks {
    margin-top: 10px;
    width: 100%;
}

.risk-item {
    font-size: 0.7rem;
    margin-bottom: 2px;
    background: rgba(255,255,255,0.2);
    padding: 2px 5px;
    border-radius: 2px;
}

.risk-item a {
    color: white;
    text-decoration: none;
}

.more-risks {
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 5px;
}

.x-label {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
    color: #2c3e50;
}

.matrix-legend {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.legend-items {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.matrix-summary {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

.summary-count {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.summary-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Follow-ups */
.follow-ups {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.follow-up-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.follow-up-list {
    margin-top: 20px;
}

.follow-up-item {
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.follow-up-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Import/Export */
.import-export-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.export-section,
.import-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sample-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1002;
        background: rgba(44, 62, 80, 0.9);
        border-radius: 4px;
        padding: 8px;
    }

    .content-wrapper {
        margin-left: 0;
        padding-top: 60px;
    }

    .nav-dropdown-menu {
        max-height: 0;
        opacity: 0;
    }

    .nav-dropdown.active .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        max-height: 300px;
        opacity: 1;
        padding: 5px 0;
    }

    .user-dropdown-menu {
        left: 10px;
        right: 10px;
        position: fixed;
        bottom: 80px;
    }

    .user-info {
        display: flex;
    }

    /* Overlay for mobile sidebar */
    .sidebar.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 280px;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: -1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .risk-details {
        grid-template-columns: 1fr;
    }

    .matrix-header,
    .matrix-row {
        grid-template-columns: 40px repeat(5, 80px);
    }

    .matrix-cell.large {
        min-height: 80px;
        padding: 5px;
    }

    .import-export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 10px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .matrix-header,
    .matrix-row {
        grid-template-columns: 30px repeat(5, 60px);
    }

    .matrix-cell.large {
        min-height: 60px;
        padding: 3px;
    }

    .cell-score {
        font-size: 1rem;
    }

    .cell-count {
        font-size: 0.7rem;
    }
}

/* Notification and Alert Styles */
.notification-badge {
    background: #e74c3c;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.8em;
    margin-left: 5px;
}

.alerts-section {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #dc3545;
}

.alert-link {
    color: inherit;
    text-decoration: underline;
    font-weight: bold;
}

.stat-card.alert {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
}

.notifications-list {
    margin-bottom: 30px;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    background: white;
}

.notification-item.unread {
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
}

.notification-content {
    flex: 1;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.notification-type {
    font-weight: bold;
    text-transform: capitalize;
}

.notification-date {
    color: #666;
    font-size: 0.9em;
}

.notification-message {
    margin-bottom: 5px;
}

.notification-risk {
    font-size: 0.9em;
    color: #666;
}

.notification-risk a {
    color: #3498db;
    text-decoration: none;
}

.notification-actions {
    margin-left: 15px;
}

.notification-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.notification-badge.escalation {
    background-color: #e74c3c;
}

.notification-badge.review_overdue {
    background-color: #f39c12;
}

.notification-badge.review_reminder {
    background-color: #3498db;
}

.notification-badge.new_risk {
    background-color: #27ae60;
}

.notification-badge.follow_up_due {
    background-color: #9b59b6;
}

.status-read {
    color: #27ae60;
    font-weight: bold;
}

.status-unread {
    color: #e74c3c;
    font-weight: bold;
}

.settings-form {
    max-width: 600px;
}

.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
}

.checkbox-label input {
    margin-right: 8px;
}

.recent-notifications {
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.notifications-preview {
    display: grid;
    gap: 10px;
}

.notification-preview {
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid;
    background: #f8f9fa;
}

.notification-preview.escalation {
    border-color: #e74c3c;
}

.notification-preview.review_overdue {
    border-color: #f39c12;
}

.notification-preview.review_reminder {
    border-color: #3498db;
}

.notification-preview.new_risk {
    border-color: #27ae60;
}

.notification-preview .notification-type {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.notification-preview .notification-message {
    font-size: 0.9em;
    margin-bottom: 5px;
}

.notification-preview .notification-time {
    font-size: 0.8em;
    color: #666;
}

/* Risk Matrix Styles */
.risk-matrix {
    max-width: 600px;
    margin: 0 auto;
}

/* Heat map styles */
.heatmap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.heatmap-cell {
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #ddd;
    text-align: center;
}

.heatmap-cell h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.heatmap-cell .metric {
    display: block;
    font-size: 12px;
    margin: 5px 0;
    color: #666;
}

/* Enhanced Workflows Styles */
.workflow-dashboard {
    padding: 20px;
}

.workflow-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.workflow-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.workflow-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.workflow-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 18px;
}

/* Survey Taking Styles */
.survey-description {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.question-group {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.question-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}

.question-label .required {
    color: #e74c3c;
}

.rating-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.rating-option {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    margin: 0;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    margin: 0;
}

.risk-rating-group {
    margin-top: 15px;
    padding: 10px;
    background: #f1f3f4;
    border-radius: 4px;
}

.risk-rating-group label {
    display: block;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: normal;
}

.risk-rating-group select {
    width: 100%;
    max-width: 200px;
}

.workflow-card p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Collaboration Styles */
.collaboration-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.collaboration-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.collaboration-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.collaboration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.collaboration-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.collaboration-card p {
    margin: 0;
    color: #7f8c8d;
}

.discussion-thread {
    max-width: 800px;
    margin: 0 auto;
}

.discussion-message {
    background: white;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.discussion-message.reply {
    margin-left: 30px;
    border-left-color: #95a5a6;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.message-time {
    color: #7f8c8d;
    font-size: 0.9em;
}

.message-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.message-actions {
    text-align: right;
}

.reply-form {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Enhanced Collaboration Features */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.community-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.community-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.community-header h4 {
    margin: 0;
    color: #2c3e50;
}

.department-badge {
    background: #3498db;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.community-description {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.community-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #95a5a6;
}

.community-actions {
    display: flex;
    gap: 10px;
}

.expert-recommendation {
    background: white;
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.expertise {
    background: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.match-score {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.match-reason {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-style: italic;
}

.benchmark-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.benchmark-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.benchmarks-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.learning-path-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.path-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.path-header h4 {
    margin: 0;
    color: #2c3e50;
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: white;
}

.difficulty-badge.beginner {
    background: #27ae60;
}

.difficulty-badge.intermediate {
    background: #f39c12;
}

.difficulty-badge.advanced {
    background: #e74c3c;
}

.path-description {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.path-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #95a5a6;
}

/*
}
*/

.chat-rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.chat-room-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.room-header h4 {
    margin: 0;
    color: #2c3e50;
}

.room-type-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: white;
}

.room-type-badge.general {
    background: #3498db;
}

.room-type-badge.urgent {
    background: #e74c3c;
}

.room-type-badge.department {
    background: #9b59b6;
}

.room-description {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #95a5a6;
}

.chat-interface {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.chat-message.urgent {
    border-left: 4px solid #e74c3c;
}

.urgent-badge {
    background: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7em;
    font-weight: bold;
}

.chat-input {
    padding: 20px;
    background: white;
    border-top: 1px solid #eee;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input[type="text"] {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
}

.urgent-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #7f8c8d;
}

/* Security & Governance Styles */
.security-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.security-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.security-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.security-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.security-card h3 {
    margin: 0 0 0.5rem 0;
    color: #007bff;
}

.security-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.security-stats {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.policy-form {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.severity-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.severity-badge.high { background-color: #f8d7da; color: #721c24; }
.severity-badge.medium { background-color: #fff3cd; color: #856404; }
.severity-badge.low { background-color: #d1ecf1; color: #0c5460; }

.signatures-section, .sessions-section {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.signatures-info {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
}

.info-card h4 {
    margin: 0 0 0.5rem 0;
    color: #007bff;
}

.info-card ul {
    margin: 0;
    padding-left: 1.2rem;
}

.info-card li {
    margin-bottom: 0.25rem;
    color: #666;
}

.status-badge.valid { background-color: #d4edda; color: #155724; }
.status-badge.invalid { background-color: #f8d7da; color: #721c24; }
.status-badge.verified { background-color: #d4edda; color: #155724; }
.status-badge.unverified { background-color: #fff3cd; color: #856404; }
.status-badge.expired { background-color: #f8d7da; color: #721c24; }
.status-badge.resolved { background-color: #d4edda; color: #155724; }
.status-badge.open { background-color: #f8d7da; color: #721c24; }

.severity-badge.low { background-color: #d4edda; color: #155724; }
.severity-badge.medium { background-color: #fff3cd; color: #856404; }
.severity-badge.high { background-color: #f8d7da; color: #721c24; }

.status-badge.resolved { background-color: #d4edda; color: #155724; }
.status-badge.open { background-color: #f8d7da; color: #721c24; }

/* Geographic & Organizational Styles */
.geographic-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.geographic-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.geographic-card {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.geographic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #28a745;
}

.geographic-card h3 {
    margin: 0 0 0.5rem 0;
    color: #28a745;
}

.geographic-card p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.geographic-stats {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
}

.form-modal {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.risk-tier-badge, .criticality-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.risk-tier-badge.low, .criticality-badge.low { 
    background-color: #d4edda; 
    color: #155724; 
}

.risk-tier-badge.medium, .criticality-badge.medium { 
    background-color: #fff3cd; 
    color: #856404; 
}

.risk-tier-badge.high, .criticality-badge.high { 
    background-color: #f8d7da; 
    color: #721c24; 
}

.risk-tier-badge.critical, .criticality-badge.critical { 
    background-color: #d1ecf1; 
    color: #0c5460; 
}

.risk-map-container {
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.map-legend {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.legend-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.location-summary {
    margin-top: 2rem;
}

/* Discussion Thread */
.discussion-thread {
    max-width: 800px;
    margin: 0 auto;
}

.add-comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.discussion-messages {
    space-y: 20px;
}

.discussion-message {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.discussion-message.reply {
    margin-left: 40px;
    background: #f8f9fa;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.message-time {
    color: #666;
    font-size: 12px;
}

.message-content {
    margin-bottom: 10px;
    line-height: 1.5;
}

.message-actions {
    text-align: right;
}

.reply-form {
    margin-top: 15px;
    padding: 15px;
    background: #f0f0f0;
    border-radius: 5px;
}

.reply-form textarea {
    width: 100%;
    margin-bottom: 10px;
}

/* Expert Network */
.experts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.expert-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.expert-info h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.expertise-area {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.expert-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.availability-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.availability-badge.available {
    background: #e8f5e8;
    color: #2e7d32;
}

.availability-badge.limited {
    background: #fff3e0;
    color: #f57c00;
}

.availability-badge.busy {
    background: #ffebee;
    color: #d32f2f;
}

/* Knowledge Base */
.kb-categories {
    margin-bottom: 30px;
}

.category-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.kb-articles {
    display: grid;
    gap: 20px;
}

.kb-article {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.article-header h4 {
    margin: 0;
    flex-grow: 1;
}

.article-category {
    background: #f8f9fa;
    color: #495057;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 15px;
}

.article-snippet {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.article-meta {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Workshops */
.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.workshop-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.workshop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.workshop-header h4 {
    margin: 0;
    flex-grow: 1;
}

.workshop-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    white-space: nowrap;
    margin-left: 15px;
}

.workshop-status.status-scheduled {
    background: #e3f2fd;
    color: #1976d2;
}

.workshop-status.status-completed {
    background: #e8f5e8;
    color: #2e7d32;
}

.workshop-status.status-cancelled {
    background: #ffebee;
    color: #d32f2f;
}

.workshop-details {
    flex-grow: 1;
    margin-bottom: 15px;
}

.workshop-meta {
    font-size: 14px;
    color: #666;
}

.workshop-meta > div {
    margin-bottom: 5px;
}

.workshop-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Activity Feed */
.recent-activity {
    margin-top: 40px;
}

.activity-feed {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    font-size: 20px;
    margin-right: 15px;
    margin-top: 2px;
}

.activity-content {
    flex-grow: 1;
}

.activity-description {
    margin-bottom: 5px;
    line-height: 1.4;
}

.activity-time {
    color: #888;
    font-size: 12px;
}

/* Discussion Overview */
.discussions-overview {
    display: grid;
    gap: 15px;
}

.discussion-preview {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.discussion-risk {
    font-weight: 600;
    margin-bottom: 8px;
}

.discussion-risk a {
    color: #007bff;
    text-decoration: none;
}

.discussion-risk a:hover {
    text-decoration: underline;
}

.discussion-snippet {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.discussion-meta {
    color: #888;
    font-size: 12px;
}

/* Approval Workflow Styles */
.workflow-details {
    background: white;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #ddd;
}

.workflow-info {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.workflow-info p {
    margin: 8px 0;
}

.approval-stages {
    margin-top: 20px;
}

.stage-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 15px 0;
    padding: 20px;
    transition: all 0.3s ease;
}

.stage-item.approved {
    background: #d4edda;
    border-color: #c3e6cb;
}

.stage-item.rejected {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.stage-item.pending {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stage-header h4 {
    margin: 0;
    color: #2c3e50;
}

.stage-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.stage-status.approved {
    background: #28a745;
    color: white;
}

.stage-status.rejected {
    background: #dc3545;
    color: white;
}

.stage-status.pending {
    background: #ffc107;
    color: #212529;
}

.stage-details {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
}

.approval-form {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.approval-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Survey Styles */
.survey-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.questions-section {
    margin-top: 30px;
}

.question-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    position: relative;
}

.question-item .btn-danger {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Incident Management Styles */
.incident-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.severity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.severity-low {
    background: #d4edda;
    color: #155724;
}

.severity-medium {
    background: #fff3cd;
    color: #856404;
}

.severity-high {
    background: #f8d7da;
    color: #721c24;
}

.severity-critical {
    background: #d1ecf1;
    color: #0c5460;
}

/* Treatment Tracking Styles */
.treatment-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    position: relative;
    overflow: hidden;
    min-width: 100px;
}

.progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    transition: width 0.3s ease;
}

.progress-bar span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
    z-index: 1;
}

/* Status badges for various workflows */
.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-active {
    background: #d1ecf1;
    color: #0c5460;
}

.status-inactive {
    background: #f8f9fa;
    color: #6c757d;
}

.status-planned {
    background: #e2e3e5;
    color: #383d41;
}

.status-inprogress {
    background: #bee5eb;
    color: #0e6674;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .workflow-nav {
        grid-template-columns: 1fr;
    }

    .stage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .approval-actions {
        flex-direction: column;
    }
}

/* Chart containers */
.chart-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

/* Specialized Modules Styling */
.cyber-dashboard, .esg-dashboard, .crisis-dashboard, .regulatory-dashboard {
    padding: 20px 0;
}

.cyber-nav, .esg-nav, .crisis-nav, .regulatory-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cyber-card, .esg-card, .crisis-card, .regulatory-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cyber-card:hover, .esg-card:hover, .crisis-card:hover, .regulatory-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-decoration: none;
}

.cyber-card h3, .esg-card h3, .crisis-card h3, .regulatory-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.cyber-card p, .esg-card p, .crisis-card p, .regulatory-card p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* ESG Pillars */
.esg-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pillar-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pillar-card.environmental {
    border-top: 4px solid #27ae60;
}

.pillar-card.social {
    border-top: 4px solid #3498db;
}

.pillar-card.governance {
    border-top: 4px solid #9b59b6;
}

.pillar-stats {
    margin: 15px 0;
}

.stat-item {
    display: inline-block;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    display: block;
    font-size: 0.9em;
    color: #666;
}

.pillar-link {
    color: white;
    background: #34495e;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

/* Crisis Management */
.crisis-alert {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
}

.crisis-alert.active {
    background: #e74c3c;
    color: white;
}

.crisis-alert.normal {
    background: #27ae60;
    color: white;
}

.crisis-alert h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.crisis-activation {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.activation-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.activation-warning ul {
    margin: 10px 0 0 20px;
}

/* Badges */
.pillar-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.pillar-environmental {
    background: #27ae60;
}

.pillar-social {
    background: #3498db;
}

.pillar-governance {
    background: #9b59b6;
}

.materiality-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.materiality-low {
    background: #95a5a6;
}

.materiality-medium {
    background: #f39c12;
}

.materiality-high {
    background: #e67e22;
}

.materiality-critical {
    background: #e74c3c;
}

.deadline-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.deadline-badge.normal {
    background: #27ae60;
}

.deadline-badge.warning {
    background: #f39c12;
}

.deadline-badge.urgent {
    background: #e74c3c;
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.priority-low {
    background: #95a5a6;
}

.priority-medium {
    background: #3498db;
}

.priority-high {
    background: #f39c12;
}

.priority-critical {
    background: #e74c3c;
}

/* Stat Cards Variants */
.threat-card {
    border-left: 4px solid #e74c3c;
}

.vuln-card {
    border-left: 4px solid #f39c12;
}

.control-card {
    border-left: 4px solid #27ae60;
}

.incident-card {
    border-left: 4px solid #9b59b6;
}

.pending-card {
    border-left: 4px solid #f39c12;
}

.deadline-card {
    border-left: 4px solid #e74c3c;
}

.task-card {
    border-left: 4px solid #3498db;
}

.monitor-card {
    border-left: 4px solid #27ae60;
}

/* Form styling for specialized modules */
.cyber-form, .esg-form, .crisis-form, .regulatory-form, .monitoring-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-info {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;
}

.filter-badge {
    background: #2196f3;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.clear-filter {
    margin-left: 10px;
    color: #2196f3;
    text-decoration: none;
}

.clear-filter:hover {
    text-decoration: underline;
}

/* Chat Room Styles */
.chat-room-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.chat-room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.chat-room-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
}

.chat-messages {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    background: white;
}

.chat-message.urgent {
    border-left: 4px solid #e74c3c;
}

.message-header {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.message-time {
    font-size: 0.8em;
    color: #666;
    float: right;
}

/* Profile and Settings Styles */
.profile-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
}

.profile-card, .activity-card, .settings-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2em;
    font-weight: bold;
    margin-right: 20px;
}

.profile-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    color: #333;
}

.profile-email {
    color: #666;
    margin: 5px 0;
}

.profile-role {
    color: #3498db;
    font-weight: bold;
    margin: 5px 0;
}

.profile-department {
    color: #27ae60;
    margin: 5px 0;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #3498db;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.profile-details h4 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-label {
    font-weight: bold;
    color: #666;
}

.detail-value {
    color: #333;
}

.status-active {
    background: #27ae60;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.status-inactive {
    background: #e74c3c;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.activity-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    padding: 15px;
    border-left: 3px solid #3498db;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.activity-action {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.activity-description {
    color: #666;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8em;
    color: #999;
}

.no-activity {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
}

.settings-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 800px;
}

.settings-form {
    max-width: 100%;
}

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

.settings-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.settings-form input[type="text"],
.settings-form input[type="email"],
.settings-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.settings-form input[type="text"]:disabled {
    background: #f5f5f5;
    color: #666;
}

.settings-form small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9em;
}

.settings-form input[type="checkbox"] {
    margin-right: 10px;
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }
}

/* Metrics and dashboard styles */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Data Risk Management Styles */
.data-risk-sections {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.risk-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.risk-category-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.risk-category-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.risk-category-card h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.2em;
}

.risk-category-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.category-count {
    font-weight: bold;
    color: #3498db;
    margin-bottom: 15px;
}

/* Data classification badges */
.classification-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

.classification-public {
    background-color: #d4edda;
    color: #155724;
}

.classification-internal {
    background-color: #d1ecf1;
    color: #0c5460;
}

.classification-confidential {
    background-color: #fff3cd;
    color: #856404;
}

.classification-restricted {
    background-color: #f8d7da;
    color: #721c24;
}

/* Impact level badges */
.impact-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.impact-1 { background-color: #28a745; }
.impact-2 { background-color: #6c757d; }
.impact-3 { background-color: #ffc107; color: #212529; }
.impact-4 { background-color: #fd7e14; }
.impact-5 { background-color: #dc3545; }

/* Encryption status badges */
.encryption-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.encryption-encrypted {
    background-color: #d4edda;
    color: #155724;
}

.encryption-partially {
    background-color: #fff3cd;
    color: #856404;
}

.encryption-not {
    background-color: #f8d7da;
    color: #721c24;
}

.encryption-unknown {
    background-color: #e2e3e5;
    color: #383d41;
}

/* Severity badges for quality issues */
.severity-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.severity-low { background-color: #28a745; }
.severity-medium { background-color: #ffc107; color: #212529; }
.severity-high { background-color: #fd7e14; }
.severity-critical { background-color: #dc3545; }

/* Data asset specific styles */
.asset-details {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.asset-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.metadata-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.metadata-item label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.metadata-item .value {
    color: #666;
}

/* Risk scoring visualization */
.risk-score-matrix {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    max-width: 300px;
    margin: 20px 0;
}

.risk-score-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Data quality trends */
.quality-trends {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.trend-chart {
    height: 200px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-top: 15px;
}

/* Data lineage visualization */
.lineage-diagram {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 200px;
}

.lineage-node {
    display: inline-block;
    background: #e3f2fd;
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 10px;
    font-weight: 600;
    color: #1976d2;
}

.lineage-arrow {
    color: #666;
    font-size: 1.2em;
    margin: 0 10px;
}

/* Data risk category analysis */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.analysis-card h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Distribution chart styles */
.distribution-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.distribution-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bar-label {
    width: 60px;
    font-size: 0.9em;
    color: #666;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.bar-count {
    width: 30px;
    text-align: right;
    font-weight: 600;
    color: #2c3e50;
}

/* Impact level colors for bars */
.bar-fill.impact-1 { background-color: #28a745; }
.bar-fill.impact-2 { background-color: #20c997; }
.bar-fill.impact-3 { background-color: #ffc107; }
.bar-fill.impact-4 { background-color: #fd7e14; }
.bar-fill.impact-5 { background-color: #dc3545; }

/* Status distribution */
.status-distribution {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.status-count {
    font-weight: 600;
    color: #2c3e50;
}

/* Likelihood badges */
.likelihood-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.likelihood-1 { background-color: #28a745; }
.likelihood-2 { background-color: #20c997; }
.likelihood-3 { background-color: #ffc107; color: #212529; }
.likelihood-4 { background-color: #fd7e14; }
.likelihood-5 { background-color: #dc3545; }

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
}

.empty-state h4 {
    color: #6c757d;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 20px;
}

/* Status badges with more variations */
.status-badge.status-identified { background-color: #6c757d; }
.status-badge.status-under-assessment { background-color: #007bff; }
.status-badge.status-mitigation-in-progress { background-color: #ffc107; color: #212529; }
.status-badge.status-monitored { background-color: #17a2b8; }
.status-badge.status-resolved { background-color: #28a745; }

/* Responsive design for data risk module */
@media (max-width: 768px) {
    .risk-category-grid {
        grid-template-columns: 1fr;
    }

    .asset-metadata {
        grid-template-columns: 1fr;
    }

    .risk-score-matrix {
        max-width: 250px;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .distribution-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .bar-container {
        width: 100%;
        margin: 5px 0;
    }
}

/* Data risk details view */
.risk-details-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.risk-overview {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 25px;
}

.risk-overview h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.5em;
}

.risk-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-badge {
    background-color: #6f42c1;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.risk-score-display {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.score-item label {
    font-size: 0.9em;
    color: #666;
    font-weight: 600;
}

.risk-score-value {
    background: #17a2b8;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.1em;
}

.risk-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-section {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.1em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
}

.info-item span {
    color: #212529;
    text-align: right;
    flex: 1;
}

/* Responsive design for risk details */
@media (max-width: 768px) {
    .risk-score-display {
        justify-content: space-around;
    }
    
    .risk-details-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-item span {
        text-align: left;
    }
    
    .risk-badges {
        justify-content: center;
    }
}