/* src/components/common/ProjectWorkspace.css */

.workspace-container {
    padding: 32px;
    color: #e5e5e5;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    animation: fadeInWorkspace 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.workspace-container *, .workspace-container *::before, .workspace-container *::after {
    box-sizing: border-box;
}

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

/* HEADER SECTION */
.workspace-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.workspace-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c, #f97316);
    background-size: 200% 100%;
    animation: moveGradient 3s linear infinite;
}

@keyframes moveGradient {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.header-main {
    flex: 1;
}

.back-btn {
    background: transparent;
    border: none;
    color: #f97316;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.back-btn:hover {
    transform: translateX(-4px);
    filter: brightness(1.2);
}

.workspace-header h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    color: white;
}

.project-category-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f97316;
}

.header-stats {
    display: flex;
    gap: 40px;
    align-items: center;
}

.stat-item .label {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.stat-item .value {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.progress-mini-bar {
    width: 120px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-mini-bar .fill {
    height: 100%;
    background: #f97316;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* MAIN SPLIT LAYOUT */
.workspace-split {
    display: flex;
    gap: 24px;
    min-height: 600px;
}

/* COMMAND CENTER (SIDEBAR) */
.command-center {
    width: 380px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 32px 24px;
    height: fit-content;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 32px;
    text-align: center;
}

.milestone-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.milestone-node {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.milestone-node:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(8px);
}

.milestone-node.active {
    background: rgba(249, 115, 22, 0.1);
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

.node-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 700;
}

.node-info p {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
}

/* OPERATIONS PANEL (MAIN) */
.operations-panel {
    flex: 1;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.panel-header {
    margin-bottom: 48px;
}

.panel-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    margin: 0 0 12px 0;
    color: white;
}

.panel-header p {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    font-size: 15px;
}

.section-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* EVIDENCE CARD */
.evidence-card-executive {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .evidence-card-executive {
        padding: 20px;
    }
}

.evidence-text-block {
    margin-bottom: 24px;
}

.evidence-text-block .label {
    font-size: 10px;
    font-weight: 800;
    color: #f97316;
    margin-bottom: 8px;
}

.evidence-text-block p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
}

.file-attachment-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .file-attachment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .action-btn-neon {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
}

.file-attachment-row .file-icon {
    font-size: 32px;
}

.file-attachment-row .file-meta .name {
    font-weight: 700;
    font-size: 15px;
}

.file-attachment-row .file-meta .size {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.action-btn-neon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 10px 24px;
    background: #f97316;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.action-btn-neon:hover {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

/* COMPOSER */
.workspace-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.workspace-textarea:focus {
    outline: none;
    border-color: #f97316;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 600px) {
    .workspace-textarea {
        padding: 16px;
        font-size: 14px;
    }
}

.upload-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 64px;
}

.workspace-upload-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(249, 115, 22, 0.5);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.workspace-upload-btn:hover {
    background: rgba(249, 115, 22, 0.05);
}

.workspace-submit-btn {
    padding: 16px 40px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.workspace-submit-btn:hover:not(:disabled) {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.4);
}

/* FEEDBACK HISTORY */
.history-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.history-item {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    padding: 24px;
}

.history-item.mentor { border-color: #f97316; }
.history-item.instructor { border-color: #3b82f6; }

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

.history-header .author { font-weight: 800; color: white; }
.history-header .tag { font-size: 9px; padding: 2px 8px; background: rgba(255,255,255,0.1); border-radius: 4px; color: rgba(255,255,255,0.6); }
.history-header .date { font-size: 12px; color: rgba(255,255,255,0.3); margin-left: auto; }

.attachment-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.empty-state-dark {
    padding: 48px;
    text-align: center;
    background: rgba(0,0,0,0.2);
    border-radius: 20px;
    border: 1px dashed rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.2);
    font-style: italic;
}

.empty-workspace {
    padding: 120px 0;
    text-align: center;
    color: rgba(255,255,255,0.2);
}

.empty-workspace .icon { font-size: 64px; margin-bottom: 24px; }

/* RESPONSIVE */
@media (max-width: 1200px) {
    .workspace-split { flex-direction: column; }
    .command-center { width: 100%; }
}

@media (max-width: 768px) {
    .workspace-header { flex-direction: column; align-items: flex-start; gap: 24px; }
    .header-stats { width: 100%; justify-content: space-between; }
    .operations-panel { padding: 24px; }
}

/* LEGACY DELIVERABLES */
.legacy-deliverables-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.deliverable-review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.deliverable-review-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.deliverable-review-card .d-icon {
    font-size: 24px;
    margin-right: 16px;
}

.deliverable-review-card .d-info {
    flex: 1;
}

.deliverable-review-card .d-name {
    font-weight: 700;
    font-size: 15px;
}

.deliverable-review-card .d-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 800;
}
/* DUAL FEEDBACK GRID */
.feedback-grid-executive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.feedback-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.column-header h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

/* AI INSIGHT CARD */
.ai-insight-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ai-insight-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
}

.ai-insight-card.low::before { background: #10b981; }
.ai-insight-card.medium::before { background: #f59e0b; }
.ai-insight-card.high::before { background: #ef4444; }
.ai-insight-card.critical::before { background: #7f1d1d; }

.risk-score-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.02);
}

.risk-score-ring .score {
    font-size: 20px;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
}

.risk-score-ring .label {
    font-size: 8px;
    font-weight: 800;
    opacity: 0.5;
}

.insight-content .summary {
    font-size: 15px;
    line-height: 1.6;
    color: white;
    margin-bottom: 20px;
}

.insight-list {
    margin-top: 16px;
}

.insight-list strong {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.insight-list ul {
    margin: 0;
    padding-left: 18px;
    list-style-type: square;
}

.insight-list li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.insight-list.suggestions li {
    color: #10b981;
}

@media (max-width: 992px) {
    .feedback-grid-executive {
        grid-template-columns: 1fr;
    }
}
