:root {
    --idm-primary: #148957;
    --idm-primary-light: #30c27c;
    --idm-primary-dark: #0a5a39;
    --idm-bg: #f4f7f1;
    --text-dark: #0f1c2d;
    --text-muted: #5a6475;
    --border-light: rgba(15, 28, 45, 0.08);
    --shadow-card: 0 30px 70px rgba(10, 90, 57, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--idm-bg);
    color: var(--text-dark);
    padding-top: 0;
}

/* Hero Section */
.idm-hero {
    background: linear-gradient(135deg, var(--idm-primary-dark) 0%, var(--idm-primary) 50%, var(--idm-primary-light) 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.idm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.idm-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(48, 194, 124, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.idm-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

.idm-hero__icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.idm-hero__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.idm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.idm-hero h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.idm-hero p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.idm-hero__features {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    font-size: 1.1rem;
}

/* Hero Summary */
.idm-hero__summary {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.summary-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.summary-card__content {
    flex: 1;
}

.summary-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    word-break: break-word;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.idm-meta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.idm-meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.idm-meta-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.idm-meta-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: white;
    border-radius: 50px;
    transition: width 0.5s ease;
}

.idm-year-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.idm-year-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.idm-year-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.idm-year-select option {
    background: var(--idm-primary-dark);
    color: white;
}

/* Main Content */
.idm-main {
    padding: 40px 0 60px;
    position: relative;
    z-index: 1;
}

.idm-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Content Section */
.idm-content-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.content-block {
    background: white;
    border-radius: 0;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--idm-bg);
}

.section-header__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--idm-primary), var(--idm-primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 24px rgba(20, 137, 87, 0.3);
}

.section-header__text h2 {
    margin: 0 0 8px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-header__text p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* IDM Tabs */
.idm-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.idm-tab {
    background: var(--idm-bg);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.idm-tab:hover {
    border-color: var(--idm-primary);
    background: rgba(20, 137, 87, 0.05);
    transform: translateY(-2px);
}

.idm-tab.active {
    background: linear-gradient(135deg, var(--idm-primary), var(--idm-primary-light));
    border-color: var(--idm-primary);
    color: white;
}

.idm-tab i {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.idm-tab span {
    font-size: 0.9rem;
    font-weight: 600;
}

.idm-tab small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.idm-loading,
.idm-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.idm-error {
    background: #fee2e2;
    border: 1px solid rgba(185, 28, 28, 0.3);
    color: #b91c1c;
    border-radius: 12px;
}

/* Table Wrapper */
.table-wrapper {
    overflow-x: auto;
    margin-top: 24px;
}

.indicator-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.indicator-table thead {
    background: var(--idm-bg);
}

.indicator-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.indicator-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    vertical-align: top;
}

.indicator-table tbody tr:hover {
    background: rgba(20, 137, 87, 0.05);
}

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

/* Sidebar */
.idm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: white;
    border-radius: 0;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--idm-bg);
}

.sidebar-card__header i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--idm-primary), var(--idm-primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.sidebar-card__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--idm-bg);
}

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

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(20, 137, 87, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--idm-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-item div {
    flex: 1;
}

.info-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.info-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.info-text p {
    margin: 0 0 16px;
}

.info-text p:last-child {
    margin-bottom: 0;
}

.info-text ul {
    margin: 16px 0;
    padding-left: 20px;
}

.info-text li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.info-text strong {
    color: var(--idm-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .idm-wrapper {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .idm-hero {
        padding: 40px 0;
    }
    
    .idm-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .idm-hero__icon {
        margin: 0 auto;
    }
    
    .idm-hero__features {
        justify-content: center;
    }
    
    .summary-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .idm-tabs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .idm-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .content-block {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .idm-hero {
        padding: 32px 0;
    }
    
    .idm-hero__icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .idm-hero h1 {
        font-size: 1.5rem;
    }
    
    .idm-hero p {
        font-size: 0.9rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .idm-tabs {
        grid-template-columns: 1fr;
    }
    
    .idm-main {
        padding: 24px 0 40px;
    }
    
    .content-block {
        padding: 24px 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .section-header__icon {
        margin: 0 auto;
    }
    
    .table-wrapper {
        overflow-x: scroll;
    }
    
    .indicator-table {
        min-width: 800px;
    }
}

