body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f7fc;
  color: #333;
  margin: 0;
}

.container { max-width: 1000px; margin: 40px auto; padding: 20px; }

.grid { display: flex; gap: 20px; }
.card {
  flex: 1;
  background: #fff;
  border: 1px solid #e1d9f3;
  border-radius: 10px;
  text-align: center;
  padding: 40px;
  color: #5a3ea3;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(90, 62, 163, 0.1);
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #ddd; padding: 10px; text-align: left; }
button { background: #6a42d1; color: #fff; border: none; padding: 8px 12px; border-radius: 4px; }

.header {
  background: #f4f0fa;
  border-bottom: 1px solid #e2d9f5;
  padding: 10px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: #4a2fa5;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: #5a3ea3;
  font-weight: 500;
}
.nav-links a:hover {
  color: #3c2780;
}

.main-content { min-height: 70vh; padding: 30px 20px; }

.footer {
  background: #f9f7fc;
  border-top: 1px solid #e2d9f5;
  text-align: center;
  padding: 20px 0;
  color: #666;
}
.footer a {
  color: #7a57d1;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

.login-container {
  max-width: 360px;
  margin: 80px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(90, 62, 163, 0.1);
  text-align: center;
}
.login-container h2 {
  color: #4a2fa5;
  margin-bottom: 20px;
}
.login-container input {
  display: block;
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #d9d1f0;
  border-radius: 6px;
  font-size: 1rem;
}
.login-container button {
  width: 100%;
  background: #6a42d1;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}
.login-container button:hover {
  background: #5936ba;
}
.error {
  color: #d33;
  background: #ffe6e6;
  border: 1px solid #f3c4c4;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 15px;
}

/* ======================================
   Base Variables (Match to your site)
   Change only these if needed
====================================== */
:root {
    --primary-color: #0078cc;
    --primary-dark: #005c99;
    --border-color: #d4d4d4;
    --border-hover: #aaa;
    --text-color: #333;
    --background-light: #fafafa;
    --error-color: #c62828;
    --success-color: #2e7d32;
    --radius: 6px;
    --transition: 0.2s ease;
}

/* ------------------------------
   CONTACT FORM CONTAINER
------------------------------ */
.contact-form-wrapper {
    max-width: 480px;
    background: #ffffff;
    padding: 32px;
    margin: 80px auto;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 26px;
    text-align: center;
    color: #4c3cb0;
    font-weight: 600;
}

/* ------------------------------
   FORM ELEMENTS
------------------------------ */
label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #5a4bb3;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #d5d2e6;
    background: #fbfaff;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #775ef8;
    box-shadow: 0 0 0 2px rgba(119, 94, 248, 0.2);
}

textarea {
    resize: vertical;
    min-height: 110px;
}

/* ------------------------------
   CAPTCHA BLOCK
------------------------------ */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

#captchaImage {
    border: 1px solid #d5d2e6;
    border-radius: 6px;
    height: 60px;
}

.captcha-refresh {
    cursor: pointer;
    color: #5a4bb3;
    font-size: 15px;
    user-select: none;
    background: #ece9ff;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.captcha-refresh:hover {
    background: #d9d2ff;
}

/* ------------------------------
   STATUS / FEEDBACK BOX
------------------------------ */
.form-status {
    display: none;
    padding: 12px 14px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.form-status.success {
    background: #e9ffe9;
    border: 1px solid #89d589;
    color: #267b26;
}

.form-status.error {
    background: #ffe9e9;
    border: 1px solid #d58989;
    color: #7b2626;
}

/* ------------------------------
   SUBMIT BUTTON
------------------------------ */
button[type="submit"] {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: #5a4bb3;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover {
    background: #4c3cb0;
}

button[type="submit"]:active {
    transform: scale(0.97);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 600px) {
    .contact-form-wrapper {
        margin: 40px 16px;
        padding: 24px;
    }
}

.short-url-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.short-url-container input {
    padding: 8px;
    font-size: 14px;
    width: 250px;
}

.short-url-container button {
    padding: 8px 12px;
    background-color: #6A4ACD;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.short-url-container button:hover {
    background-color: #5741a3;
}