/* src/component/AppHeader.css */
.app-header {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  z-index: 100;
  box-shadow: var(--shadow-md);
  background: #111116cc;
  justify-content: space-between;
  align-items:  center;
  width: 100%;
  padding: 1rem;
  top: 0;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items:  flex-start;
    gap: 1rem;
  }
}

.app-header .heading {
  display: flex;
  text-decoration: none;
  cursor: pointer;
  align-items:  center;
  gap: 1rem;
}

.app-header .heading .logo {
  transition: transform calc(4 * var(--anim-speed)) linear;
  width: 50px;
  height: 50px;
}

.app-header .heading:hover .logo {
  transform: rotate(360deg);
}

.app-header .heading .title {
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px var(--accent-primary);
  position: relative;
  font-family: Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
}

.app-header .navigation {
  display: flex;
  gap: 1.5rem;
}

.app-header .navigation .item {
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--anim-speed) ease;
  position: relative;
  font-size: 1rem;
  font-weight: bold;
}

.app-header .navigation .item:after {
  content: "";
  position: absolute;
  background-color: var(--accent-secondary);
  transition: width var(--anim-speed) ease;
  box-shadow: 0 0 5px var(--accent-secondary);
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
}

.app-header .navigation .item:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 5px var(--accent-secondary);
  transform: translateY(-2px);
}

.app-header .navigation .item:hover:after {
  width: 100%;
}

/* src/component/CardView.css */
.card {
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  transition: all var(--anim-speed) ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #1a1a22, #0d0d12);
  border-radius: 12px;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.card:hover {
  box-shadow: var(--shadow-lg), 0 0 20px #8a2be24d;
  border-color: var(--accent-primary);
  z-index: 10;
  transform: translateY(-5px)scale(1.02);
}

.card .image {
  object-fit: cover;
  background: #000;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
}

.card .metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .4rem 1rem;
  font-size: .85rem;
}

.card .label {
  color: var(--text-muted);
  text-align: right;
  font-weight: bold;
}

.card .value {
  color: var(--text-main);
  word-break: break-word;
}

.card .value.name {
  color: var(--accent-secondary);
  text-shadow: 0 0 5px #00fa9a4d;
  font-size: 1rem;
  font-weight: bold;
}

.card .value.id {
  opacity: .7;
  font-family: monospace;
  font-size: .75rem;
}

.card .value a {
  color: var(--accent-primary);
  text-decoration: none;
}

.card .value a:hover {
  text-decoration: underline;
  text-shadow: 0 0 5px var(--accent-primary);
}

/* src/component/CardsView.css */
.cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.filter-container {
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.filter-item label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: bold;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* src/component/ControlButton.css */
.ControlButton {
  background: linear-gradient(135deg, var(--accent-primary), #6a1b9a);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  position: relative;
  text-shadow: 1px 1px #4a148c;
  border: none;
  border-radius: 4px;
  padding: .8rem 1.5rem;
  transition: all .1s;
  font-family: inherit;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px #4a148c, 0 5px 10px #00000080;
}

.ControlButton:hover {
  box-shadow: 0 5px 0 #4a148c, 0 7px 15px #0009, 0 0 10px var(--shadow-glow);
  background: linear-gradient(135deg, #9c4dcc, #7b1fa2);
  transform: translateY(-1px);
}

.ControlButton:active {
  transform: translateY(3px);
  box-shadow: 0 1px #4a148c, 0 2px 5px #00000080;
}

.ControlButton:disabled {
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
  text-shadow: none;
  background: #444;
  transform: none;
}

/* src/component/ErrorView.css */
.error {
  border: 1px solid var(--accent-error);
  color: var(--accent-error);
  display: flex;
  text-align: center;
  animation: popIn var(--anim-speed) var(--ease-bounce);
  background: #ff45001a;
  border-radius: 8px;
  justify-content: center;
  align-items:  center;
  padding: 1rem;
  font-weight: bold;
  box-shadow: 0 0 10px #ff450033;
}

/* src/component/LoadingView.css */
.loading {
  display: flex;
  color: var(--text-muted);
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 1rem;
  padding: 2rem;
}

.spinner {
  border: 4px solid #8a2be24d;
  border-top-color: var(--accent-primary);
  animation: spin 1s linear infinite;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  box-shadow: 0 0 15px #8a2be233;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* src/common.css */
:root {
  --bg-app: #050505;
  --bg-panel: #111116;
  --bg-panel-hover: #1a1a22;
  --bg-input: #0a0a0e;
  --accent-primary: #8a2be2;
  --accent-secondary: #00fa9a;
  --accent-error: #ff4500;
  --text-main: #e0e0e0;
  --text-muted: #889;
  --text-accent: #e6ccff;
  --border-color: #334;
  --border-active: #a5f;
  --shadow-sm: 0 2px 4px #00000080;
  --shadow-md: 0 4px 8px #000000b3;
  --shadow-lg: 0 8px 16px #000c, 0 0 10px #8a2be233;
  --shadow-glow: 0 0 15px #8a2be266;
  --anim-speed-fast: .1s;
  --anim-speed: .2s;
  --anim-speed-slow: .4s;
  --ease-bounce: cubic-bezier(.175, .885, .32, 1.275);
  --max-width-app: 1280px;
}

* {
  box-sizing: border-box;
}

html, body, #root {
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Courier New, Courier, monospace;
  font-size: 16px;
}

.main {
  max-width: var(--max-width-app);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 1rem;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

.section-heading {
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 5px #00fa9a66;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all var(--anim-speed) ease;
  border-radius: 4px;
  width: 100%;
  padding: .8rem;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px #00000080;
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--shadow-glow);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300FA9A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-position: right .7rem top 50%;
  background-repeat: no-repeat;
  background-size: .65rem;
  padding-right: 2rem;
}

@keyframes smoke {
  0% {
    text-shadow: 0 0 10px var(--accent-primary);
    filter: blur(0px);
    opacity: 1;
  }

  50% {
    text-shadow: 5px -5px 20px var(--accent-primary);
    filter: blur(2px);
    opacity: .8;
  }

  100% {
    text-shadow: 0 0 10px var(--accent-primary);
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(.9)translateY(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1)translateY(0);
  }
}

.animate-pop-in {
  animation: popIn var(--anim-speed) var(--ease-bounce) forwards;
}

/* src/page/home.css */
.auth, .login, .registration {
  display: flex;
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  animation: popIn var(--anim-speed) var(--ease-bounce);
  border-radius: 8px;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.auth-toggle {
  text-align: center;
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: .9rem;
}

.link-button {
  color: var(--accent-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
}

.me {
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  flex-direction: column;
  gap: .8rem;
  padding: 1.5rem;
}

.me:after, .cardCreator:after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: .5;
  width: 100%;
  height: 2px;
  top: 0;
  left: 0;
}

.metadata {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: .5rem 1rem;
  font-size: .9rem;
}

.label {
  color: var(--text-muted);
  text-align: right;
  font-weight: bold;
}

.value {
  color: var(--text-main);
  word-break: break-all;
}

.balance {
  background: var(--bg-input);
  border: 1px solid var(--accent-primary);
  display: flex;
  border-radius: 4px;
  justify-content: space-between;
  align-items:  center;
  margin-top: .5rem;
  padding: .5rem;
  box-shadow: inset 0 2px 4px #00000080;
}

.balance .value {
  color: var(--accent-secondary);
  text-shadow: 0 0 5px #00fa9a66;
  font-size: 1.2rem;
  font-weight: bold;
}

.info {
  border-left: 3px solid var(--accent-primary);
  color: var(--text-accent);
  background: #8a2be21a;
  border-radius: 4px;
  padding: .8rem;
  font-size: .85rem;
}

.controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.cardCreator {
  background: var(--bg-panel);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  display: flex;
  border-radius: 8px;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.input-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-left: .2rem;
  font-size: .85rem;
  font-weight: 600;
}

.input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all var(--anim-speed) ease;
  border-radius: 4px;
  padding: .8rem;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 2px 4px #00000080;
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 8px var(--shadow-glow);
}

.textarea {
  resize: vertical;
  min-height: 80px;
}

.jobsCount {
  text-align: center;
  color: var(--text-muted);
  margin-top: .5rem;
  font-size: .8rem;
}

.alpha-banner {
  border: 1px solid var(--accent-error);
  color: #ffd1c1;
  display: flex;
  animation: popIn var(--anim-speed) var(--ease-bounce);
  background: #ff450026;
  border-radius: 8px;
  align-items:  center;
  gap: .8rem;
  margin-bottom: .5rem;
  padding: 1rem;
  font-size: .95rem;
  line-height: 1.4;
  box-shadow: 0 0 15px #ff450026;
}

.alpha-banner strong {
  color: var(--accent-error);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}
