/* Material Angular inspired styles */
:root {
  --primary: #3f51b5;
  --primary-light: #757de8;
  --primary-dark: #002984;
  --accent: #ff4081;
  --accent-light: #ff79b0;
  --accent-dark: #c60055;
  --warn: #f44336;
  --warn-light: #ff7961;
  --warn-dark: #ba000d;
  --text-on-primary: #ffffff;
  --text-on-accent: #000000;
  --text-primary: rgba(0, 0, 0, 0.87);
  --text-secondary: rgba(0, 0, 0, 0.54);
  --text-disabled: rgba(0, 0, 0, 0.38);
  --background: #fafafa;
  --surface: #ffffff;
  --divider: rgba(0, 0, 0, 0.12);
  --elevation-z1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
  --elevation-z2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
  --elevation-z4: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
}

/* Base styles */
body {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  margin: 0;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Typography */
.mat-h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.0083em;
  margin: 0 0 16px;
}

.mat-h2 {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.0083em;
  margin: 0 0 16px;
}

.mat-body {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.0179em;
}

.mat-caption {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.0333em;
  color: var(--text-secondary);
}

/* Components */
.mat-toolbar {
  background-color: var(--primary);
  color: var(--text-on-primary);
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  box-shadow: var(--elevation-z4);
  position: relative;
  z-index: 2;
}

.mat-card {
  background: var(--surface);
  border-radius: 4px;
  box-shadow: var(--elevation-z1);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-card:hover {
  box-shadow: var(--elevation-z2);
}

.mat-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  line-height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.0892857143em;
  cursor: pointer;
  border: none;
  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-button-primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
}

.mat-button-primary:hover {
  background-color: var(--primary-dark);
}

.mat-button-accent {
  background-color: var(--accent);
  color: var(--text-on-accent);
}

.mat-button-warn {
  background-color: var(--warn);
  color: var(--text-on-primary);
}

/* Form fields */
.mat-form-field {
  display: block;
  margin-bottom: 24px;
  width: 100%;
}

.mat-form-field-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.mat-input,
.mat-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--divider);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 16px;
  transition: border-color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-input:focus,
.mat-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Alerts */
.mat-alert {
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.mat-alert-success {
  background-color: #e8f5e9;
  color: #1b5e20;
}

.mat-alert-error {
  background-color: #ffebee;
  color: var(--warn);
}

.mat-alert-info {
  background-color: #e3f2fd;
  color: #0d47a1;
}

/* Links */
.mat-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.mat-link:hover {
  text-decoration: underline;
}

/* Tabs */
.mat-tab-group {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--elevation-z1);
  margin-bottom: 24px;
}

.mat-tab-header {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mat-tab {
  padding: 0 24px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-tab:hover {
  color: var(--primary);
  background-color: rgba(0, 0, 0, 0.04);
}

.mat-tab.active {
  color: var(--primary);
}

.mat-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.tab-content {
  padding: 24px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Code */
.mat-code {
  background: rgba(0, 0, 0, 0.03);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 24px;
}

/* Download Links */
.mat-download-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mat-download-item {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: var(--elevation-z1);
  transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mat-download-item:hover {
  box-shadow: var(--elevation-z2);
}

.mat-download-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mat-download-image:hover {
  transform: scale(1.05);
}

.mat-download-content {
  padding: 16px;
}

.mat-download-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.mat-download-description {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 16px;
}

/* Modal */
.mat-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.mat-modal.active {
  display: flex;
}

.mat-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.mat-modal-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.mat-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 16px;
  }
  
  .mat-tab {
    padding: 0 16px;
  }
  
  .mat-card {
    padding: 16px;
  }
  
  .tab-content {
    padding: 16px;
  }
}
