/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
    min-height: 100vh;
    color: #333;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-header h1 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
}

.dashboard-header h1 i {
    margin-right: 10px;
    color: #3498db;
}

.header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.enterprise-selector {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    min-width: 200px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enterprise-selector:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.refresh-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Overview Section */
.overview-section {
    margin-bottom: 30px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.overview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.card-content h3 {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 8px;
}

.score {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
}

.score-unit {
    font-size: 16px;
    color: #7f8c8d;
}

.score-trend {
    font-size: 12px;
    font-weight: 500;
}

.score-trend.positive {
    color: #27ae60;
}

.score-trend.negative {
    color: #e74c3c;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styles */
.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e8ed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.card-header h2 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.card-header h2 i {
    margin-right: 8px;
    color: #3498db;
}

.card-content {
    padding: 25px;
}

/* Enterprise Info Styles */
.enterprise-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.enterprise-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.enterprise-details h3 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.enterprise-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.tag.high-tech {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.tag.large-scale {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.tag.listed {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item .label {
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
}

.info-item .value {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

/* Financial Performance */
.time-selector select {
    padding: 8px 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    background: white;
    font-size: 12px;
}

.chart-container {
    margin-bottom: 20px;
    height: 250px;
}

.financial-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric-label {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 5px;
}

.metric-value {
    display: block;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.metric-change {
    font-size: 12px;
    font-weight: 500;
}

.metric-change.positive {
    color: #27ae60;
}

.metric-change.negative {
    color: #e74c3c;
}

/* IP Section */
.ip-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #7f8c8d;
    font-size: 14px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

.ip-tab-content {
    display: none;
}

.ip-tab-content.active {
    display: block;
}

.ip-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.ip-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 5px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 12px;
}

.ip-list {
    max-height: 300px;
    overflow-y: auto;
}

.ip-item {
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.ip-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.ip-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.ip-details {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
}

.ip-type, .ip-version {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
}

.ip-number, .ip-date {
    color: #7f8c8d;
}

.ip-status.active {
    color: #27ae60;
    font-weight: 500;
}

.ip-status.pending {
    color: #f39c12;
    font-weight: 500;
}

/* Growth Chart */
.chart-controls {
    display: flex;
    gap: 10px;
}

.chart-btn {
    padding: 6px 12px;
    border: 1px solid #e1e8ed;
    background: white;
    color: #7f8c8d;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.growth-indicators {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.indicator {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.indicator-label {
    display: block;
    color: #7f8c8d;
    font-size: 11px;
    margin-bottom: 5px;
}

.indicator-value {
    font-size: 16px;
    font-weight: 700;
}

.indicator-value.positive {
    color: #27ae60;
}

.indicator-value.negative {
    color: #e74c3c;
}

/* Bottom Section */
.bottom-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Risk Assessment */
.risk-overview {
    display: flex;
    gap: 30px;
    align-items: center;
}

.risk-gauge {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #27ae60, #229954);
    border-radius: 50%;
    color: white;
    min-width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gauge-value {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gauge-score {
    font-size: 20px;
    font-weight: 700;
}

.risk-details {
    flex: 1;
}

.risk-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.risk-item.low {
    color: #27ae60;
}

.risk-item.medium {
    color: #f39c12;
}

.risk-item.high {
    color: #e74c3c;
}

/* News Section */
.news-list {
    max-height: 200px;
    overflow-y: auto;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #e1e8ed;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 5px;
}

.news-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.4;
}

.news-source {
    color: #3498db;
    font-size: 12px;
}

/* Financing Section */
.financing-summary {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.financing-stat {
    text-align: center;
}

.financing-stat .stat-label {
    display: block;
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 5px;
}

.financing-stat .stat-value {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
}

.financing-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e8f4f8;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 13px;
    line-height: 1.4;
}

.financing-note i {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .bottom-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .financial-metrics {
        grid-template-columns: 1fr;
    }
    
    .growth-indicators {
        grid-template-columns: 1fr;
    }
    
    .risk-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .financing-summary {
        flex-direction: column;
        gap: 15px;
    }
}

/* Government Cultivation Program */
.cultivation-program .cultivation-overview {
    margin-bottom: 25px;
}

.current-tier {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f5e8, #f0f8f0);
    border-radius: 10px;
    border-left: 4px solid #27ae60;
}

.tier-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.tier-badge.tier-1 {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.tier-badge.tier-2 {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.tier-badge.tier-3 {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.tier-badge.tier-4 {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.tier-description h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.tier-description p {
    color: #7f8c8d;
    font-size: 12px;
    margin: 0;
}

.cultivation-path {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.tier-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.tier-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    border: 3px solid #e1e8ed;
    background: white;
    color: #7f8c8d;
    transition: all 0.3s ease;
}

.tier-item.completed .tier-circle {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.tier-item.current .tier-circle {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.tier-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tier-name {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

.tier-status {
    font-size: 10px;
    color: #7f8c8d;
}

.tier-item.current .tier-status {
    color: #3498db;
    font-weight: 600;
}

.tier-item.completed .tier-status {
    color: #27ae60;
    font-weight: 600;
}

.tier-connector {
    height: 3px;
    flex: 1;
    background: #e1e8ed;
    margin: 0 10px;
    position: relative;
    top: -15px;
}

.tier-connector.completed {
    background: #27ae60;
}

.policy-support {
    margin-bottom: 25px;
}

.policy-support h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-support h4 i {
    color: #3498db;
}

.support-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.support-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.support-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.support-item i {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 14px;
}

.support-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.support-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.support-detail {
    font-size: 12px;
    color: #7f8c8d;
}

.cultivation-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-item .metric-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.metric-item .metric-value {
    font-size: 14px;
    font-weight: 700;
    color: #3498db;
    text-align: right;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
