/* Optimized Asset Management Interface CSS */
/* Industrial Trust Design - Performance Optimized */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Inter', 'Roboto', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #1a1d29 0%, #2c3e50 50%, #34495e 100%);
    min-height: 100vh;
    color: #ecf0f1;
    line-height: 1.6;
    font-size: 16px;
    /* Performance optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Industrial background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(46, 204, 113, 0.1) 0%, transparent 50%),
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Container and layout - Full width */
.container {
    width: 100%;
    margin: 0;
    padding: 0 15px;
}

/* Industrial Navigation Styles */
.top-nav {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 18px 35px;
    margin-bottom: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Performance: Use transform for animations */
    will-change: transform;
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 16px;
    z-index: -1;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    text-decoration: none;
    color: #bdc3c7;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 
        0 4px 16px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-links a.active::before {
    opacity: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ecf0f1;
    font-weight: 500;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    border: 2px solid rgba(52, 152, 219, 0.3);
    box-shadow: 
        0 4px 12px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Industrial Main Content Layout - Fixed Grid for Stability */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    margin-bottom: 40px;
    align-items: start;
    /* Prevent layout shifts */
    min-height: 600px;
}

/* Industrial Sidebar Styles */
.sidebar {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    /* Fixed width to prevent content shifts */
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 16px;
    z-index: -1;
}

.sidebar h3 {
    color: #ecf0f1;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.menu-item {
    margin-bottom: 6px;
    /* Fixed height to prevent layout shifts */
    min-height: 48px;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #bdc3c7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    /* Fixed dimensions to prevent shifts */
    height: 48px;
    width: 100%;
    box-sizing: border-box;
    /* Performance optimization */
    will-change: transform, background-color;
}

.menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.menu-link:hover {
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.3);
    /* Minimal transform to prevent layout shifts */
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.menu-link:hover::before {
    opacity: 1;
}

.menu-link.active {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-color: rgba(52, 152, 219, 0.5);
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    /* No transform for active state to maintain stability */
    transform: none;
}

.menu-link.active::before {
    opacity: 0;
}

.menu-link.active::after {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

.menu-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    /* Fixed width to prevent text shifts */
    min-width: 20px;
}

/* Industrial Content Panel */
.content-panel {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.1);
    min-height: 650px;
    /* Fixed dimensions to prevent layout shifts */
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.content-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 16px;
    z-index: -1;
}

.content-section {
    display: none;
    /* Fixed container to prevent shifts */
    width: 100%;
    min-height: 580px;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
}

.section-header h2 {
    color: #ecf0f1;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.section-header .icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Tab navigation */
.tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tab-button:hover:not(.active) {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
}

/* Data tables */
.data-table {
    width: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.1);
    margin-top: 20px;
    backdrop-filter: blur(15px);
    /* Fixed table layout to prevent deformation */
    table-layout: fixed;
    position: relative;
}

.data-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03), rgba(46, 204, 113, 0.03));
    border-radius: 12px;
    z-index: -1;
}

.data-table th {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.9), rgba(44, 62, 80, 0.9));
    color: rgba(236, 240, 241, 0.95);
    font-weight: 600;
    padding: 20px;
    text-align: left;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    /* Fixed width to prevent column shifting */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    color: rgba(189, 195, 199, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Fixed width to prevent column shifting */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.data-table tr:hover {
    background: rgba(52, 152, 219, 0.1);
    box-shadow: inset 0 0 20px rgba(52, 152, 219, 0.1);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* Performance optimization */
    will-change: transform;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* Status badges */
.status-badge {
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.status-pending {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: white;
}

.status-inactive {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: white;
}

/* Form styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close:hover {
    color: #667eea;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
    border-left: 5px solid #667eea;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #28a745;
}

.notification.error {
    border-left-color: #dc3545;
}

.notification.warning {
    border-left-color: #ffc107;
}

/* Animation utilities */
.highlight {
    animation: highlight-animation 2s ease-out;
}

@keyframes highlight-animation {
    0% { background-color: rgba(52, 152, 219, 0); }
    50% { background-color: rgba(52, 152, 219, 0.3); }
    100% { background-color: rgba(52, 152, 219, 0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optimized responsive design */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 20px;
        padding: 20px 15px;
    }
    
    .menu-link {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .menu-link:hover {
        transform: translateX(2px);
    }
    
    .menu-link.active::before {
        display: none;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .top-nav {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .content-panel {
        padding: 25px 20px;
    }
    
    .panel-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-table-container {
        overflow-x: auto;
    }
    
    .enhanced-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    
    .enhanced-table th,
    .enhanced-table td {
        padding: 12px 8px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-card {
        padding: 15px;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .chart-label {
        min-width: auto;
    }
    
    .notification {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        transform: translateY(-100px);
        max-width: none;
    }
    
    .notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 10% 5%;
        padding: 25px 20px;
        width: 90%;
    }
}

/* Enhanced section headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

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

/* Dashboard panels */
.dashboard-panels {
    margin-bottom: 30px;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.dashboard-panel {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.panel-actions {
    display: flex;
    gap: 8px;
}

.panel-content {
    padding: 25px;
}

/* Asset map styles */
.asset-map-container {
    text-align: center;
}

.map-placeholder {
    height: 200px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px dashed #dee2e6;
}

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

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

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Asset type chart */
.asset-type-chart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chart-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.chart-bar {
    flex: 1;
    height: 8px;
    background: #f1f3f4;
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.chart-value {
    min-width: 120px;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

/* Enhanced table styles */
.enhanced-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.1);
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(15px);
    position: relative;
    /* Fixed container to prevent layout shifts */
    min-height: 300px;
}

.enhanced-table-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03), rgba(46, 204, 113, 0.03));
    border-radius: 12px;
    z-index: -1;
}

.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    font-size: 0.9rem;
    /* Fixed table layout to prevent deformation */
    table-layout: fixed;
}

.enhanced-table th {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.9), rgba(44, 62, 80, 0.9));
    color: rgba(236, 240, 241, 0.95);
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    /* Fixed width to prevent column shifting */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enhanced-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
    vertical-align: middle;
    color: rgba(189, 195, 199, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Fixed width to prevent column shifting */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.enhanced-table tr:hover {
    background: rgba(52, 152, 219, 0.1);
    box-shadow: inset 0 0 20px rgba(52, 152, 219, 0.1);
}

.asset-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.asset-name {
    font-weight: 600;
    color: #2c3e50;
}

.asset-code {
    font-size: 0.8rem;
    color: #6c757d;
}

.asset-type {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.asset-type.office {
    background: #e3f2fd;
    color: #1976d2;
}

.asset-type.commercial {
    background: #e8f5e8;
    color: #388e3c;
}

.asset-type.residential {
    background: #fff3e0;
    color: #f57c00;
}

.asset-type.logistics {
    background: #fce4ec;
    color: #c2185b;
}

.progress-indicator {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 3px;
    transition: width 0.8s ease;
}

.positive {
    color: #28a745;
    font-weight: 600;
}

.negative {
    color: #dc3545;
    font-weight: 600;
}

.action-buttons-inline {
    display: flex;
    gap: 5px;
}

/* Button variations */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-ghost {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.btn-ghost:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

/* Activity feed styles */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #f8f9fa;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f1f3f4;
    transform: translateX(2px);
}

.activity-item.success {
    border-left-color: #28a745;
}

.activity-item.info {
    border-left-color: #17a2b8;
}

.activity-item.warning {
    border-left-color: #ffc107;
}

.activity-item.danger {
    border-left-color: #dc3545;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #667eea;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-item.success .activity-icon {
    color: #28a745;
}

.activity-item.info .activity-icon {
    color: #17a2b8;
}

.activity-item.warning .activity-icon {
    color: #ffc107;
}

.activity-item.danger .activity-icon {
    color: #dc3545;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.activity-desc {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 5px;
}

.activity-time {
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
}

/* Quick actions grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-action-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
}

.quick-action-card:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.quick-action-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.quick-action-text {
    flex: 1;
}

.quick-action-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.quick-action-desc {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

/* Header styles - moved to end for better organization */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.header h1 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* Dashboard stats section */
.dashboard-stats {
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    /* Fixed grid to prevent layout shifts */
    min-height: 200px;
}

/* Industrial Stat Cards with Metal Themes */
.stat-card.primary {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: white;
    box-shadow: 
        0 8px 32px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card.success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.9), rgba(39, 174, 96, 0.9));
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: white;
    box-shadow: 
        0 8px 32px rgba(46, 204, 113, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card.warning {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.9), rgba(230, 126, 34, 0.9));
    border: 1px solid rgba(241, 196, 15, 0.3);
    color: white;
    box-shadow: 
        0 8px 32px rgba(241, 196, 15, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card.info {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.9), rgba(142, 68, 173, 0.9));
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: white;
    box-shadow: 
        0 8px 32px rgba(155, 89, 182, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stat-card.primary .stat-icon,
.stat-card.success .stat-icon,
.stat-card.warning .stat-icon,
.stat-card.info .stat-icon {
    color: rgba(255, 255, 255, 0.95);
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.stat-card.primary .stat-change,
.stat-card.success .stat-change,
.stat-card.warning .stat-change,
.stat-card.info .stat-change {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-detail {
    font-size: 0.8rem;
    opacity: 0.9;
    margin-top: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-card {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95), rgba(52, 73, 94, 0.95));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(52, 152, 219, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* Fixed dimensions to prevent layout shifts */
    min-height: 180px;
    /* Performance optimization */
    will-change: transform;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(46, 204, 113, 0.05));
    border-radius: 16px;
    z-index: -1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(52, 152, 219, 0.2);
}

.stat-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(46, 204, 113, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.stat-value {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    font-weight: 700;
    color: rgba(236, 240, 241, 0.95);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.stat-label {
    color: rgba(189, 195, 199, 0.9);
    font-weight: 500;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-change {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.stat-change.positive {
    color: rgba(46, 204, 113, 0.9);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.stat-change.negative {
    color: rgba(231, 76, 60, 0.9);
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.container {
    width: 100%;
    margin: 0;
    padding: 0 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Header Styles */
.header {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #ecf0f1; /* Light gray text */
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #3498db; /* Accent blue border */
}

.header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
}

.header .logo i {
    margin-right: 10px;
    color: #3498db; /* Accent blue for icon */
}

.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.navigation li {
    margin-left: 25px;
}

.navigation a {
    color: #ecf0f1;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation a:hover, .navigation a.active {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
}

.user-actions .btn {
    margin-left: 15px;
    padding: 10px 18px;
    font-size: 0.95em;
}

/* Project Info Bar */
.project-info-bar {
    background-color: #34495e; /* Slightly lighter dark blue-gray */
    color: #ecf0f1;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 8px 8px; /* Rounded bottom corners if header is separate */
}

.project-info-bar h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 500;
}

.project-info-bar .status {
    font-size: 1em;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.status.active {
    background-color: #2ecc71; /* Green for active */
    color: #fff;
}

.status.pending {
    background-color: #f39c12; /* Orange for pending */
    color: #fff;
}

/* Main Content Area */
.main-content {
    display: flex;
    margin-top: 20px;
    gap: 20px; /* Gap between sidebar and content */
}

.left-sidebar {
    width: 280px; /* Fixed width for sidebar */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content; /* Adjust height to content */
}

.content-area {
    flex-grow: 1; /* Takes remaining space */
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.content-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
}

/* General Card Styles */
.card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}

.card-header {
    font-size: 1.3em;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header i {
    margin-right: 8px;
    color: #3498db;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 25px;
    margin-top: 30px;
    background-color: #2c3e50;
    color: #bdc3c7; /* Lighter gray for footer text */
    border-top: 4px solid #3498db;
    font-size: 0.9em;
}

.footer a {
    color: #3498db;
}

.footer a:hover {
    color: #ecf0f1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Enhanced Dashboard Styles */
.dashboard {
    padding: 25px;
    background-color: #ffffff; /* White background for dashboard area */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08); /* Softer, more diffused shadow */
    margin-top: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef; /* Lighter border */
}

.dashboard-header h1 {
    font-size: 2em; /* Larger title */
    color: #343a40; /* Darker, more standard heading color */
    margin: 0;
}

.dashboard-actions .btn {
    margin-left: 10px;
}

/* Panel Styles */
.panel {
    background-color: #fff;
    border: 1px solid #dee2e6; /* Standard bootstrap-like border */
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Subtle shadow for panels */
    overflow: hidden; /* Ensure child elements adhere to border radius */
}

.panel-header {
    background-color: #f8f9fa; /* Very light gray for header */
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.4em;
    color: #495057; /* Dark gray for panel titles */
    margin: 0;
    font-weight: 600;
}

.panel-header .panel-actions .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8em;
}

.panel-body {
    padding: 20px;
}

.panel-footer {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

/* Tab Styles */
.tabs ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #3498db; /* Blue accent line for tabs */
    display: flex;
}

.tabs li {
    margin-right: 5px;
}

.tabs li a {
    display: block;
    padding: 12px 20px;
    background-color: #e9ecef;
    color: #495057;
    border-radius: 6px 6px 0 0; /* Rounded top corners */
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 1px solid transparent;
    border-bottom: none;
}

.tabs li a:hover {
    background-color: #d1d9e0;
    color: #212529;
    text-decoration: none;
}

.tabs li a.active {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db #3498db transparent #3498db;
}

.tab-content {
    padding-top: 20px;
    border-top: none;
}

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

.stat-card {
    background: linear-gradient(135deg, #6DD5FA, #2980B9); /* Gradient background */
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,123,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
}

.stat-card .stat-value {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

.stat-card .stat-label {
    font-size: 1em;
    opacity: 0.9;
}

/* Specific Stat Card Colors (Examples) */
.stat-card.revenue {
    background: linear-gradient(135deg, #76ECA2, #27AE60);
}
.stat-card.profit {
    background: linear-gradient(135deg, #FFD977, #F39C12);
}
.stat-card.users {
    background: linear-gradient(135deg, #8A9EFF, #5472D3);
}
.stat-card.transactions {
    background: linear-gradient(135deg, #FF8A8A, #D32F2F);
}

/* Data Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.data-table th, .data-table td {
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    text-align: left;
}

.data-table th {
    background-color: #f2f2f2; /* Lighter gray for table headers */
    font-weight: 600;
    color: #333;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.data-table tr:hover {
    background-color: #e6f7ff; /* Light blue hover for rows */
    cursor: default;
}

.data-table .actions a {
    margin-right: 8px;
    color: #007bff;
    font-size: 1.1em;
}
.data-table .actions a:hover {
    color: #0056b3;
}
.data-table .actions .text-danger:hover {
    color: #a71d2a;
}

/* Button Styles */
.btn {
    display: inline-block;
    font-weight: 500;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: #007bff;
    border: 1px solid #007bff;
    padding: 0.65rem 1.2rem;
    font-size: 1em;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
    text-decoration: none;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}
.btn-success:hover {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}
.btn-danger:hover {
    background-color: #b02a37;
    border-color: #b02a37;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background-color: #d39e00;
    border-color: #d39e00;
    color: #212529;
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}
.btn-info:hover {
    background-color: #117a8b;
    border-color: #117a8b;
}

.btn-light {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #212529;
}
.btn-light:hover {
    background-color: #dae0e5;
    border-color: #dae0e5;
    color: #212529;
}

.btn-dark {
    background-color: #343a40;
    border-color: #343a40;
}
.btn-dark:hover {
    background-color: #23272b;
    border-color: #23272b;
}

.btn-link {
    font-weight: 400;
    color: #007bff;
    background-color: transparent;
    border: none;
}
.btn-link:hover {
    color: #0056b3;
    text-decoration: underline;
    background-color: transparent;
    border: none;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1.2em;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85em;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn i {
    margin-right: 6px;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1em;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

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

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

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

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Tabs */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
    border-radius: 5px 5px 0 0;
}
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}
.tab button:hover {
    background-color: #ddd;
}
.tab button.active {
    background-color: #ccc;
}
.tab-content {
    display: none;
    padding: 20px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background-color: white;
}
.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}
.stat-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.stat-card h3 {
    margin-top: 0;
    font-size: 1.1em;
    color: #555;
    margin-bottom: 8px;
}
.stat-card .value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}
.stat-card .change {
    font-size: 0.9em;
}
.stat-card .change.positive {
    color: #28a745;
}
.stat-card .change.negative {
    color: #dc3545;
}
.stat-card .icon {
    font-size: 1.8em;
    float: right;
    color: #007bff;
    opacity: 0.7;
}

/* Action Buttons Area */
.action-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.data-table tr:hover {
    background-color: #f1f1f1;
}

/* Status Badges */
.status-badge {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
    color: white;
}
.status-active { background-color: #28a745; }
.status-pending { background-color: #ffc107; color: #333;}
.status-inactive { background-color: #6c757d; }
.status-completed { background-color: #17a2b8; }
.status-failed { background-color: #dc3545; }

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: 500;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 60%; 
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
}
.modal-header {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.6em;
    color: #333;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #e9ecef;
    border-radius: .25rem;
    height: 20px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.progress-fill {
    background-color: #007bff;
    height: 100%;
    text-align: center;
    color: white;
    line-height: 20px;
    font-size: 0.9em;
    transition: width 0.5s ease-in-out;
}

/* System Navigation Grid */
.system-navigation {
    margin-bottom: 30px;
}
.system-navigation h3 {
    font-size: 1.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
}
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.nav-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}
.nav-icon {
    font-size: 3em;
    margin-bottom: 15px;
    color: #3498db;
}
.nav-card h4 {
    font-size: 1.3em;
    color: #34495e;
    margin-bottom: 8px;
}
.nav-card p {
    font-size: 0.95em;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Oracle Data Panel */
.oracle-panel, .ai-panel {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    margin-bottom: 30px;
}
.oracle-panel h2, .ai-panel h2 {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
    display: flex;
    align-items: center;
}
.oracle-panel h2 i, .ai-panel h2 i {
    margin-right: 12px;
    color: #3498db;
}

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

.oracle-card, .ai-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.oracle-card h4, .ai-card h4 {
    font-size: 1.2em;
    color: #34495e;
    margin-bottom: 15px;
}

.oracle-data .data-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}
.oracle-data .data-item:last-child {
    border-bottom: none;
}
.oracle-data .data-item .label {
    font-weight: 500;
    color: #555;
}
.oracle-data .data-item .value {
    font-weight: bold;
    color: #333;
}
.oracle-data .data-item .change {
    font-size: 0.9em;
    margin-left: 8px;
}
.oracle-data .data-item .change.positive {
    color: #27ae60;
}
.oracle-data .data-item .change.negative {
    color: #c0392b;
}

/* AI Analysis Panel Specifics */
.ai-content {
    font-size: 1em;
    color: #555;
    line-height: 1.7;
}

.chart-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e9ecef;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 20px;
}

.risk-meter {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.risk-level {
    height: 100%;
    background-color: #2ecc71; /* Default to low risk */
    border-radius: 15px;
    transition: width 0.5s ease;
}

.risk-score {
    text-align: center;
    font-weight: bold;
    margin-bottom: 15px;
}

.ai-insights, .recommendations {
    margin-top: 15px;
}

.ai-insights h5, .recommendations h5 {
    font-size: 1.1em;
    color: #34495e;
    margin-bottom: 10px;
}

.ai-insights ul, .recommendations ul {
    list-style: none;
    padding-left: 0;
}

.ai-insights li, .recommendations .recommendation {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.ai-insights li:last-child, .recommendations .recommendation:last-child {
    border-bottom: none;
}

.recommendation {
    display: flex;
    align-items: center;
}

.rec-icon {
    font-size: 1.5em;
    margin-right: 12px;
    color: #3498db;
}

.rec-text {
    flex-grow: 1;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1050;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Highlight Effect */
.highlight {
    animation: highlight-animation 2s ease-out;
}

@keyframes highlight-animation {
    0% { background-color: rgba(52, 152, 219, 0); }
    50% { background-color: rgba(52, 152, 219, 0.3); }
    100% { background-color: rgba(52, 152, 219, 0); }
}

/* Improved Button Styles */
.action-button {
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 25px; /* Pill shape */
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255,255,255,0.2);
    transition: width 0.3s ease;
    z-index: -1;
}

.action-button:hover::before {
    width: 100%;
}

.action-button:active::before {
    background-color: rgba(0,0,0,0.1);
}

/* Improved Card Hover Effects */
.oracle-card:hover, .ai-card:hover, .nav-card:hover {
    border-color: #3498db;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
    .nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .oracle-grid, .ai-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .navigation ul {
        margin-top: 15px;
        flex-direction: column;
    }
    .navigation li {
        margin-left: 0;
        margin-bottom: 8px;
    }
    .user-actions {
        margin-top: 15px;
    }
    .main-content {
        flex-direction: column;
    }
    .left-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .dashboard-header h1 {
        margin-bottom: 15px;
    }
    .dashboard-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .dashboard-actions .btn {
        margin-left: 0;
        width: 100%;
    }
    .tabs ul {
        flex-wrap: wrap;
    }
    .tabs li {
        width: 50%; /* Two tabs per row */
        margin-right: 0;
    }
    .tabs li a {
        text-align: center;
    }
    .stat-card .stat-value {
        font-size: 1.8em;
    }
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 20px;
    }
    .nav-grid {
        grid-template-columns: 1fr; /* Single column for nav cards */
    }
    .oracle-grid, .ai-grid {
        grid-template-columns: 1fr; /* Single column */
    }
    .notification {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }
    .header .logo {
        font-size: 1.5em;
    }
    .project-info-bar {
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    .project-info-bar h2 {
        margin-bottom: 8px;
    }
    .container {
        padding: 10px;
    }
    .content-header h1 {
        font-size: 1.5em;
    }
    .stat-card {
        padding: 15px;
    }
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9em;
    }
    .action-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .tabs li {
        width: 100%; /* One tab per row */
    }
}

/* Left Menu for System Management */
.left-menu {
    width: 260px;
    background-color: #2c3e50; /* Dark sidebar */
    color: #ecf0f1;
    padding: 20px 0;
    height: 100vh; /* Full height */
    position: fixed; /* Fixed position */
    top: 0;
    left: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.menu-header {
    padding: 0 20px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #34495e;
}

.menu-header .logo {
    font-size: 1.6em;
    font-weight: bold;
    color: #fff;
}

.menu-header .logo i {
    margin-right: 8px;
    color: #3498db;
}

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

.menu-item {
    /* No specific styles here, styling is on .menu-link */
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #bdc3c7; /* Lighter text for links */
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-left: 3px solid transparent;
}

.menu-link:hover, .menu-link.active {
    background-color: #34495e; /* Slightly lighter on hover/active */
    color: #fff;
    border-left-color: #3498db; /* Accent color for active link */
}

.menu-icon {
    margin-right: 15px;
    font-size: 1.2em;
    width: 20px; /* Ensure icons align */
    text-align: center;
}

.menu-text {
    flex-grow: 1;
}

.menu-subtitle {
    padding: 15px 20px 5px 20px;
    font-size: 0.85em;
    color: #7f8c8d; /* Subdued color for subtitles */
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Content Area for System Management */
.content-area {
    margin-left: 260px; /* Account for fixed sidebar */
    padding: 30px;
    background-color: #f4f7f9;
    min-height: 100vh;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.content-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #2c3e50;
}

.content-section {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* System Management Interface Specifics */
.system-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.config-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.config-card h4 {
    font-size: 1.2em;
    color: #34495e;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.config-card h4 i {
    margin-right: 10px;
    color: #3498db;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.config-item label {
    font-weight: 500;
    color: #555;
}

.config-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.config-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Financial Management Specifics */
.financial-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.financial-card {
    background: linear-gradient(135deg, #56CCF2, #2F80ED);
    color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,100,200,0.2);
}

.financial-card h4 {
    margin-top: 0;
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 8px;
}

.financial-card .amount {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.financial-card .details {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Styles from the second style block */

/* Enhanced Dashboard Panel */
.dashboard-panel {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.dashboard-panel h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.dashboard-panel h2 i {
    margin-right: 12px;
    color: #3498db;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    padding: 12px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1.05em;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    margin-right: 10px;
}

.tab-button:hover {
    color: #007bff;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Sub Tabs */
.sub-tabs {
    display: flex;
    margin-bottom: 20px;
    padding-left: 10px; /* Indent sub-tabs slightly */
}

.sub-tabs .tab-button {
    font-size: 0.95em;
    padding: 10px 15px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.sub-tab-content {
    display: none;
    padding: 15px;
    border-top: 1px solid #eee;
    margin-top: -1px; /* Overlap with sub-tabs border */
}

.sub-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* Enhanced Stats Card */
.stats-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.stats-value {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stats-label {
    font-size: 0.95em;
    color: #6c757d;
}

/* Enhanced Action Buttons */
.action-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px; /* More rounded */
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.action-button.secondary {
    background-color: #6c757d;
}

.action-button.secondary:hover {
    background-color: #545b62;
}

.action-button i {
    font-size: 1.1em;
}

/* Styles from the third style block */

/* Data Table Enhancements */
.data-table {
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden; /* For border-radius on table */
}

.data-table th {
    background-color: #e9ecef; /* Lighter header */
    color: #495057;
    padding: 15px;
    font-weight: 600;
}

.data-table td {
    padding: 15px;
    color: #333;
    border-bottom: 1px solid #f1f1f1; /* Lighter row separator */
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f5faff; /* Very light blue hover */
}

/* Status Badge Enhancements */
.status-badge {
    padding: 6px 12px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

/* Progress Bar Enhancements */
.progress-bar {
    height: 10px; /* Slimmer progress bar */
    border-radius: 10px;
    background-color: #e0e0e0;
}

.progress-fill {
    border-radius: 10px;
    background: linear-gradient(90deg, #17a2b8, #28a745); /* Gradient fill */
}

/* Chart Container */
.chart-container {
    width: 100%;
    height: 300px; /* Default height */
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 20px;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #3498db; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Enhancements */
.notification {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-left: 5px solid;
}

.notification.success {
    border-left-color: #28a745;
    background-color: #e9f7ef;
    color: #155724;
}

.notification.error {
    border-left-color: #dc3545;
    background-color: #fce8e6;
    color: #721c24;
}

.notification.info {
    border-left-color: #17a2b8;
    background-color: #e7f5f7;
    color: #0c5460;
}

.notification.show {
    animation: slideInRight 0.5s forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Modal Enhancements */
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    animation: scaleUpModal 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

@keyframes scaleUpModal {
    from { transform: scale(0.9); opacity: 0.5; }
    to { transform: scale(1); opacity: 1; }
}

/* Form Group Enhancements */
.form-group label {
    font-size: 0.9em;
    color: #495057;
    font-weight: 600;
}

.form-input, .form-select, .form-textarea {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 1em;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    background-color: #fff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* New Main Layout Styles */
.main-layout {
    display: flex;
    min-height: 100vh;
    background-color: #eef1f5; /* Light background for the entire layout */
}

.left-sidebar {
    width: 280px;
    background-color: #ffffff; /* White sidebar */
    padding: 25px;
    border-right: 1px solid #dce1e7;
    box-shadow: 2px 0 8px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section h2, .sidebar-section h3 {
    font-size: 1.2em;
    color: #334155; /* Darker text for sidebar titles */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.projects-list {
    display: grid;
    gap: 15px;
}

.project-card {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.project-card:hover, .project-card.active {
    background-color: #e0f2fe; /* Light blue for hover/active */
    border-color: #7dd3fc;
}

.project-card h4 {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #1e293b;
}

.project-card p {
    margin: 0;
    font-size: 0.85em;
    color: #64748b;
}

.empty-state {
    text-align: center;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
}

.empty-state h3 {
    color: #475569;
    margin-bottom: 10px;
}

.empty-state p {
    color: #64748b;
    font-size: 0.9em;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-action-btn {
    background-color: #3b82f6; /* Blue primary button */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background-color: #2563eb; /* Darker blue on hover */
}

.quick-action-btn i {
    margin-right: 8px;
}

.right-content {
    flex-grow: 1;
    padding: 30px;
    overflow-y: auto;
}

.project-info {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.project-title h1 {
    font-size: 1.8em;
    color: #1e293b;
    margin: 0 0 5px 0;
}

.project-id {
    font-size: 0.9em;
    color: #64748b;
}

.project-status .status-badge {
    font-size: 0.9em;
    padding: 6px 12px;
}

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

.info-card {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e2e8f0;
}

.info-icon {
    font-size: 2em;
    color: #3b82f6;
    background-color: #eff6ff; /* Light blue background for icon */
    padding: 10px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h3 {
    margin: 0 0 5px 0;
    font-size: 0.95em;
    color: #475569;
}

.info-content p {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #1e293b;
}

/* Modal specific styles from the new layout */
.modal-content {
    padding: 25px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 1.5em;
    color: #1e293b;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #1e293b;
}

.form-label {
    font-size: 0.9em;
    color: #334155;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

/* Ensure the last style block is complete */

/* Additional styles for the new layout that might have been missed or need refinement */

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

.dashboard-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

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

.dashboard-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #334155;
}

.dashboard-card-icon {
    font-size: 1.3em;
    color: #64748b;
}

.dashboard-card-content .stats-value {
    font-size: 1.8em;
}

.dashboard-card-content .stats-label {
    font-size: 0.9em;
}

.dashboard-card-footer {
    margin-top: 15px;
    font-size: 0.85em;
    color: #64748b;
}

/* Refinements for tabbed interface within the new layout */
.main-tabs .tab-nav {
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.main-tabs .tab-button {
    padding: 12px 25px;
    font-size: 1.1em;
    color: #475569;
    border-bottom-width: 3px;
}

.main-tabs .tab-button:hover {
    color: #3b82f6;
}

.main-tabs .tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.main-tabs .tab-content {
    padding-top: 10px;
}

/* Sub-tabs within the new layout */
.sub-tab-nav {
    display: flex;
    margin-bottom: 20px;
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 5px;
    border: 1px solid #e2e8f0;
}

.sub-tab-button {
    flex-grow: 1;
    text-align: center;
    padding: 10px 15px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    color: #475569;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sub-tab-button:hover {
    background-color: #e0f2fe;
    color: #0284c7;
}

.sub-tab-button.active {
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
}

.sub-tab-content-panel {
    display: none;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-top: -1px; /* Overlap if needed or adjust */
}

.sub-tab-content-panel.active {
    display: block;
}

/* General utility classes */
.text-primary {
    color: #3b82f6 !important;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.bg-light-blue {
    background-color: #eff6ff !important;
}

.p-20 {
    padding: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.w-100 {
    width: 100% !important;
}

/* Ensure all previously defined styles are compatible and there are no major conflicts */

/* Final check on modal styles for consistency */
.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group:last-of-type {
    margin-bottom: 0;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.modal-actions .btn {
    padding: 10px 20px;
    font-size: 0.95em;
    border-radius: 6px;
}

.modal-actions .btn-primary {
    background-color: #3b82f6;
    color: white;
    border: none;
}

.modal-actions .btn-primary:hover {
    background-color: #2563eb;
}

.modal-actions .btn-secondary {
    background-color: #e2e8f0;
    color: #334155;
    border: none;
}

.modal-actions .btn-secondary:hover {
    background-color: #cbd5e1;
}

/* Responsive adjustments if necessary */
@media (max-width: 768px) {
    .left-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #dce1e7;
    }
    .right-content {
        margin-left: 0;
        padding: 20px;
    }
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .project-status {
        margin-top: 10px;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
    .main-tabs .tab-button {
        padding: 10px 15px;
        font-size: 1em;
    }
    .sub-tab-nav {
        flex-direction: column;
    }
    .sub-tab-button {
        margin-bottom: 5px;
    }
    .sub-tab-button:last-child {
        margin-bottom: 0;
    }
    .content-area {
        margin-left: 0;
    }
    .left-menu {
        /* Example: transform to a top bar or a collapsible menu */
        width: 100%;
        height: auto;
        position: relative;
        box-shadow: none;
    }
    .menu-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .menu-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 15px;
    }
    .menu-link:hover, .menu-link.active {
        border-left: none;
        border-bottom-color: #3498db;
    }
}

/* Notification System Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.info {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.notification.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Debug Mode Styles */
.debug-console {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 400px;
    max-height: 300px;
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 15px;
    border-radius: 8px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.debug-console.show {
    display: block;
}

.debug-console .debug-title {
    color: #fff;
    font-weight: bold;
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.debug-console .debug-entry {
    margin-bottom: 5px;
    padding: 2px 0;
}

.debug-console .debug-error {
    color: #ff6b6b;
}

.debug-console .debug-success {
    color: #51cf66;
}

.debug-console .debug-warning {
    color: #ffd43b;
}

/* Lifecycle Management Styles */
.lifecycle-timeline {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.timeline-project {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.project-header h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
}

.project-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-id {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
}

.timeline-stages {
    display: flex;
    align-items: flex-start;
    position: relative;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.timeline-stages::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    height: 3px;
    background: #e9ecef;
    z-index: 1;
}

.stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 140px;
    position: relative;
    z-index: 2;
}

.stage-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stage.completed .stage-circle {
    background: #28a745;
    color: white;
}

.stage.active .stage-circle {
    background: #667eea;
    color: white;
    animation: pulse 2s infinite;
}

.stage.pending .stage-circle {
    background: #f8f9fa;
    color: #adb5bd;
    border-color: #e9ecef;
}

.stage-content {
    text-align: center;
}

.stage-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stage-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.stage-duration {
    font-size: 0.75rem;
    color: #adb5bd;
}

.stage.active .stage-title {
    color: #667eea;
    font-weight: 700;
}

.stage.completed .stage-title {
    color: #28a745;
}

.project-progress {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

/* Milestone Styles */
.milestone-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.milestone-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #dee2e6;
    transition: all 0.3s ease;
}

.milestone-item.urgent {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.milestone-item.normal {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.milestone-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.1rem;
}

.milestone-item.urgent .milestone-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.milestone-item.normal .milestone-icon {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.milestone-content {
    flex: 1;
}

.milestone-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.milestone-project {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.milestone-deadline {
    font-size: 0.8rem;
    color: #adb5bd;
}

.milestone-action {
    margin-left: 15px;
}

/* Health Metrics */
.health-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.health-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.health-label {
    font-weight: 500;
    color: #2c3e50;
    flex: 1;
}

.health-value {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.health-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.health-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.health-fill.success {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.health-fill.warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14);
}

.health-fill.danger {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.health-value span {
    font-weight: 600;
    color: #2c3e50;
    min-width: 40px;
    text-align: right;
}

/* AI Intelligence Styles */
.prediction-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.prediction-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.prediction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.prediction-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.prediction-icon.trend-up {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.prediction-icon.trend-down {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.prediction-icon.trend-stable {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.prediction-content {
    flex: 1;
}

.prediction-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.prediction-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.trend-up .prediction-value {
    color: #28a745;
}

.trend-down .prediction-value {
    color: #dc3545;
}

.trend-stable .prediction-value {
    color: #667eea;
}

.prediction-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
    line-height: 1.4;
}

.prediction-confidence {
    font-size: 0.8rem;
    color: #adb5bd;
}

/* Automation Styles */
.automation-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.automation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.automation-item.active {
    background: rgba(40, 167, 69, 0.05);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.automation-status {
    margin-right: 15px;
}

.automation-content {
    flex: 1;
}

.automation-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.automation-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 3px;
    line-height: 1.4;
}

.automation-schedule {
    font-size: 0.8rem;
    color: #adb5bd;
}

.automation-toggle {
    margin-left: 15px;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #28a745;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* AI Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.insight-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #dee2e6;
    transition: all 0.3s ease;
}

.insight-card.priority-high {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff, rgba(220, 53, 69, 0.02));
}

.insight-card.priority-medium {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff, rgba(255, 193, 7, 0.02));
}

.insight-card.priority-low {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #fff, rgba(40, 167, 69, 0.02));
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.insight-priority {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.insight-priority i {
    font-size: 1rem;
}

.insight-priority span {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.priority-high .insight-priority i,
.priority-high .insight-priority span {
    color: #dc3545;
}

.priority-medium .insight-priority i,
.priority-medium .insight-priority span {
    color: #ffc107;
}

.priority-low .insight-priority i,
.priority-low .insight-priority span {
    color: #28a745;
}

.insight-content h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.insight-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.insight-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.metric {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

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

/* Responsive adjustments for lifecycle management */
@media (max-width: 768px) {
    .timeline-stages {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-stages::before {
        display: none;
    }
    
    .stage {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .prediction-cards {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}