* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    min-height: 100vh;
    color: #333;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    color: #10b981;
    font-weight: 700;
}

.logo span {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

/* Project Selector */
.project-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-selector label {
    font-weight: 500;
    color: #333;
}

.project-selector select {
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    min-width: 250px;
}

.project-selector select:focus {
    outline: none;
    border-color: #10b981;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #666;
    font-size: 14px;
}

.profile-pic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Section */
.welcome-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
}

.welcome-container h2 {
    font-size: 48px;
    color: white;
    margin-bottom: 16px;
    font-weight: 600;
}

.welcome-container p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.quick-stats .stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-stats .stat-card h3 {
    font-size: 16px;
    color: #666;
    margin-bottom: 12px;
}

.quick-stats .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #10b981;
}

/* Project Dashboard Layout */
#project-dashboard {
    display: flex;
    gap: 24px;
    min-height: calc(100vh - 118px);
}

/* Sidebar Navigation */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 24px 0;
    height: fit-content;
    position: sticky;
    top: 94px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.nav-link.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-left-color: #10b981;
}

/* Main Dashboard Area */
.main-dashboard {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    font-size: 32px;
    color: #333;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-primary {
    background: #10b981;
    color: white;
}

.btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.2);
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* KPI Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(16, 185, 129, 0.1);
    transition: transform 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
}

.kpi-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
}

.kpi-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.kpi-content h3 {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.kpi-trend {
    font-size: 12px;
    font-weight: 500;
}

.kpi-trend.positive {
    color: #10b981;
}

.kpi-trend.negative {
    color: #ef4444;
}

/* Executive Grid */
.executive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dashboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.dashboard-card canvas {
    position: relative !important;
    max-width: 100% !important;
    max-height: 300px !important;
}

/* Special handling for doughnut and pie charts */
.dashboard-card canvas[id*="issue"],
.dashboard-card canvas[id*="duplication"],
.dashboard-card canvas[id*="overall"] {
    width: 100% !important;
    height: 280px !important;
    max-height: 280px !important;
}

canvas {
    display: block !important;
}

.dashboard-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
    font-size: 18px;
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

/* QA Metrics Grid */
.qa-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.qa-metric {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.qa-metric-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 10px;
}

.qa-metric-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.qa-metric-content {
    flex: 1;
}

.qa-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.qa-metric-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
}

.qa-metric-trend {
    font-size: 11px;
    font-weight: 500;
}

.qa-metric-trend.positive {
    color: #10b981;
}

.qa-metric-trend.negative {
    color: #ef4444;
}

/* QA Methodologies Grid */
.qa-methodologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.methodology-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.methodology-card:hover {
    transform: translateY(-2px);
}

.methodology-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 12px;
}

.methodology-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.methodology-content {
    flex: 1;
}

.methodology-content h4 {
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.methodology-stats {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.methodology-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    min-width: 80px;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.activity-time {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    min-width: 80px;
}

.activity-desc {
    font-size: 14px;
    color: #333;
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-value {
    font-weight: 600;
    color: #333;
}

.metric-value.high {
    color: #10b981;
}

.metric-value.medium {
    color: #f59e0b;
}

.metric-value.low {
    color: #ef4444;
}

/* Hotspot List */
.hotspot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hotspot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid;
}

.hotspot-item.critical {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.hotspot-item.high {
    background: #fef3c7;
    border-left-color: #f59e0b;
}

.hotspot-item.medium {
    background: #ecfdf5;
    border-left-color: #10b981;
}

.hotspot-file {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
}

.hotspot-debt {
    font-weight: 600;
    color: #666;
}

/* Chart Summary */
.chart-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.chart-summary p {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

/* Coverage Stats */
.coverage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.coverage-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.coverage-card h3 {
    margin-bottom: 16px;
    color: #333;
    font-weight: 600;
}

.coverage-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.coverage-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    font-weight: 700;
    color: #10b981;
}

.coverage-bar {
    position: relative;
    height: 24px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
}

.coverage-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 12px;
    transition: width 0.3s ease;
}

.coverage-bar span {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #333;
}

/* Coverage Details */
.coverage-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.uncovered-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.uncovered-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
}

.file-path {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
}

.priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.priority.high {
    background: #fef2f2;
    color: #dc2626;
}

.priority.medium {
    background: #fef3c7;
    color: #d97706;
}

/* Security Overview */
.security-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.security-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid;
}

.security-card.critical {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.security-card.high {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fff);
}

.security-card.medium {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe, #fff);
}

.security-card.low {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #fff);
}

.security-card h3 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.security-count {
    font-size: 32px;
    font-weight: 700;
    color: #333;
}

/* Security Details */
.security-details {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.vulnerability-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vulnerability-item {
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid;
}

.vulnerability-item.critical {
    background: #fef2f2;
    border-left-color: #ef4444;
}

.vuln-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vuln-id {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
}

.vuln-severity {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: #fef2f2;
    color: #dc2626;
}

.vuln-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.vuln-file {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #666;
}

/* Compliance Grid */
.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.compliance-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 2px solid;
}

.compliance-card.passed {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #fff);
}

.compliance-card.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7, #fff);
}

.compliance-card.failed {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fff);
}

.compliance-card h3 {
    margin-bottom: 16px;
    color: #333;
    font-weight: 600;
    font-size: 20px;
}

.compliance-status {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.compliance-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.compliance-requirements {
    margin-top: 16px;
}

.compliance-requirements h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.requirement-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.requirement-item.passed {
    color: #10b981;
}

.requirement-item.failed {
    color: #ef4444;
}

.requirement-item.warning {
    color: #f59e0b;
}

/* CI/CD Pipeline */
.pipeline-stages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stage-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.stage-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.stage-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.stage-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.stage-status.success {
    background: #dcfce7;
    color: #166534;
}

.stage-status.warning {
    background: #fef3c7;
    color: #92400e;
}

.stage-status.error {
    background: #fef2f2;
    color: #dc2626;
}

/* Documentation Stats */
.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.doc-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    text-align: center;
}

.doc-stat-card h4 {
    color: #333;
    margin-bottom: 16px;
    font-weight: 600;
}

.doc-percentage {
    font-size: 36px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
}

.doc-label {
    color: #666;
    font-size: 14px;
}

/* Integration Cards */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.integration-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.integration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.integration-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.integration-name {
    font-weight: 600;
    color: #333;
}

.integration-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.integration-status.connected {
    background: #dcfce7;
    color: #166534;
}

.integration-status.disconnected {
    background: #fef2f2;
    color: #dc2626;
}

/* Team Management */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.team-member-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.member-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.member-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.member-info h4 {
    color: #333;
    margin-bottom: 4px;
    font-weight: 600;
}

.member-role {
    color: #666;
    font-size: 14px;
}

.member-permissions {
    margin-top: 16px;
}

.member-permissions h5 {
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.permission-tag {
    padding: 4px 8px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.report-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.report-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.report-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.report-title {
    font-weight: 600;
    color: #333;
}

.report-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 16px;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 16px;
}

.report-actions {
    display: flex;
    gap: 8px;
}

/* Settings Sections */
.settings-sections {
    display: grid;
    gap: 32px;
}

.settings-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.settings-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 18px;
}

.setting-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.setting-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.setting-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #10b981;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
}

/* Upload Methods */
.upload-methods {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.upload-method {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.upload-method:hover {
    border-color: #10b981;
}

.upload-method.active {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

/* Upload Area */
.upload-area {
    margin-top: 16px;
}

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.upload-zone:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.02);
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.upload-zone h4 {
    margin-bottom: 4px;
    color: #333;
}

.upload-zone p {
    color: #666;
    font-size: 14px;
}

/* Test Coverage Enhanced */
.coverage-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.coverage-metric {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.coverage-metric h4 {
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.coverage-value {
    font-size: 28px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 8px;
}

.coverage-trend {
    font-size: 12px;
    color: #666;
}

.coverage-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.test-types-breakdown {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.test-types-breakdown h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.test-type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.test-type-item:last-child {
    border-bottom: none;
}

.test-type-name {
    color: #333;
    font-weight: 500;
}

.test-type-coverage {
    font-weight: 600;
    color: #10b981;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #project-dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 24px;
    }
    
    .nav-menu li {
        white-space: nowrap;
    }
    
    .executive-grid {
        grid-template-columns: 1fr;
    }
    
    .security-details {
        grid-template-columns: 1fr;
    }
    
    .coverage-details {
        grid-template-columns: 1fr;
    }
    
    .coverage-analysis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 16px;
    }
    
    .project-selector {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .project-selector select {
        min-width: 200px;
    }
    
    .main-content {
        padding: 16px;
    }
    
    .main-dashboard {
        padding: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-stats {
        grid-template-columns: 1fr;
    }
    
    .security-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .coverage-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
} 