:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --purple-color: #8b5cf6;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --sidebar-width: 260px;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    animation: slideUp 0.5s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.login-logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.login-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.login-logo h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-error {
    background: #fee;
    border-left: 4px solid var(--danger-color);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--danger-color);
    font-size: 0.9rem;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-color) 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.login-info p {
    margin: 0.25rem 0;
    color: var(--text-secondary);
}

.login-info code {
    background: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--primary-color);
}

/* Authentication Links */
.login-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.auth-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
    background: var(--bg-secondary);
}

.auth-link:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(4px);
}

.auth-link i {
    font-size: 1rem;
}

/* Success Message */
.login-success {
    background: #efe;
    border-left: 4px solid var(--success-color);
    padding: 0.875rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success-color);
    font-size: 0.9rem;
}

.login-success i {
    font-size: 1.2rem;
}

/* Form Hints */
.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.sidebar-logo:hover {
    opacity: 1;
}

.sidebar-header i {
    font-size: 2rem;
    color: #60a5fa;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 1rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background-color: rgba(37, 99, 235, 0.2);
    color: white;
    border-left: 3px solid var(--primary-color);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    width: calc(100% - var(--sidebar-width));
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: var(--bg-primary);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.header-left h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.global-period-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.global-period-selector i {
    color: white;
    font-size: 1.125rem;
}

.period-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23667eea' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    min-width: 180px;
}

.period-select:hover {
    background: white;
    border-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.period-select:focus {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: var(--bg-tertiary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.search-box i {
    color: var(--text-light);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 250px;
    color: var(--text-primary);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.user-profile i.fa-user-circle {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.user-profile #user-full-name {
    font-weight: 600;
    color: var(--text-primary);
}

.user-position {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background: var(--danger-color);
    color: white;
}

/* Section */
.section {
    display: none;
    padding: 1.5rem;
    animation: fadeIn 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
}

.section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 2rem;
}

.section-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Dashboard Section Headers */
.dashboard-section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--border-color);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-label h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

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

.stat-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.chart-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Table Card */
.table-card {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead {
    background-color: var(--bg-tertiary);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.data-table td:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.data-table td {
    vertical-align: middle;
}

/* KPIs Grid */
.kpis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.kpi-card {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.kpi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.kpi-card-title {
    flex: 1;
}

.kpi-card-title h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.kpi-card-title p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.kpi-card-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary-color);
}

.kpi-card-body {
    margin-bottom: 1rem;
}

.kpi-metrics {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.kpi-target {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar {
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, #60a5fa 100%);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.progress-fill.success {
    background: linear-gradient(90deg, var(--success-color) 0%, #34d399 100%);
}

.progress-fill.warning {
    background: linear-gradient(90deg, var(--warning-color) 0%, #fbbf24 100%);
}

.progress-fill.danger {
    background: linear-gradient(90deg, var(--danger-color) 0%, #f87171 100%);
}

.kpi-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.kpi-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-light);
}

.kpi-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Last Update Badge */
.last-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    margin-top: 0.75rem;
    font-weight: 500;
}

.last-update-badge i {
    font-size: 0.875rem;
}

.last-update-badge.recently-updated {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 3px solid #10b981;
}

.last-update-badge.updated {
    background-color: #fef3c7;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

.last-update-badge.outdated {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 3px solid #ef4444;
}

.last-update-badge.not-updated {
    background-color: #f1f5f9;
    color: #64748b;
    border-left: 3px solid #94a3b8;
}

/* Table Last Update (for KRs) */
.table-last-update {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    width: fit-content;
}

.table-last-update i {
    font-size: 0.75rem;
}

.table-last-update.recently-updated {
    background-color: #d1fae5;
    color: #065f46;
}

.table-last-update.updated {
    background-color: #fef3c7;
    color: #92400e;
}

.table-last-update.outdated {
    background-color: #fee2e2;
    color: #991b1b;
}

.table-last-update.not-updated {
    background-color: #f1f5f9;
    color: #64748b;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-badge.danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Priority Badge */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge.high {
    background-color: #fee2e2;
    color: #991b1b;
}

.priority-badge.medium {
    background-color: #fef3c7;
    color: #92400e;
}

.priority-badge.low {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-secondary);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.timeline-title {
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.timeline-content {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.timeline-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.report-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.report-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.report-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.report-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

/* Filter Select */
.filter-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 400;
}

.radio-group input[type="radio"] {
    width: auto;
    cursor: pointer;
}

/* Kanban Board */
.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.kanban-column {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1rem;
    min-height: 500px;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.kanban-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-header i {
    font-size: 0.75rem;
}

.kanban-count {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100px;
    transition: background-color 0.3s ease;
}

.kanban-cards.drag-over {
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 0.5rem;
    outline: 2px dashed var(--primary-color);
    outline-offset: 4px;
}

.task-card {
    background-color: var(--bg-primary);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    cursor: move;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.task-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.task-card:active {
    cursor: grabbing;
}

.task-card.dragging {
    opacity: 0.5;
}

.task-card.priority-high {
    border-left-color: var(--danger-color);
}

.task-card.priority-medium {
    border-left-color: var(--warning-color);
}

.task-card.priority-low {
    border-left-color: var(--primary-color);
}

.task-card-header {
    margin-bottom: 0.75rem;
}

.task-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.task-card-meta span {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-assignee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.task-assignee-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

.task-assignee-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.task-progress-bar {
    height: 6px;
    background-color: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.task-progress-fill.high-progress {
    background: linear-gradient(90deg, var(--success-color), #34d399);
}

.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.task-tag {
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

.task-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.75rem;
}

.task-due-date {
    font-size: 0.75rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.task-due-date.overdue {
    color: var(--danger-color);
    font-weight: 600;
}

.task-actions {
    display: flex;
    gap: 0.5rem;
}

.task-card:hover .task-actions {
    opacity: 1;
}

/* Danger Badge for Stats */
.stat-icon.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Ensure sidebar is visible on large screens */
@media (min-width: 1025px) {
    .sidebar {
        transform: translateX(0) !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* KR Details Panel */
.details-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 600px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1100;
    overflow-y: auto;
    animation: slideInRight 0.3s ease-out;
}

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

.details-panel-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-color) 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.details-panel-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.details-panel-body {
    padding: 2rem;
}

.kr-details-grid {
    display: grid;
    gap: 2rem;
}

.detail-section {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.detail-section h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-item label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.detail-item span,
.detail-item p {
    color: var(--text-primary);
    font-size: 1rem;
}

/* Initiatives */
.initiatives-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.initiatives-list {
    display: grid;
    gap: 1rem;
}

.initiative-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.2s;
}

.initiative-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.initiative-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.initiative-header h5 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.initiative-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.initiative-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.initiative-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.initiative-progress {
    margin-bottom: 1rem;
}

.initiative-progress label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.initiative-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-icon.danger:hover {
    background: var(--danger-color);
    border-color: var(--danger-color);
}

/* Roadmap */
.roadmap-container {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.roadmap-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    margin: 0;
}

.roadmap-timeline {
    display: grid;
    gap: 2rem;
}

.roadmap-kr-group {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.roadmap-kr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.roadmap-kr-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.kr-kpi-label {
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.roadmap-initiatives {
    display: grid;
    gap: 1rem;
}

.roadmap-initiative {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 200px 1fr 180px 120px;
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border-color);
}

.initiative-info {
    display: flex;
    flex-direction: column;
}

.initiative-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.initiative-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.initiative-timeline-bar {
    position: relative;
}

.timeline-track {
    position: relative;
    height: 32px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    overflow: visible;
}

.timeline-bar {
    position: absolute;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    transition: all 0.3s;
}

.timeline-bar.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.timeline-bar.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.timeline-bar.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.bar-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.initiative-dates {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
    color: var(--text-secondary);
    gap: 0.25rem;
}

.empty-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* KR Overall Completion Banner */
.kr-completion-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.completion-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.completion-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.completion-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.completion-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.completion-score {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.score-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Quick Progress Modal */
.modal-small {
    max-width: 500px;
}

.initiative-info-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--purple-color) 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.initiative-info-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.initiative-info-box p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

.progress-input-container {
    display: grid;
    grid-template-columns: 1fr 80px 40px;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.progress-input-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
}

.progress-input-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

.progress-input-container input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.progress-input-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.progress-input-container input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary-dark);
    transform: scale(1.2);
}

.progress-input-container input[type="number"] {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.progress-unit {
    color: var(--text-secondary);
    font-weight: 600;
}

.progress-preview {
    margin-top: 0.5rem;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Initiative Cards with Quick Update Button */
.initiative-quick-update {
    position: absolute;
    top: 1rem;
    right: 4rem;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 5;
}

.initiative-quick-update:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* KR Dependency Badge */
.kr-dependency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.kr-dependency-badge i {
    color: var(--primary-color);
}

.kr-dependency-badge strong {
    color: var(--text-primary);
}

/* Reassign KR Modal */
.reassign-info-box {
    background: linear-gradient(135deg, var(--purple-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.reassign-info-box h4 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.current-kr-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.current-kr-display label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.kr-badge-current {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid white;
    font-size: 0.95rem;
}

.kr-select-enhanced {
    font-size: 1rem;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.kr-select-enhanced:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.kr-preview {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 2px solid var(--primary-color);
    animation: fadeIn 0.3s ease;
}

.kr-preview h4 {
    margin: 0 0 1rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.kr-preview-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kr-preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kr-preview-item label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.kr-preview-item span,
.kr-preview-item p {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.kr-preview-item p {
    margin: 0;
    line-height: 1.5;
}

.kr-preview-item .progress-bar {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

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

/* Badge Styles for Decisions */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background-color: #e2e8f0;
    color: #475569;
}

.badge-cyan {
    background-color: #cffafe;
    color: #155e75;
}

.stat-icon.cyan {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

/* Decisions Filter Bar */
.decisions-filter-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    animation: slideInDown 0.5s ease;
}

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

.filter-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-bar-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
}

.filter-bar-title i {
    font-size: 1.25rem;
}

.btn-text {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.filter-bar-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

.filter-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.filter-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.filter-card-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.filter-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-card-content label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-select-modern:hover {
    border-color: var(--primary-color);
}

.filter-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Table Card Enhancements */
.table-card .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(to right, #f8fafc, #ffffff);
}

.table-card .table-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: 0;
}

.table-card .table-header i {
    color: var(--primary-color);
}

.table-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 999px;
    transition: all 0.3s ease;
}

/* Empty State Styling */
.data-table tbody tr td[colspan] {
    text-align: center !important;
    padding: 4rem 2rem !important;
}

.data-table tbody tr td[colspan] i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.3;
}

.data-table tbody tr td[colspan] {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ================================================
   STRATEGIC PLANNING SECTION
   ================================================ */

/* Planning Header */
.strategic-planning-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    color: white;
}

.planning-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.planning-title i {
    font-size: 3rem;
    opacity: 0.9;
}

.planning-title h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.planning-title p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0.5rem 0 0 0;
}

.planning-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* View Switcher */
.view-switcher {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
}

.view-btn {
    flex: 1;
    min-width: 140px;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.view-btn i {
    font-size: 1.5rem;
}

.view-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Planning Filters Bar */
.planning-filters-bar {
    background: white;
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group-inline {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 180px;
}

.filter-group-inline label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.filter-select-inline,
.filter-input-inline {
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    background: white;
    transition: all 0.3s ease;
}

.filter-select-inline:focus,
.filter-input-inline:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-filter-clear {
    padding: 0.625rem 1.25rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: end;
}

.btn-filter-clear:hover {
    background: var(--danger-color);
    color: white;
}

/* Planning Views */
.planning-view {
    display: none;
}

.planning-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* Integrated View */
.integrated-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.kr-block {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.kr-block:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.kr-block-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.kr-block-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.kr-info {
    flex: 1;
}

.kr-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kr-info .kr-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.kr-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kr-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.kr-stat {
    text-align: center;
}

.kr-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.kr-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kr-progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 1rem;
}

.kr-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    transition: width 0.6s ease;
    border-radius: 999px;
}

.kr-progress-fill.success {
    background: linear-gradient(90deg, var(--success-color), #34d399);
}

.kr-progress-fill.warning {
    background: linear-gradient(90deg, var(--warning-color), #fbbf24);
}

.kr-progress-fill.danger {
    background: linear-gradient(90deg, var(--danger-color), #f87171);
}

/* Initiatives List */
.initiatives-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.initiatives-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.initiatives-list-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.initiative-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.initiative-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.initiative-card.priority-high {
    border-left-color: var(--danger-color);
}

.initiative-card.priority-medium {
    border-left-color: var(--warning-color);
}

.initiative-card.priority-low {
    border-left-color: var(--primary-color);
}

.initiative-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.initiative-title {
    flex: 1;
}

.initiative-title h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.initiative-title p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.initiative-badges {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.initiative-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.initiative-detail-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.initiative-progress {
    margin-top: 0.75rem;
}

.initiative-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.initiative-progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.initiative-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), #34d399);
    transition: width 0.4s ease;
    border-radius: 999px;
}

.empty-initiatives {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-initiatives i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* KRs Grid View */
.krs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.kr-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.kr-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.kr-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.kr-card-title h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.kr-card-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

/* Initiatives Grid View */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Timeline View */
.timeline-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.timeline-month {
    margin-bottom: 3rem;
}

.timeline-month-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--border-color);
}

.timeline-items {
    position: relative;
    padding-left: 2rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border-color);
}

.timeline-kr-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-kr-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-kr-card {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

/* Enhanced Form Elements */
.kr-select-enhanced {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23475569' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-hint {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* ============================================ */
/* QUARTERLY TRACKING SYSTEM STYLES */
/* ============================================ */

/* Quarter Selector */
.quarter-selector-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.quarter-selector-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.quarter-selector-header i {
    font-size: 1.5rem;
}

.quarter-selector-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quarter-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quarter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quarter-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.quarter-btn i {
    font-size: 1rem;
}

/* Tabs System for Modals */
.tabs-container {
    margin-top: 1rem;
}

.tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

/* Quarter Header in Tabs */
.quarter-header {
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.quarter-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quarter-header h3 {
    color: var(--primary-color);
    margin: 0.5rem 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.quarter-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

/* Modal Large for Tabs */
.modal-large {
    max-width: 800px;
}

/* Form improvements for quarterly data */
.form-group small {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Dashboard Section Header improvements */
.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-label i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.section-label h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ============================================ */
/* OKRs SECTION STYLES */
/* ============================================ */

.okrs-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.objective-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.objective-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
    color: white;
}

.objective-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.objective-title {
    flex: 1;
}

.objective-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.objective-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.875rem;
}

.objective-actions {
    display: flex;
    gap: 0.5rem;
}

.objective-actions .icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.objective-actions .icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.objective-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.objective-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.objective-meta-item i {
    opacity: 0.9;
}

.objective-progress {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

.objective-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.objective-progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.objective-progress-fill {
    height: 100%;
    background: white;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.objective-body {
    padding: 1.5rem;
}

.key-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.key-results-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kr-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.key-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.key-result-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.key-result-item:hover {
    background: var(--hover-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kr-item-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.kr-item-title {
    flex: 1;
}

.kr-item-title h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.kr-item-title p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.kr-item-actions {
    display: flex;
    gap: 0.5rem;
}

.kr-item-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.kr-item-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.kr-item-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kr-progress-bar {
    flex: 1;
    background: var(--bg-tertiary);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

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

.kr-progress-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 50px;
    text-align: right;
}

.empty-key-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-key-results i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-key-results p {
    margin: 0.5rem 0;
}

.empty-okrs {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
}

.empty-okrs i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.empty-okrs h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.empty-okrs p {
    margin: 0 0 1.5rem 0;
    color: var(--text-secondary);
}

/* Objective Badge */
.objective-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* KR Cadence Badge */
.kr-cadence-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.kr-item-metrics {
    display: flex;
    gap: 2rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin: 0.75rem 0;
}

.kr-metric {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kr-metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.kr-metric-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Initiatives Section */
.initiatives-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--border-color);
}

.initiatives-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.initiatives-header h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.initiative-count {
    background: var(--success-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.empty-initiatives {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
}

.empty-initiatives i {
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.empty-initiatives p {
    margin: 0;
    font-size: 0.875rem;
}

.initiatives-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.initiative-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 1rem;
    border-left: 3px solid var(--success-color);
    transition: all 0.2s ease;
}

.initiative-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(2px);
}

.initiative-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.initiative-info h6 {
    margin: 0 0 0.25rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.initiative-info p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.initiative-actions {
    display: flex;
    gap: 0.375rem;
}

.icon-btn-sm {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.375rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.icon-btn-sm:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.initiative-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.initiative-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.initiative-progress {
    margin-top: 0.75rem;
}

.initiative-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.initiative-progress-bar {
    background: var(--bg-tertiary);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.initiative-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.initiative-budget {
    margin-top: 0.75rem;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.budget-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.budget-value {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.budget-percentage {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .details-panel {
        width: 100%;
    }

    .roadmap-initiative {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .initiative-timeline-bar {
        order: 3;
    }

    .initiative-dates {
        flex-direction: row;
        justify-content: space-between;
    }

    .kr-completion-banner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .completion-content {
        flex-direction: column;
    }

    .header {
        padding: 0 1rem;
    }

    .header-left h1 {
        font-size: 1.25rem;
    }

    .search-box {
        display: none;
    }

    .section {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .kpis-grid {
        grid-template-columns: 1fr;
    }

    .kanban-board {
        grid-template-columns: 1fr;
    }

    /* Quarter selector responsive */
    .quarter-selector-buttons {
        flex-direction: column;
    }

    .quarter-btn {
        min-width: 100%;
    }

    /* Tabs responsive */
    .tabs-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        font-size: 0.8125rem;
        padding: 0.625rem 1rem;
    }

    .modal-large {
        max-width: 95%;
    }

    .quarter-header h3 {
        font-size: 1.125rem;
    }

    .section-actions {
        flex-direction: column;
        width: 100%;
    }

    .section-actions .btn,
    .section-actions .filter-select {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .filter-bar-content {
        grid-template-columns: 1fr;
    }

    .filter-bar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .btn-text {
        width: 100%;
        justify-content: center;
    }

    .filter-card {
        flex-direction: column;
        text-align: center;
    }

    .filter-card-icon {
        margin: 0 auto;
    }

    .table-card .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .table-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Strategic Planning Responsive */
    .strategic-planning-header {
        padding: 1.5rem;
    }

    .planning-title {
        flex-direction: column;
        text-align: center;
    }

    .planning-title i {
        font-size: 2rem;
    }

    .planning-title h1 {
        font-size: 1.5rem;
    }

    .planning-actions {
        flex-direction: column;
        width: 100%;
    }

    .planning-actions .btn {
        width: 100%;
    }

    .view-switcher {
        flex-direction: column;
    }

    .view-btn {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }

    .planning-filters-bar {
        flex-direction: column;
    }

    .filter-group-inline {
        width: 100%;
    }

    .btn-filter-clear {
        width: 100%;
        justify-content: center;
    }

    .kr-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .krs-grid,
    .initiatives-grid {
        grid-template-columns: 1fr;
    }

    .timeline-items {
        padding-left: 1rem;
    }
}

/* Balanced Scorecard */
.scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.scorecard-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scorecard-title i {
    font-size: 2rem;
    color: var(--primary-color);
}

.scorecard-title h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.scorecard-actions {
    display: flex;
    gap: 1rem;
}

/* Ranking Card */
.ranking-card {
    margin-bottom: 2rem;
}

.ranking-period {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-table {
    width: 100%;
}

.ranking-table tbody tr {
    transition: all 0.3s ease;
}

.ranking-table tbody tr:hover {
    background-color: var(--bg-secondary);
    transform: scale(1.01);
}

.ranking-table .rank-medal {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ranking-table .rank-1 {
    color: #FFD700;
}

.ranking-table .rank-2 {
    color: #C0C0C0;
}

.ranking-table .rank-3 {
    color: #CD7F32;
}

.manager-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.manager-name-cell {
    display: flex;
    align-items: center;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.level-badge.legendary {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.level-badge.master {
    background: linear-gradient(135deg, #9333ea, #c026d3);
    color: white;
}

.level-badge.expert {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

.level-badge.advanced {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
}

.level-badge.intermediate {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #000;
}

.level-badge.beginner {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
}

.points-display {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.points-display i {
    color: var(--warning-color);
}

/* Scorecards Grid */
.scorecards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.manager-scorecard {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.manager-scorecard:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.scorecard-header-section {
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: white;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.manager-avatar-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.manager-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.manager-role {
    font-size: 0.875rem;
    opacity: 0.9;
}

.scorecard-score {
    text-align: right;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
}

.scorecard-body {
    padding: 1.5rem;
}

.metrics-section {
    margin-bottom: 1.5rem;
}

.metrics-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.metric-name {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-weight {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-right: 1rem;
}

.metric-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.metric-progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.metric-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #60a5fa);
    border-radius: 999px;
    transition: width 0.3s ease;
}

.metric-progress-fill.complete {
    background: linear-gradient(90deg, var(--success-color), #34d399);
}

.metric-progress-fill.high {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.metric-progress-fill.medium {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.metric-progress-fill.low {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.metric-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

.weight-edit-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.weight-edit-btn:hover {
    color: var(--primary-color);
}

.scorecard-summary {
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.summary-item {
    flex: 1;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Weight Edit Modal */
.weight-input {
    width: 80px;
    padding: 0.375rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    text-align: center;
}

/* KR Completion Banner */
.kr-completion-banner {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.completion-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.completion-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.completion-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.completion-info p {
    font-size: 0.875rem;
    opacity: 0.9;
}

.completion-score {
    min-width: 150px;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.score-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.score-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Details Panel */
.details-panel {
    position: fixed;
    right: 0;
    top: var(--header-height);
    width: 500px;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    z-index: 999;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

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

.details-panel-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--purple-color));
    color: white;
}

.details-panel-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.details-panel-body {
    padding: 1.5rem;
}

.initiative-item {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.initiative-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.initiative-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.initiative-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.initiative-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.initiative-progress {
    margin-top: 0.75rem;
}

.initiative-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
    color: var(--text-secondary);
}

.initiative-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

/* Roadmap */
.roadmap-container {
    background-color: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
}

.roadmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.roadmap-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.roadmap-timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline-month {
    margin-bottom: 3rem;
}

.timeline-month-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-month-header::before {
    content: '';
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.timeline-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-left: 2rem;
}

.timeline-item {
    background-color: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-primary);
}

.timeline-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.timeline-item.completed {
    border-left-color: var(--success-color);
}

.timeline-item.completed::before {
    background-color: var(--success-color);
}

.timeline-item.paused {
    border-left-color: var(--warning-color);
    opacity: 0.7;
}

.timeline-item.paused::before {
    background-color: var(--warning-color);
}

.timeline-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.timeline-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.timeline-item-kr {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

.timeline-item-dates {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-item-progress {
    margin-top: 0.75rem;
}

.timeline-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-light);
}

.budget-info {
    display: flex;
    gap: 0.5rem;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 1.5rem;
}
