/* Cyberpunk Contact Page */

* {
  box-sizing: border-box;
  font-family: "Rajdhani", sans-serif;
    --neon-blue: #a0fff8;
    --accent-blue: #32fff4;
    --neon-yellow: #fdf456;
}

/* Body */
body {
  margin: 0;
  background: linear-gradient(135deg, #050510, #0a0f2a, #120018);
  color: var(--neon-blue);
  min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page title */
.page-title {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  text-align: center;
  margin: 20px;
}

.page-title h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: var(--neon-yellow);
    display: inline-flex;
    height: 45px;
    position: relative;
    background: black;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid var(--neon-yellow);
    box-shadow:
            0 0 10px var(--neon-yellow),
            0 0 30px rgba(252,238,10,0.4);
    align-items: center;
    justify-content: center;
}

.card-container {
    flex: 1;
    margin: 20px;
    display: flex;
    justify-content: space-between;
    height: max-content;
    gap: 20px;
}

/* Main card */
.card {
    width: 100%;
    height: auto;
  background: rgba(0,0,0,0.75);
  padding: 15px 40px 40px;
  border-radius: 12px;
  border: 2px solid var(--neon-blue);
  box-shadow:
    0 0 10px var(--neon-blue),
    0 0 30px rgba(0,255,255,0.4);
  backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card header {
    display: inline-flex;
    height: 30px;
    position: relative;
    top: -30px;
    background: black;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid var(--neon-yellow);
    box-shadow:
            0 0 10px var(--neon-yellow),
            0 0 30px rgba(252,238,10,0.4);
    color: var(--neon-yellow);
    align-items: center;
    justify-content: center;
}
.card header h1 {
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.card.contacts {
    width: 80%;
}

#editor-icon {
    font-size: 30px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: none;
    color: var(--neon-yellow);
    overflow: clip;
}

#editor-icon.populated {
    border: 2px solid var(--neon-yellow);
}

.editor-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    width: 100%;
}

.editor-vgroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

.editor-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    gap: 15px;
}

.editor-group input {
    flex: 1;
}

@media (max-width: 1024px) {
    .card-container {
        flex-direction: column;
    }
    .card.contacts {
        width: 100%;
    }
}

@media (prefers-contrast: more) {
    * {
        border-color: white !important;
        background-color: black !important;
        color: white !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

@media (prefers-reduced-transparency: reduce) {
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

.searchbar {
    display: flex;
    flex-direction: row;
    gap: 15px;
    width: 100%;
}

.searchbar input {
    width: 100%;
}

.scroll-parent {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.contacts-scrollable {
    min-height: 250px;
    height: calc(90vh - 250px);
    width: 100%;
    overflow-y: scroll;
    border: 1px solid rgba(215, 22, 173, 0.7);
    box-shadow: 0 0 10px rgba(215, 22, 173, 0.3);
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

#welcomeText {
  font-size: 24px;
  font-weight: 700;
  color: var(--neon-yellow);
  text-shadow: 0 0 5px var(--neon-yellow);
}

/* Buttons */
button {
    height: 40px;
  background: transparent;
  color: var(--neon-yellow);
  border: 2px solid var(--neon-yellow);
  border-radius: 999px;
  padding: 10px 26px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
    width: fit-content;
    text-wrap: nowrap;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
}

button:hover {
  background: var(--neon-yellow);
  color: #000;
  box-shadow:
    0 0 10px var(--neon-yellow),
    0 0 30px var(--neon-yellow),
    0 0 60px var(--neon-yellow);
}

/* Inputs */
input {
    height: 40px;
    width: 100%;
    min-width: 60px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 2px solid var(--neon-blue); /* cyan border */
    background: transparent;
    color: var(--neon-blue); /* neon cyan text */
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

/* Placeholder text */
input::placeholder {
    color: var(--accent-blue); /* soft neon cyan */
    letter-spacing: 1.5px;
    font-style: italic;
}

input:focus::placeholder {
    color: rgba(252,238,10,0.5); /* yellow glow on focus */
}

input:focus {
  border-color: var(--neon-yellow);
  color: var(--neon-yellow);
    box-shadow:
            0 0 10px var(--neon-yellow),
            0 0 20px rgba(252,238,10,0.4);
}

input:disabled {
    border-color: #777777;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
    font-size: 18px;
}

tr {
    border: 1px solid #ff00c8;
}

th, td {
  padding: 12px 14px;
  text-align: left;
  color: var(--neon-blue);
}

th {
  font-weight: 700;
  text-shadow: 0 0 3px rgba(255,0,200,0.7);
}

tr:nth-child(even) {
  background: rgba(255,255,255,0.05);
}

tr:hover {
  background: rgba(252,238,10,0.15);
  cursor: pointer;
}

/* Section titles */
h3 {
  color: var(--neon-yellow);
  margin-bottom: 10px;
  text-shadow: 0 0 5px var(--neon-yellow);
}

/* Error messages */
#contactResult {
  display: block;
  margin-top: -5px;
  font-size: 12px;
  color: #ff0055 !important;
  font-weight: bold;
}

/* error border for invalid inputs */
input.error {
  border-color: #ff0055 !important;
}