@import url('@/assets/styles/fonts.css');
@import url('@/assets/styles/text.css');
@import url('@/assets/styles/spacing.css');

:root {
  --theme-primary: #113188;
  --theme-secondary: #3b6bd3;
  --theme-tertiary: #01ffc4;

  --bg: rgb(20, 20, 20);
  --bg-darker: rgb(0, 0, 0);
  --bg-lighter: rgb(41, 41, 41);

  --text: rgb(247, 247, 247);
  --text-muted: gray;
  --text-link: #6c8eff;
  --positive: rgb(59, 219, 44);
  --negative: rgb(253, 52, 52);
  --warning: rgb(255, 187, 0);
}

body {
  padding: 0;
  margin: 0;
  font-family: 'OpenSans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

a {
  color: var(--text-link);
  text-decoration: none;
}
a:hover {
  color: var(--text-tertiary);
  text-decoration: underline;
}

.app-module-container {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
}

.app-module {
  width: calc(33.33% - 1.666rem);
  display: inline-block;
  min-height: 200px;
  background-color: var(--bg-lighter);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-module-full-width {
  width: 100%;
}

.app-module-header {
  margin: 0;
}

@media (max-width: 1600px) {
  .app-module {
    width: calc(50% - 1.5rem);
  }
}

@media (max-width: 800px) {
  .app-module {
    width: 100%;
  }
}

/* A generic table styling for most default tables. */
.app-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

.app-table td,
.app-table th {
  border: 2px solid var(--theme-secondary);
  padding: 0.1rem 0.25rem;
}

/* An alert banner, usually using <p>, to present some highlighted info. */
.alert-banner {
  background-color: var(--bg-lighter);
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.alert-banner-warning {
  background-color: var(--warning);
  color: var(--bg);
}
