/* Dashboard Styles */

.timetable-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.day-view-content {
  display: flex;
  width: 100%;
  gap: 20px;
}

.timetable-grid {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 30%;
  flex-shrink: 0;
}

.lesson-pane {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 70%;
  padding: 20px;
  display: none;
  flex-direction: column;
  height: 100%;
}

.lesson-pane.active {
  display: flex;
}

.period-cells {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
}

.period-cell {
  display: flex;
  padding: 4px 10px;
  background: white;
  min-height: 70px;
  align-items: flex-start;
}

.period-info {
  width: 120px;
  padding-right: 15px;
  border-right: 1px solid #eee;
  flex-shrink: 0;
}

.lesson-container {
  display: flex;
  padding-left: 5px;
}

.lesson-info {
  width: auto;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: background-color 0.2s;
  border-radius: 4px;
  text-align: left;
}

.period-cell::after {
  content: '';
  flex-grow: 1;
}

.lesson-info:hover {
  background-color: #f5f5f5;
}

.lesson-info.selected {
  background-color: var(--primary-light, #e6e6fa);
}

.class-name {
  font-weight: 600;
  font-size: 1.1em;
  color: #2563eb;
  margin-bottom: 5px;
}

.room {
  font-size: 0.85em;
  color: #666;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-info.empty {
  display: flex;
  align-items: center;
}

.no-lesson {
  color: #999;
  font-style: italic;
}

.quick-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  background: white;
  border-radius: 8px 8px 0 0;
  margin-bottom: 1px;
  overflow-x: auto;
  justify-content: center;
}

.quick-link-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--primary-color, #6200ee);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  text-align: center;
  min-width: 80px;
}

.quick-link-btn:hover {
  background: #3700b3;
}

.launch-all-btn {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 8px;
  margin: 4px 0;
  border: none;
  width: 100%;
  font-size: inherit;
  background-color: #6200ee;
  color: white;
}

.launch-all-btn:hover {
  background-color: #5000d1;
}

.launch-all-btn i {
  font-size: 18px;
  width: 24px;
  text-align: center;
  margin-right: 12px;
  color: white;
}

.launch-all-btn .item-details h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: white;
}

/* Tool buttons styling */
.tools-container {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tool-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #6200ee;
    color: white;
}

.tool-button.external {
    background-color: #6200ee;
}

.tool-button.built-in {
    background-color: #00b4d8;
}

.tool-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Weekend styles */
.weekend-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.weekend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.weekend-header h2 {
  margin: 0;
  color: #333;
}

.edit-notes-btn {
  padding: 8px 16px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit-notes-btn:hover {
  background: #1d4ed8;
}

.weekend-notes {
  color: #666;
  line-height: 1.5;
  min-height: 100px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 4px;
}

/* Lesson Pane Styles */
.lesson-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color, #6200ee);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.lesson-title[data-year="7"] {
  color: #4CAF50; /* Green for Year 7 */
}

.lesson-title[data-year="8"] {
  color: #2196F3; /* Blue for Year 8 */
}

.lesson-title[data-year="9"] {
  color: #673AB7; /* Purple for Year 9 */
}

.lesson-title[data-year="10"] {
  color: #E91E63; /* Pink for Year 10 */
}

.lesson-title[data-year="11"] {
  color: #FF5722; /* Orange for Year 11 */
}

.lesson-detail {
  margin-bottom: 12px;
  font-size: 1rem;
}

.lesson-section {
  margin-top: 24px;
}

.lesson-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.lesson-section p {
  margin-bottom: 15px;
  line-height: 1.5;
}

.lesson-section ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.lesson-section li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Class codes with colors based on subject/year */
.class-code {
  font-weight: 600;
  font-size: 1em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.class-code[data-year="7"] {
  color: #4CAF50; /* Green for Year 7 */
}

.class-code[data-year="8"] {
  color: #2196F3; /* Blue for Year 8 */
}

.class-code[data-year="9"] {
  color: #673AB7; /* Purple for Year 9 */
}

.class-code[data-year="10"] {
  color: #E91E63; /* Pink for Year 10 */
}

.class-code[data-year="11"] {
  color: #FF5722; /* Orange for Year 11 */
}

.duty-name {
  font-weight: 600;
  color: #F44336; /* Red for duties */
  margin-bottom: 5px;
}

.free-period {
  font-weight: 600;
  color: #009688; /* Teal for free periods */
}

.no-lesson {
  color: #9e9e9e;
  font-style: italic;
}

.empty-period {
  color: #9e9e9e;
  font-style: italic;
}

.modern-period-card {
  width: 100%;
}

.period-divider {
  height: 2px;
  background-color: #2563eb;
  margin: 0;
  width: 100%;
}

.period-cells {
  display: flex;
  flex-direction: column;
  background: white;
}

.period-cell {
  display: flex;
  padding: 4px 10px;
  background: white;
  min-height: 70px;
  align-items: flex-start;
}

.period-cell + .period-divider {
  margin-top: 4px;
}

.period-divider + .period-cell {
  margin-top: 4px;
}

/* News Feed Styles */
.news-feed {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.feed-title {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
}

.feed-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feed-item {
  padding: 15px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.feed-item h4 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
}

.feed-item h4 a {
  color: #2563eb;
  text-decoration: none;
}

.feed-item h4 a:hover {
  text-decoration: underline;
}

.feed-meta {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 10px;
}

.feed-author {
  font-weight: 500;
}

.feed-date {
  margin-left: 10px;
}

.feed-description {
  font-size: 0.95em;
  color: #444;
  margin: 0;
  line-height: 1.5;
}

.feed-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6200ee;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state {
  flex-direction: column;
  text-align: center;
}

.empty-state-message {
  margin-bottom: 20px;
  color: #666;
  font-style: italic;
}

/* Side Panels */
.side-panel {
    position: fixed;
    top: 60px;
    height: calc(100vh - 60px);
    width: 250px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    z-index: 1000;
}

.side-panel.right {
    right: 0;
    transform: translateX(100%);
}

.side-panel.left {
    left: 0;
    transform: translateX(-100%);
}

.side-panel.active {
    transform: translateX(0);
}

.quick-access-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-radius: 8px;
    margin: 4px 0;
}

.quick-access-item:hover {
    background-color: #f5f5f5;
}

.quick-access-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    margin-right: 12px;
    transition: margin 0.3s ease-in-out;
}

.item-details {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
}

.item-details h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Collapsed state */
.side-panel.collapsed {
    width: 60px;
}

.side-panel.collapsed .quick-access-item {
    padding: 12px 0;
    justify-content: center;
}

.side-panel.collapsed .item-details {
    opacity: 0;
    width: 0;
}

.side-panel.collapsed .quick-access-item i {
    margin-right: 0;
    font-size: 20px;
}

.feature-group.security {
    background-color: rgba(255, 235, 235, 0.3);
}
