/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* SIDEBAR STYLES */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 60px;
    background-color: #2c3e50;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar:hover {
    width: 250px;
}

.sidebar a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #34495e;
}

.sidebar a:hover {
    background-color: #34495e;
}

.nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.nav-text {
    white-space: nowrap;
    font-size: 16px;
}

/* MAIN CONTENT */
.main-content {
    margin-left: 60px;
    padding: 20px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* LOGO */
.logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

/* TYPOGRAPHY */
h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 15px;
}

h2 {
    color: #6b72b6;
    font-size: 1.5em;
    margin: 20px 0 10px 0;
}
h3 {
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 10px;
}

p {
    color: #272525;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* CONTENT CARD */
.content-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* ERROR STYLES */
.error {
    background: #e74c3c;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

/* SLIDESHOW STYLES */
* {box-sizing: border-box;}
body {font-family: Verdana, sans-serif;}
.mySlides {display: none;}
img {vertical-align: middle;}

.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* COURSE CARDS STYLES */
.course-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(600px, 1fr));
    gap: 30px;
    padding: 20px;
}

.course-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.course-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.course-code {
    font-size: 2.5em;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

.course-title {
    font-size: 1.1em;
    margin: 5px 0 0 0;
    text-align: center;
    opacity: 0.9;
}

.ue-indicators {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
}

.ue-badge {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ue-badge.active {
    background: #2ecc71;
    border-color: #27ae60;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.course-description {
    padding: 20px;
    font-size: 0.9em;
    line-height: 1.5;
    color: #444;
    border-bottom: 1px solid #eee;
}

.pathways-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.pathways-title {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 15px;
    text-align: right;
    font-weight: bold;
}

.pathway-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pathway-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
    transition: all 0.3s ease;
}

.pathway-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    margin-bottom: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.pathway-circle.inactive {
    background-color: #bdc3c7 !important;
    opacity: 0.5;
    filter: grayscale(100%);
}

.pathway-circle.active {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.pathway-label {
    font-size: 0.65em;
    color: #555;
    font-weight: bold;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.pathway-icon.inactive .pathway-label {
    color: #999;
}

.learning-area {
    background: #2ecc71;
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9em;
}

.standards-section {
    padding: 20px;
}

.standards-title {
    font-size: 1em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.standards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.standard-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.standard-item:hover {
    background: #e9ecef;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.standard-id {
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9em;
}

.standard-credits {
    background: #e67e22;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
    float: right;
}

.standard-title-preview {
    color: #666;
    font-size: 0.8em;
    margin-top: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* POPUP STYLES */
.standard-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 25px;
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.standard-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.popup-standard-id {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
}

.popup-credits {
    background: #e67e22;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

.popup-title {
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.popup-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.popup-detail {
    display: flex;
    flex-direction: column;
}

.popup-detail-label {
    font-size: 0.8em;
    color: #666;
    font-weight: bold;
    margin-bottom: 3px;
}

.popup-detail-value {
    font-size: 0.9em;
    color: #2c3e50;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 4px;
}

.close-popup {
    position: absolute;
    top: 1px;
    right: 6px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: #e74c3c;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .sidebar {
        width: 0;
    }
    
    .sidebar:hover {
        width: 200px;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    
    .course-cards-container {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .standard-popup {
        width: 95%;
        padding: 20px;
    }
    
    .popup-details {
        grid-template-columns: 1fr;
    }
    
    .ue-indicators {
        top: 10px;
        right: 10px;
        gap: 5px;
    }
    
    .ue-badge {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
}

@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

.pathway-circle.inactive img {
    filter: grayscale(100%) opacity(0.5);
}