/**
 * ArcOps Dark Theme - Based on arcops-architecture-v2.html
 * Dark navy background with cyan/turquoise accents
 */

/* ===================================
   THEME VARIABLES
   =================================== */

body.arcops-theme {
    --bg-primary: #0a1628;
    --bg-secondary: #0d1f3c;
    --bg-card: rgba(20, 40, 70, 0.6);
    --bg-card-hover: rgba(30, 50, 80, 0.7);
    
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-teal: #06b6d4;
    --accent-red: #ef4444;
    
    --text-primary: #ffffff;
    --text-secondary: #8aa8c8;
    --text-muted: #5a7a9a;
    
    --border-default: rgba(100, 150, 200, 0.2);
    --border-hover: rgba(100, 150, 200, 0.4);
    --border-accent: rgba(0, 212, 255, 0.4);
}


/* ===================================
   BASE STYLES
   =================================== */

body.arcops-theme {
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%) !important;
    color: var(--text-primary);
    min-height: 100vh;
}

body.arcops-theme .container {
    background: transparent;
}


/* ===================================
   HEADER
   =================================== */

body.arcops-theme header {
    background: rgba(20, 40, 70, 0.6) !important;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 24px 20px;
    position: relative;
}

body.arcops-theme header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #7c3aed, #10b981, #00d4ff);
    background-size: 300% auto;
    animation: gradient 4s ease infinite;
    border-radius: 12px 12px 0 0;
}

@keyframes gradient {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

body.arcops-theme header h1 {
    background: linear-gradient(90deg, #00d4ff, #7c3aed, #10b981);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 4s ease infinite;
    font-size: 2rem;
}

body.arcops-theme .subtitle {
    color: var(--text-muted) !important;
}

body.arcops-theme .header-actions button {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    color: var(--accent-cyan) !important;
    padding: 6px 14px;
    font-size: 0.85rem;
}

body.arcops-theme .header-actions button:hover {
    background: rgba(0, 212, 255, 0.2) !important;
    border-color: var(--accent-cyan) !important;
}


/* ===================================
   WIZARD STEPS
   =================================== */

body.arcops-theme .wizard-step {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 24px;
}

body.arcops-theme .wizard-step h2 {
    color: var(--accent-cyan) !important;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

body.arcops-theme .wizard-step h3 {
    color: var(--text-primary) !important;
    font-size: 1rem;
}


/* ===================================
   COMPACT CARDS - Industry & Environment
   =================================== */

body.arcops-theme .industry-card,
body.arcops-theme .env-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 10px;
    padding: 12px 14px !important;
    min-width: 140px;
    transition: all 0.3s ease;
}

body.arcops-theme .industry-card:hover,
body.arcops-theme .env-card:hover {
    border-color: var(--border-hover) !important;
    transform: translateY(-2px);
}

body.arcops-theme .industry-card.selected,
body.arcops-theme .env-card.selected {
    border-color: var(--accent-cyan) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

body.arcops-theme .industry-card .industry-icon,
body.arcops-theme .env-card .env-icon {
    font-size: 1.5rem !important;
    margin-bottom: 6px;
}

body.arcops-theme .industry-card h4,
body.arcops-theme .env-card h4 {
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
    margin-bottom: 4px;
}

body.arcops-theme .industry-card p,
body.arcops-theme .env-card p {
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
    margin-bottom: 6px;
}

body.arcops-theme .industry-cards,
body.arcops-theme .environment-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 10px !important;
}

body.arcops-theme .compliance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

body.arcops-theme .compliance-tags .tag {
    background: rgba(124, 58, 237, 0.2) !important;
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: #a78bfa !important;
    padding: 2px 6px !important;
    border-radius: 4px;
    font-size: 0.6rem !important;
}


/* ===================================
   COMPACT WORKLOAD CARDS
   =================================== */

body.arcops-theme .card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 10px;
    padding: 14px !important;
    transition: all 0.3s ease;
}

body.arcops-theme .card:hover {
    border-color: var(--border-hover) !important;
    transform: translateY(-2px);
}

body.arcops-theme .card.selected {
    border-color: var(--accent-cyan) !important;
    background: rgba(0, 212, 255, 0.08) !important;
}

body.arcops-theme .card.selected::after {
    background: var(--accent-cyan) !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.8rem !important;
}

body.arcops-theme .card-icon {
    font-size: 2rem !important;
    margin-bottom: 8px !important;
}

body.arcops-theme .card h3 {
    color: var(--text-primary) !important;
    font-size: 0.95rem !important;
    margin-bottom: 4px;
}

body.arcops-theme .card p {
    color: var(--text-secondary) !important;
    font-size: 0.8rem !important;
    margin-bottom: 8px;
}

body.arcops-theme .card-specs {
    color: var(--text-muted) !important;
    font-size: 0.7rem !important;
    border-top: 1px solid var(--border-default);
    padding-top: 8px;
    margin-top: 8px;
}

body.arcops-theme .workload-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 12px !important;
}


/* ===================================
   ARC EXTENSION BADGE
   =================================== */

body.arcops-theme [style*="ARC EXT"] {
    background: rgba(124, 58, 237, 0.3) !important;
    border: 1px solid rgba(124, 58, 237, 0.5) !important;
    color: #a78bfa !important;
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
}


/* ===================================
   STATUS BADGES
   =================================== */

body.arcops-theme .cost-badge {
    background: rgba(16, 185, 129, 0.2) !important;
    color: var(--accent-green) !important;
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}


/* ===================================
   FORM ELEMENTS
   =================================== */

body.arcops-theme .form-group label {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
}

body.arcops-theme .form-group input,
body.arcops-theme .form-group select,
body.arcops-theme .form-group textarea {
    background: rgba(10, 22, 40, 0.8) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-primary) !important;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

body.arcops-theme .form-group input:focus,
body.arcops-theme .form-group select:focus {
    border-color: var(--accent-cyan) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

body.arcops-theme .form-group input::placeholder {
    color: var(--text-muted);
}

body.arcops-theme .form-group small {
    color: var(--text-muted) !important;
    font-size: 0.75rem;
}


/* ===================================
   BUTTONS
   =================================== */

body.arcops-theme .btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0099cc) !important;
    color: #0a1628 !important;
    border: none !important;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 6px;
}

body.arcops-theme .btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

body.arcops-theme .btn-secondary {
    background: transparent !important;
    border: 1px solid var(--border-accent) !important;
    color: var(--accent-cyan) !important;
}

body.arcops-theme .btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1) !important;
}

body.arcops-theme .btn-export {
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: var(--accent-green) !important;
}

body.arcops-theme .btn-export:hover {
    background: var(--accent-green) !important;
    color: var(--bg-primary) !important;
}


/* ===================================
   INFO BANNERS & ALERTS
   =================================== */

body.arcops-theme .info-banner {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-left: 3px solid var(--accent-cyan) !important;
    color: var(--text-secondary) !important;
    border-radius: 6px;
    padding: 12px 14px;
}

body.arcops-theme .info-banner h3,
body.arcops-theme .info-banner strong {
    color: var(--accent-cyan) !important;
}

body.arcops-theme [style*="background: #fff3cd"],
body.arcops-theme [style*="background: #fff4e5"],
body.arcops-theme [style*="background: linear-gradient(135deg, #0078d4"] {
    background: rgba(0, 212, 255, 0.15) !important;
    border-color: rgba(0, 212, 255, 0.3) !important;
    color: var(--text-secondary) !important;
}

body.arcops-theme [style*="background: #e8f5e9"] {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
    color: var(--accent-green) !important;
}

body.arcops-theme [style*="background: linear-gradient(135deg, #f093fb"] {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(245, 87, 108, 0.3)) !important;
    border: 1px solid rgba(124, 58, 237, 0.4);
    color: var(--text-primary) !important;
}


/* ===================================
   COLLAPSIBLE SECTIONS - COMPACT
   =================================== */

body.arcops-theme h3[onclick] {
    background: rgba(20, 40, 70, 0.4) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 8px;
    padding: 10px 14px !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
}

body.arcops-theme h3[onclick]:hover {
    border-color: var(--border-hover) !important;
}

body.arcops-theme [id$="ConfigSection"],
body.arcops-theme [id$="Section"]:not(.wizard-step) {
    background: rgba(15, 31, 60, 0.5) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 8px;
}


/* ===================================
   EXTENSIONS LIST
   =================================== */

body.arcops-theme [style*="background: #e8f5e9"] {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

body.arcops-theme #extensionsList > div,
body.arcops-theme [style*="background: white"] {
    background: rgba(20, 40, 70, 0.6) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-primary) !important;
}


/* ===================================
   CATALOG NOTIFICATION
   =================================== */

body.arcops-theme .catalog-notification {
    background: rgba(0, 212, 255, 0.1) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    border-left: 3px solid var(--accent-cyan) !important;
    color: var(--text-secondary) !important;
}


/* ===================================
   PLAN SUMMARY & SECURITY
   =================================== */

body.arcops-theme .plan-summary,
body.arcops-theme .security-scorecard {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-default);
    border-radius: 12px;
}

body.arcops-theme .summary-table td {
    color: var(--text-secondary) !important;
    border-color: var(--border-default) !important;
}


/* ===================================
   FOOTER
   =================================== */

body.arcops-theme footer {
    background: transparent !important;
    color: var(--text-muted) !important;
}

body.arcops-theme footer a {
    color: var(--accent-cyan) !important;
}


/* ===================================
   OVERRIDE INLINE STYLES 
   =================================== */

body.arcops-theme [style*="color: #666"],
body.arcops-theme [style*="color: #555"],
body.arcops-theme [style*="color: #856404"] {
    color: var(--text-secondary) !important;
}

body.arcops-theme [style*="color: var(--primary-color)"],
body.arcops-theme [style*="color: #0078d4"] {
    color: var(--accent-cyan) !important;
}

body.arcops-theme [style*="background: #f8f9fa"],
body.arcops-theme [style*="background: #fafafa"] {
    background: rgba(20, 40, 70, 0.4) !important;
}

body.arcops-theme hr {
    border-color: var(--border-default) !important;
}


/* ===================================
   ADVANCED TOGGLE BANNER
   =================================== */

body.arcops-theme .advanced-toggle-banner {
    background: linear-gradient(135deg, rgba(0,212,255,0.12) 0%, rgba(124,58,237,0.12) 100%) !important;
    border-color: rgba(0,212,255,0.3) !important;
}

body.arcops-theme .advanced-toggle-banner strong {
    color: var(--text-primary) !important;
}

body.arcops-theme .advanced-toggle-banner p {
    color: var(--text-muted) !important;
}

body.arcops-theme .advanced-toggle-banner button {
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
}

body.arcops-theme .advanced-toggle-banner button:hover {
    background: rgba(0, 212, 255, 0.15) !important;
}


/* ===================================
   CONFIG SECTION CARDS 
   =================================== */

body.arcops-theme .config-section-card,
body.arcops-theme [class*="config-section"] {
    background: rgba(20, 40, 70, 0.5) !important;
    border: 1px solid var(--border-default) !important;
}

body.arcops-theme [id$="ConfigSection"] {
    background: rgba(20, 40, 70, 0.5) !important;
    border: 1px solid var(--border-default) !important;
}


/* ===================================
   COMPACT MODE - SMALLER CARDS
   =================================== */

body.arcops-theme .card,
body.arcops-theme .industry-card,
body.arcops-theme .env-card {
    padding: 12px 14px !important;
}

body.arcops-theme .card-icon,
body.arcops-theme .industry-icon,
body.arcops-theme .env-icon {
    font-size: 1.6rem !important;
    margin-bottom: 6px !important;
}

body.arcops-theme .card h3,
body.arcops-theme .industry-card h4,
body.arcops-theme .env-card h4 {
    font-size: 0.9rem !important;
    margin-bottom: 4px !important;
}

body.arcops-theme .card p,
body.arcops-theme .industry-card p,
body.arcops-theme .env-card p {
    font-size: 0.75rem !important;
    margin-bottom: 6px !important;
    line-height: 1.4;
}

body.arcops-theme .card-specs {
    font-size: 0.7rem !important;
    padding-top: 6px !important;
    margin-top: 6px !important;
}


/* ===================================
   STEP INDICATORS
   =================================== */

body.arcops-theme .wizard-step {
    margin-bottom: 20px;
}

body.arcops-theme .wizard-step h2 {
    font-size: 1.3rem !important;
    margin-bottom: 16px;
}

body.arcops-theme h3 {
    font-size: 0.95rem !important;
}

body.arcops-theme .form-group label {
    font-size: 0.85rem !important;
}

body.arcops-theme .form-group small {
    font-size: 0.75rem !important;
}


/* ===================================
   CONFIGURATION TABS
   =================================== */

body.arcops-theme .config-tabs-container {
    background: rgba(20, 40, 70, 0.4);
    border: 1px solid var(--border-default);
    border-radius: 10px;
    padding: 16px;
}

body.arcops-theme .config-tab {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.arcops-theme .config-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(30, 50, 80, 0.6);
}

body.arcops-theme .config-tab.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 600;
}

body.arcops-theme .config-tab-content {
    background: rgba(15, 31, 60, 0.5);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    max-height: 450px;
    overflow-y: auto;
}

body.arcops-theme .config-tab-content::-webkit-scrollbar {
    width: 6px;
}

body.arcops-theme .config-tab-content::-webkit-scrollbar-track {
    background: rgba(20, 40, 70, 0.3);
    border-radius: 3px;
}

body.arcops-theme .config-tab-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}

body.arcops-theme .config-tab-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* Hide original accordion sections when using tabs */
body.arcops-theme .accordion-section-hidden {
    display: none !important;
}


/* ===================================
   STEP 3 TABS
   =================================== */

body.arcops-theme .step3-tab {
    background: rgba(20, 40, 70, 0.5);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

body.arcops-theme .step3-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(30, 50, 80, 0.6);
}

body.arcops-theme .step3-tab.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    font-weight: 600;
}

body.arcops-theme .step3-tab-content {
    background: rgba(15, 31, 60, 0.5);
    border: 1px solid var(--border-default);
    border-radius: 8px;
    padding: 20px;
}

body.arcops-theme .step3-tab-content::-webkit-scrollbar {
    width: 6px;
}

body.arcops-theme .step3-tab-content::-webkit-scrollbar-track {
    background: rgba(20, 40, 70, 0.3);
    border-radius: 3px;
}

body.arcops-theme .step3-tab-content::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 3px;
}


/* ===================================
   STEP 3 SECURITY SCORECARD FIX
   =================================== */

body.arcops-theme .security-scorecard {
    background: rgba(20, 40, 70, 0.6) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-primary) !important;
}

body.arcops-theme .security-scorecard h3 {
    color: var(--accent-cyan) !important;
}

body.arcops-theme .score-circle {
    background: rgba(10, 22, 40, 0.8) !important;
    border-color: var(--accent-orange) !important;
}

body.arcops-theme .score-number {
    color: var(--accent-orange) !important;
}

body.arcops-theme .score-label {
    color: var(--text-muted) !important;
}

body.arcops-theme .score-rating {
    color: var(--accent-orange) !important;
}

body.arcops-theme .score-subtitle {
    color: var(--text-muted) !important;
}

body.arcops-theme .security-checks {
    background: transparent !important;
}

body.arcops-theme .security-check-item,
body.arcops-theme [class*="check-item"] {
    background: rgba(20, 40, 70, 0.5) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-primary) !important;
}

body.arcops-theme .security-check-item h4,
body.arcops-theme [class*="check-item"] h4 {
    color: var(--text-primary) !important;
}

body.arcops-theme .security-check-item p,
body.arcops-theme [class*="check-item"] p {
    color: var(--text-secondary) !important;
}


/* ===================================
   STEP 3 CATEGORY BREAKDOWN FIX
   =================================== */

body.arcops-theme #categoryBreakdown > div,
body.arcops-theme [style*="background: white"],
body.arcops-theme [style*="background: #fff"] {
    background: rgba(20, 40, 70, 0.6) !important;
    border-color: var(--border-default) !important;
    color: var(--text-primary) !important;
}

body.arcops-theme #categoryBreakdown h4,
body.arcops-theme #categoryBreakdown h5 {
    color: var(--text-primary) !important;
}

body.arcops-theme #categoryBreakdown p,
body.arcops-theme #categoryBreakdown span {
    color: var(--text-secondary) !important;
}


/* ===================================
   STEP 3 COMPLIANCE GAP ANALYSIS FIX
   =================================== */

body.arcops-theme #complianceGapAnalysis,
body.arcops-theme #complianceMatrix {
    background: rgba(20, 40, 70, 0.4) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 8px;
    padding: 16px;
}

body.arcops-theme #complianceGapAnalysis h3,
body.arcops-theme #complianceGapAnalysis h4,
body.arcops-theme #complianceMatrix h3,
body.arcops-theme #complianceMatrix h4 {
    color: var(--text-primary) !important;
}

body.arcops-theme #complianceGapAnalysis p,
body.arcops-theme #complianceMatrix p {
    color: var(--text-secondary) !important;
}


/* ===================================
   STEP 3 EXPORT SECTION FIX
   =================================== */

body.arcops-theme .export-section,
body.arcops-theme .export-section-inner {
    background: rgba(20, 40, 70, 0.4) !important;
    border: 1px solid var(--border-default) !important;
}

body.arcops-theme .export-tab {
    background: transparent !important;
    color: var(--text-secondary) !important;
    border-bottom-color: transparent !important;
}

body.arcops-theme .export-tab:hover {
    color: var(--text-primary) !important;
}

body.arcops-theme .export-tab.active-tab {
    color: var(--accent-cyan) !important;
    border-bottom-color: var(--accent-cyan) !important;
}

body.arcops-theme .export-tab-content h4 {
    color: var(--accent-cyan) !important;
}

body.arcops-theme .export-tab-content p {
    color: var(--text-secondary) !important;
}

body.arcops-theme .btn-export {
    background: rgba(20, 40, 70, 0.6) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-primary) !important;
}

body.arcops-theme .btn-export:hover {
    border-color: var(--accent-cyan) !important;
    background: rgba(0, 212, 255, 0.1) !important;
}

body.arcops-theme .btn-export span {
    color: var(--text-secondary) !important;
}


/* ===================================
   STEP 3 PLAN SUMMARY FIX
   =================================== */

body.arcops-theme .plan-summary,
body.arcops-theme #planSummary {
    background: rgba(20, 40, 70, 0.5) !important;
    border: 1px solid var(--border-default) !important;
    color: var(--text-primary) !important;
}

body.arcops-theme .plan-summary h3,
body.arcops-theme .plan-summary h4 {
    color: var(--accent-cyan) !important;
}

body.arcops-theme .plan-summary table {
    color: var(--text-primary) !important;
}

body.arcops-theme .plan-summary td,
body.arcops-theme .plan-summary th {
    border-color: var(--border-default) !important;
    color: var(--text-secondary) !important;
}

body.arcops-theme .plan-summary td:first-child {
    color: var(--text-primary) !important;
}
