:root {
  /* --accent-color: #0f0f0f; */
  --accent-color: #3498db;
  --text-color: #2c3e50;
  --background-color: #ecf0f1;
  --card-background: #ffffff;
  --hover-color: #3498db;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --secondary-color: #A8A8A8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
}

body, select {
    color: var(--text-color);
}

header {
    z-index: 1000;
    padding: 1rem 0;
    background-color: var(--background-color);
  }

.dashboard-grid > section,
.profile-card,
.m-stat-card {
    background-color: var(--card-background);
    transition: .3s;
}

.m-stat-card:hover,
.profile-card:hover,
.dashboard-grid > section:hover {
    box-shadow: 0 6px 12px var(--shadow-color);
    transform: translateY(-5px);
}

.m-stat-card,
.m-stats-heading,
.profile-card,
.stat-card,
.vertical-text-2,
header {
    text-align: center;
}



.profile-card h3,
h1,
h2 {
    color: var(--accent-color);
}

canvas {
    font-family: Roboto, Arial, sans-serif;
}

header {
    margin-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Raleway, sans-serif;
}

h1, h2 {
    margin-bottom: .75rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

h2 {
    font-size: 1.25rem;
    font-weight: 350;
}

.dashboard {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 6rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dashboard-grid > section {
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.filters {
    max-width: 90%;
    margin-bottom: 1.5rem;
    grid-row: span 4;
    justify-content: center;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

select {
    border: 1px solid var(--accent-color);
    background-color: #fff;
    width: 100%;
    padding: .5rem 1rem;
    border-radius: 8px;
    font-size: .9rem;
    transition: .3s;
}

select:focus,
select:hover {
    outline: 0;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.employee-statistics,
.profile-cards,
.tech-stack {
    grid-column: span 2;
}

#profile-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding: .5rem;
}

#profile-container::-webkit-scrollbar {
    width: 8px;
}

#profile-container::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

#profile-container::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 4px;
}

.profile-card {
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.profile-card:hover {
    transform: translateY(-3px);
}

.profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: .75rem;
    border: 3px solid var(--accent-color);
}

.profile-card h3 {
    font-size: 1rem;
    margin-bottom: .5rem;
}

.close,
.profile-card p {
    color: var(--text-color);
}

.profile-card p {
    font-size: .9rem;
    margin: 0;
}

.chart-container {
    height: 250px;
}

.department-scores {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

#department-score-container {
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
}

.department-scores,
.employee-statistics,
.performance-summary {
    font-size: .95rem;
}

.department-scores ul,
.employee-statistics ul {
    list-style-type: none;
    padding: 0;
}

.department-scores li,
.employee-statistics li {
    margin-bottom: .75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal {
    display: none;
    position: fixed;
    z-index: 11000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, .5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    box-shadow: 0 4px 20px var(--shadow-color);
}

.employee-statistics,
.stat-card {
    padding: 20px;
}

.filter-controls,
.m-stats {
    width: 100%;
    gap: 1rem;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: color .3s;
}

.close:focus,
.close:hover,
.filter-group h3,
.m-stat-value,
h2::before {
    color: var(--accent-color);
}

.modal-charts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.modal-charts .chart-container {
    width: 48%;
}

.tech-stack .chart-container {
    width: 600px;
}

@media (max-width: 1200px) {
    .dashboard-grid,
    .m-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .employee-statistics,
    .profile-cards {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .filter-controls,
    .modal-charts {
        flex-direction: column;
    }

    .modal-charts .chart-container {
        width: 100%;
        margin-bottom: 1rem;
    }
}

h2::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: .5rem;
}

.statistics-container {
    display: flex;
    justify-content: space-between;
}

.stat-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    flex: 1;
    margin: 40px 10px 10px 5px;
    min-width: 150px;
}

.stat-icon {
    font-size: 2em;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
}

.stat-metric {
    font-size: 1em;
    color: #555;
}

.profile-cards h2::before {
    content: '\f500';
}

.performance-summary h2::before {
    content: '\f201';
}

.performance-charts h2::before {
    content: '\f0c2';
}

.tech-stack h2::before {
    content: '\f5fc';
}

.department-scores h2::before {
    content: '\f091';
}

.employee-statistics h2::before {
    content: '\f080';
}

.vertical-text-2 {
    z-index: -1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    position: fixed;
    left: 100px;
    top: 20%;
    transform: rotate(-180deg);
    font-size: 2rem;
    color: var(--secondary-color);
    opacity: .7;
}

.filter-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.filter-group h3 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

.m-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
}

.m-stat-card {
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform .3s, box-shadow .3s;
}

.m-stat-metric {
  color: var(--text-color);
  opacity: .8;
  font-size: .9em;
  font-weight: 500;
}

.m-stat-value {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: .25rem;
}

.stars {
  color: #f1c40f;
  font-size: 1em;
  margin-bottom: .25rem;
}

@media (max-width: 768px) {
  .m-stats {
      grid-template-columns: 1fr;
  }
}

.m-stats-heading {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-top: 4rem;
  margin-bottom: -.5rem;
}
