:root {
  --bg-color: #e8eff5;
  --text-main: #2d3748;
  --text-muted: #718096;
  --shadow-light: #ffffff;
  --shadow-dark: #c8d5e0;
  --accent-dark: #1a202c;
  
  --icon-red: #ffe5e5;
  --icon-red-text: #ff4d4d;
  --icon-blue: #e5f0ff;
  --icon-blue-text: #3b82f6;
  --icon-green: #e5ffe5;
  --icon-green-text: #22c55e;
  --icon-purple: #f0e5ff;
  --icon-purple-text: #a855f7;
  --icon-orange: #ffeee5;
  --icon-orange-text: #f97316;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  padding: 20px;
  padding-bottom: 40px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-color);
  box-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-box svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.header-text h1 {
  font-size: 20px;
  font-weight: 700;
}

.header-text p {
  font-size: 12px;
  color: var(--text-muted);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--bg-color);
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

/* Alerts & Announcements */
.alerts-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.alert-box {
  padding: 16px;
  border-radius: 16px;
  font-size: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.alert-urgent {
  background: var(--bg-color);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  border-left: 4px solid var(--icon-red-text);
}

.alert-exam {
  background: var(--bg-color);
  box-shadow: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  border-left: 4px solid var(--icon-blue-text);
}

.alert-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Static Wrap Tabs */
.tabs-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 4px;
}

.tab {
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: var(--bg-color);
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.tab.active {
  background: var(--accent-dark);
  color: white;
  box-shadow: inset 4px 4px 8px rgba(0,0,0,0.2), inset -4px -4px 8px rgba(255,255,255,0.1);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.section-title p {
  font-size: 13px;
  color: var(--text-muted);
}

.item-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--bg-color);
  box-shadow: inset 2px 2px 5px var(--shadow-dark), inset -2px -2px 5px var(--shadow-light);
}

/* Resource Cards */
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--bg-color);
  box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.file-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-content {
  flex-grow: 1;
  min-width: 0;
}

.card-content h3 {
  font-size: 16px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  padding: 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.btn-view {
  background: var(--accent-dark);
  color: white;
  box-shadow: 3px 3px 6px var(--shadow-dark);
}

.btn-download {
  background: var(--bg-color);
  color: var(--text-main);
  box-shadow: 3px 3px 6px var(--shadow-dark), -3px -3px 6px var(--shadow-light);
}

/* Footer & Links */
.site-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--shadow-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-section h3 {
  font-size: 14px;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-color);
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  text-decoration: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-btn {
  background: var(--icon-green);
  color: #0f6638;
  box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

/* Icon Colors */
.color-red { background: var(--icon-red); color: var(--icon-red-text); }
.color-blue { background: var(--icon-blue); color: var(--icon-blue-text); }
.color-green { background: var(--icon-green); color: var(--icon-green-text); }
.color-purple { background: var(--icon-purple); color: var(--icon-purple-text); }
.color-orange { background: var(--icon-orange); color: var(--icon-orange-text); }
