@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700&display=swap');

:root{
  /* Colors (tokens inferred from design) */
  --white: #FFFFFF;
  --white-athens: #FCFBF8;
  --azure-15: #1D2530;
  --azure-45: #627084;
  --azure-88: #DCE0E5;
  --green: #0A5A44; /* Faculty Rep */
  --purple: #923CBC; /* Staff Rep */
  --blue: #3758B3; /* Admin Rep */
  --yellow: #FFB600; /* Student Rep */

  /* Radii */
  --r-12: 12px;
  --r-pill: 9999px;

  /* Spacing */
  --xs: 8px;
  --s: 16px;

  /* Stroke */
  --stroke-1: 1px;
  --stroke-2: 2px;

  /* Typography */
  --font-family-1: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --h3-size: 17.3px;
  --h3-lh: 22.5px;
  --h3-track: -0.45px;
  --upper-4-size: 12px;
  --upper-4-lh: 16px;
  --upper-4-track: 0.3px;
  --chip-size: 13.8px;
  --chip-lh: 20px;
}

*{box-sizing:border-box}
html,body{height:100%;}
body{
  margin:0;
  background: #ffffff;
  color: var(--azure-15);
  font-family: var(--font-family-1);
  overflow-x: hidden;
}

/* Fixed canvas to match exact Figma coordinates */
#app{
  position:relative;
  width: 1920px; /* exact Figma frame width */
  height: 1120px; /* viewport height adjusted for logo */
  margin: 0 auto;
  padding-top: 20px;
  transform: scale(0.85);
  transform-origin: top center;
}

/* Logo styling */
#logo-container{
  position: absolute;
  top: 10px;
  left: 35px;
  z-index: 100;
}

#depaul-logo{
  width: 60px;
  height: auto;
}

/* Navigation Menu */
#main-nav{
  position: absolute;
  top: 20px;
  left: 120px;
  z-index: 100;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link{
  color: var(--azure-15);
  text-decoration: none;
  font-family: var(--font-family-1);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: white;
  border: 2px solid var(--azure-88);
}

.nav-link:hover{
  background: var(--azure-15);
  color: white;
  border-color: var(--azure-15);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 61, 165, 0.2);
}

.card{
  position:absolute;
  background: var(--white);
  border: var(--stroke-2) solid var(--azure-88);
  border-radius: var(--r-12);
}
.card-header{
  height:54px;
  display:flex;
  align-items:center;
  border-bottom: var(--stroke-1) solid var(--azure-88);
  padding: 0 var(--s);
  background-color: #F4F8FC;
}
.card-header h3{
  font-family: var(--font-family-1);
  font-weight: 700;
  font-size: var(--h3-size);
  line-height: var(--h3-lh);
  letter-spacing: var(--h3-track);
  margin:0;
  width:100%;
  text-align:center;
}

/* Subcard titles */
.card-sub .card-header h3,
#card-pmo .card-header h3{
  font-size: 14px;
  line-height: normal;
}

.section-label{
  position:absolute;
  left:50%;
  transform: translate(-50%, -50%);
  top: 247px; /* used in subcommittee cards; overridden when needed */
  width:100%;
  text-align:center;
  color: var(--azure-45);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--upper-4-size);
  letter-spacing: var(--upper-4-track);
  line-height: var(--upper-4-lh);
}

/* Global label style (for convenience in HTML) */
.label{
  position:absolute;
  left:50%;
  transform: translate(-50%, -50%);
  width:100%;
  text-align:center;
  color: var(--azure-45);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--upper-4-size);
  letter-spacing: var(--upper-4-track);
  line-height: var(--upper-4-lh);
}

/* Pills */
.chips-row{ display:flex; gap:15px; align-items:center; justify-content:center; }
.chip{
  width:200px;
  padding:13px;
  border-radius: var(--r-12);
  border: var(--stroke-1) solid var(--azure-88);
  color: var(--white-athens);
  font-weight: 700;
  font-size: var(--chip-size);
  line-height: var(--chip-lh);
  text-align:center;
}
.chip.green{ background: var(--green); }
.chip.purple{ background: var(--purple); }
.chip.blue{ background: var(--blue); }
.chip.yellow{ background: var(--yellow); }

/* Main top card */
#card-top{ position:absolute; left:35px; top:85px; width:1647px; height:290px; }

/* Right rail cards */
#card-pmo{ position:absolute; left:1698px; top:85px; width:187px; height:290px; overflow:hidden; }

#card-pmo .list{
  position:absolute; left:8px; right:8px; top:62px; padding:0 var(--s); font-weight:700; font-size:11px;
}
#card-pmo .list ul{ padding-left:18px; margin:0; line-height:1.7; }
#card-pmo .list li{ margin-bottom:0.5em; }

/* Subcommittee columns */
.card-sub{ width:316px; height:703px; }
#col-1{ left:37px; top:400px; }
#col-2{ left:368px; top:400px; }
#col-3{ left:701px; top:400px; }
#col-4{ left:1030px; top:400px; }
#col-5{ left:1361px; top:400px; }

.card-body{ position:relative; width:100%; height:calc(100% - 54px); }
.card-body .group{ position:absolute; left:0; right:0; }
.card-body .group .chips-stack{ display:flex; flex-direction:column; gap:var(--xs); align-items:center; padding-top:var(--s); }

/* Labels inside subcommittee cards */
.group .label{ position:absolute; left:50%; transform:translateX(-50%); color:var(--azure-45); font-size:var(--upper-4-size); font-weight:700; letter-spacing:var(--upper-4-track); text-transform:uppercase; }

/* Make labels center via width for predictability */
.card-sub .label{
  left: 0;
  transform: none;
  width: 100%;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* Legend */
#legend{ position:absolute; left:1735px; top:1020px; width:106px; display:flex; flex-direction:column; gap:4px; align-items:flex-end; }
#legend .chip{ 
  width:106px; 
  padding:3px 11px; 
  height:auto;
  min-height:19px;
  display:flex; 
  align-items:center;
  justify-content:center;
  font-size:11.8px;
  line-height:16px;
  white-space:nowrap;
}
#legend .chip:nth-child(1){ height:22px; }
#legend .chip:nth-child(2){ height:20px; }
#legend .chip:nth-child(3){ height:19px; }
#legend .chip:nth-child(4){ height:19px; }

/* Utility */
.center{ text-align:center; }
.small{ font-size:10px; line-height:15px; }

/* Clickable headers */
.clickable{
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.clickable:hover{
  background-color: #f5f5f5;
}

/* Hover effect for entire card with clickable header */
.card:has(.clickable):hover{
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}
.card:has(.clickable){
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Modal styles */
.modal{
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  transform: none;
}

.modal-content{
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border: 2px solid var(--azure-88);
  border-radius: 12px;
  width: 90%;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: modalFadeIn 0.3s ease;
}

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

.modal-content h2{
  margin: 0;
  padding: 24px 32px;
  background-color: #22314F;
  color: white;
  border-radius: 10px 10px 0 0;
  font-family: var(--font-family-1);
  font-size: 24px;
  font-weight: 700;
}

.modal-content h3{
  margin: 32px 0 16px 0;
  font-family: var(--font-family-1);
  font-size: 16px;
  font-weight: 700;
  color: #22314F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-body{
  padding: 32px 40px;
}

/* Modal Section */
.modal-section{
  margin-bottom: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.modal-section:last-child{
  margin-bottom: 0;
}

/* Section Icon Badge */
.section-icon{
  width: 53px;
  height: 53px;
  flex-shrink: 0;
  margin-top: 0;
}

.section-icon svg{
  width: 53px;
  height: 53px;
  display: block;
}

/* Section Content */
.section-content{
  flex: 1;
}

.section-title{
  font-family: var(--font-family-1);
  font-size: 14px;
  font-weight: 700;
  color: #22314F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-text{
  line-height: 1.8;
  color: #444;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

.section-list{
  margin: 8px 0 0 0;
  padding-left: 0;
  list-style: none;
}

.section-list li{
  margin-bottom: 10px;
  line-height: 1.7;
  color: #555;
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.section-list li:before{
  content: "•";
  position: absolute;
  left: 8px;
  color: #0072CE;
  font-weight: 700;
  font-size: 16px;
}

/* Dashboard Link */
.dashboard-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0072CE;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.dashboard-link:hover{
  background: #005BA8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 114, 206, 0.3);
}

/* Calendar */
.calendar-dates{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.calendar-date{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F4F8FC;
  border-radius: 8px;
  border-left: 4px solid #0072CE;
}

.calendar-icon{
  font-size: 20px;
}

.calendar-date-text{
  font-size: 15px;
  font-weight: 600;
  color: #22314F;
}

/* Empty State */
.empty-state{
  color: #999;
  font-size: 14px;
  font-style: italic;
}

.modal-close{
  color: white;
  float: right;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  padding: 24px 24px 0 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.modal-close:hover,
.modal-close:focus{
  opacity: 0.7;
}

/* Mobile Responsive Styles */
@media only screen and (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  #app {
    width: 100%;
    height: auto;
    transform: none;
    padding: 10px;
    position: relative;
  }

  /* Logo and Navigation */
  #logo-container {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 15px;
    text-align: center;
  }

  #depaul-logo {
    width: 50px;
  }

  #main-nav {
    position: relative;
    top: 0;
    left: 0;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
  }

  /* Cards - Stack Vertically */
  .card {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  #card-top {
    order: 1;
  }

  #card-pmo {
    order: 2;
  }


  .card-sub {
    min-height: 400px;
  }

  /* Card Body Adjustments */
  .card-body {
    height: auto !important;
    padding: 20px 16px !important;
  }

  .card-body .group {
    position: relative !important;
    top: 0 !important;
    margin-top: 10px;
  }

  .card-body .label {
    position: relative !important;
    top: 0 !important;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Chips */
  .chips-stack {
    gap: 10px;
  }

  .chip {
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px 12px !important;
    text-align: center;
  }

  .chips-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px !important;
  }

  /* Legend */
  #legend {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 30px;
  }

  #legend .chip {
    width: auto !important;
    min-width: 120px;
  }

  /* Modal - Full Screen on Mobile */
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    overflow-y: auto;
  }

  .modal-content h2 {
    font-size: 20px;
    padding: 20px 16px 16px;
  }

  .modal-close {
    font-size: 36px;
    padding: 16px 16px 0 0;
  }

  .modal-body {
    padding: 20px 16px;
  }

  /* Modal Sections */
  .modal-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 20px 0;
  }

  .section-icon {
    margin: 0 auto;
  }

  .section-content {
    padding-left: 0;
    width: 100%;
  }

  .section-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 10px;
  }

  .section-text {
    font-size: 14px;
    line-height: 1.6;
  }

  .section-list {
    padding-left: 20px;
  }

  .section-list li {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .dashboard-link {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 16px;
  }

  .calendar-dates {
    gap: 12px;
  }

  .calendar-date {
    padding: 12px;
    font-size: 14px;
  }

  .empty-state {
    font-size: 14px;
    text-align: center;
  }
}
