/* =======================================================
   ROOT VARIABLES
======================================================= */
:root {
  --color-primary: #3531bd;
  --color-primary-light: hsla(242, 91%, 69%, 0.18);
  --color-primary-variant: #5854c7;
  --color-red: #da0f3f;
  --color-red-light: hsla(346, 87%, 46%, 0.15);
  --color-green: #00c476;
  --color-green-light: hsla(156, 100%, 38%, 0.15);
  --color-gray-900: #1e1e66;
  --color-gray-700: #2d2b7c;
  --color-gray-300: rgba(242, 242, 254, 0.3);
  --color-gray-200: rgba(242, 242, 254, 0.7);
  --color-white: #ffffff;
  --color-bg: #fefefe;

  --theme-blue: #0b0e63;
  --theme-gold: #eab84e;
  --theme-text-dark: #0d1440;
  --theme-bg: #f4f5f9;

  --transition: all 300ms ease;

  --container-width-lg: 80%;
  --container-width-md: 92%;
  --form-width: 40%;

  --card-radius-1: 0.3rem;
  --card-radius-2: 0.5rem;
  --card-radius-3: 0.8rem;
  --card-radius-4: 2rem;
  --card-radius-5: 5rem;
}

/* =======================================================
   RESET + GLOBAL
======================================================= */
* {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  text-decoration: none;
  box-sizing: border-box;
}

/* Only remove list style for navigation + footer */
nav ul,
footer ul,
.dashboard aside ul {
  list-style: none;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: var(--theme-text-dark);
  background: var(--theme-bg);
  font-size: 0.9rem;
  overflow-x: hidden;
}

.container {
  width: var(--container-width-lg);
  max-width: 1800px;
  margin-inline: auto;
}

section {
  margin-top: 3rem;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--theme-text-dark);
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin: 1rem 0;
}

h2 {
  font-size: 1.7rem;
  margin: 1rem 0;
}

h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.5rem;
}

h4 {
  font-size: 1rem;
}

a {
  color: var(--theme-text-dark);
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* extra margin section (old logic) */
.section__extra-margin {
  margin-top: 7rem;
}

/* =======================================================
   NAVBAR – BLUE + GOLD THEME
======================================================= */
nav {
  background: var(--theme-blue) !important;
  width: 100%;
  height: 4.5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav__container {
  height: 100%;
  width: var(--container-width-lg);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 45px !important;
  width: auto !important;
  object-fit: contain !important;
}

.nav__items {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav__items a,
.nav__profile a,
.nav__logo a {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.5px;
}

.nav__items a:hover {
  color: var(--theme-gold) !important;
  transition: var(--transition);
}

.nav__profile {
  position: relative;
  cursor: pointer;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 0.3rem solid var(--color-bg);
}

/* dropdown */
.nav__profile ul {
  position: absolute;
  top: 140%;
  right: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3rem 3rem rgba(0, 0, 0, 0.4);
  visibility: hidden;
  opacity: 0;
  transition: var(--transition);
}

.nav__profile:hover > ul {
  visibility: visible;
  opacity: 1;
}

.nav__profile ul li a {
  padding: 1rem;
  display: block;
  width: 100%;
  background: #fdf2d0 !important;
  color: #000 !important;
  border-bottom: 1px solid #d1b16a;
}

.nav__profile ul li:last-child a {
  background: #8c7026 !important;
  color: #fff !important;
}

/* mobile nav buttons */
nav button {
  display: none;
  background: transparent;
  cursor: pointer;
}

nav button,
nav button i {
  color: #ffffff !important;
  font-size: 1.8rem;
}

/* =======================================================
   CATEGORY BUTTON / REAL ESTATE CTA
======================================================= */
.category__button {
  background: var(--theme-gold) !important;
  color: var(--theme-blue) !important;
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--card-radius-2);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
}

.realestate-btn {
  background: #000 !important;
  color: var(--theme-gold) !important;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  border-radius: 6px;
  display: inline-block;
}

.realestate-btn:hover {
  background: #222 !important;
  color: #e5c171 !important;
}

/* =======================================================
   GENERAL POST CARD STYLES
======================================================= */
.post__thumbnail {
  border-radius: var(--card-radius-5) 0;
  border: 0.32em solid var(--color-gray-900);
  overflow: hidden;
  margin-bottom: 1.6rem;
}

/* dynamic (auto) height thumbnails – as per option 2D */
.post__thumbnail {
  height: 220px;       /* fixed height */
}

.post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* crop karega but stretch nahi karega */
}


.post:hover .post__thumbnail img {
  filter: saturate(0);
  transition: filter 500ms ease;
}

.post__author {
  display: flex;
  gap: 1rem;
  margin-top: 1.2rem;
}

.post__author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--card-radius-3);
  overflow: hidden;
}

.post__body {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* title inside cards */
.post__title a {
  color: var(--theme-text-dark) !important;
  font-weight: 800;
  font-size: 1.25rem;
}

/* subtler body text */
.post__body {
  color: #6a6f85 !important;
}

/* =======================================================
   FEATURED POST
======================================================= */
.featured {
  margin-top: 8rem;
}

.featured__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.featured .post__thumbnail {
  height: fit-content;
}

/* =======================================================
   POSTS GRID – HOME / CATEGORY
======================================================= */
.posts__container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* category buttons bar */
.category__buttons {
  padding: 4rem 0;
  border-top: 2px solid var(--color-gray-900);
  border-bottom: 2px solid var(--color-gray-900);
}

.category__buttons-container {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* =======================================================
   FOOTER
======================================================= */
footer {
  background: var(--color-gray-900);
  padding: 5rem 0 0;
  box-shadow: inset 0 1.5rem 1.5rem rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.footer__socials {
  margin-inline: auto;
  width: fit-content;
  margin-bottom: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer__socials a {
  background: #ffffff !important;
  border-radius: 50%;
  height: 2.3rem;
  width: 2.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000000 !important;
}

.footer__socials a i {
  color: #000000 !important;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

footer li {
  padding: 0.4rem 0;
}

footer h4 {
  color: #ffffff;
  margin-bottom: 0.6rem;
}

footer ul a {
  color: #ffffff !important;
  opacity: 0.75;
}

footer ul a:hover {
  letter-spacing: 0.1rem;
  opacity: 1;
  transition: var(--transition);
}

.footer__copyright {
  text-align: center;
  padding: 1.5rem 0;
  border-top: 2px solid var(--color-bg);
  margin-top: 4rem;
}

/* =======================================================
   SEARCH BAR (BLOG)
======================================================= */
.search__bar {
  margin-top: 7rem;
}

.search__bar-container {
  position: relative;
  width: 30rem;
  max-width: 100%;
  background: var(--theme-blue);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 0.6rem 1rem;
  border-radius: var(--card-radius-2);
  color: #ffffff;
}

.search__bar-container > div {
  width: 100%;
  display: flex;
  align-items: center;
}

.search__bar input {
  background: transparent;
  margin-left: 0.7rem;
  padding: 0.5rem 0;
  width: 100%;
  color: #ffffff;
}

.search__bar input::placeholder {
  color: var(--color-gray-200);
}

/* SEARCH BUTTON (if used as .btn-search) */
.btn-search {
  background: var(--theme-gold) !important;
  color: var(--theme-blue) !important;
  font-weight: 700;
}

/* =======================================================
   BUTTONS
======================================================= */
.btn {
  display: inline-block;
  width: fit-content;
  padding: 0.6rem 2.2rem;
  background-color: var(--color-primary);
  border-radius: var(--card-radius-2);
  cursor: pointer;
  transition: var(--transition);
  color: #000000;
}

.btn.sm {
  padding: 0.3rem;
  font-size: 0.8rem;
}

.btn.danger {
  background-color: red;
}

.btn:hover {
  background: #ffffff;
  color: var(--color-bg);
}

/* =======================================================
   DASHBOARD
======================================================= */
.dashboard {
  margin-top: 6rem;
  padding: 2rem;
}

.sidebar__toggle {
  display: none;
}

.dashboard__container {
  display: grid;
  grid-template-columns: 14rem auto;
  gap: 2rem;
  background: #dad8d8;
  padding: 2rem;
  margin-bottom: 5rem;
  border-radius: 2rem;
}

.dashboard aside a {
  color: #000000;
  background: #b5b7ba;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.6rem;
}

.dashboard aside ul li:not(:last-child) a {
  border-bottom: 1px solid #000000;
}

.dashboard aside a:hover {
  background: var(--color-gray-700);
}

.dashboard aside a.active {
  background-color: #b5b7ba;
}

.dashboard main {
  margin-left: 1.5rem;
}

.dashboard main h2 {
  margin: 0 0 2rem 0;
  line-height: 1;
}

.dashboard main table {
  width: 100%;
  text-align: left;
}

.dashboard main table th {
  background: #bfbfc5;
  padding: 0.8rem;
  color: #000000;
}

.dashboard main table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.dashboard main table tr:hover {
  background-color: var(--color-bg);
  color: var(--theme-text-dark);
  cursor: default;
  transition: var(--transition);
}

/* =======================================================
   SINGLE POST PAGE
   (option 3D: full-width image with auto-height)
======================================================= */
.singlepost {
  margin: 6rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.singlepost__container {
  width: 90%;
  max-width: 1000px;
  background: #d9d9e6;
  padding: 2.5rem 3rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border-radius: var(--card-radius-4);
}

.singlepost__container h2 {
  margin-top: 0;
  font-size: 1.9rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
}

.singlepost__author {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.post__author-info h5 {
  margin: 0.5rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.post__author-info small {
  font-size: 0.9rem;
  color: var(--color-gray-700);
  text-align: center;
}

/* FULL WIDTH IMAGE AUTO HEIGHT */
.singlepost__thumbnail {
  width: 100%;
  margin: 2rem 0;
}

.singlepost__thumbnail img {
  width: 100%;
  height: auto;              /* option 3D – auto height */
  object-fit: cover;
  border-radius: var(--card-radius-4);
  box-shadow: 0 0 20px 16px rgba(0, 0, 0, 0.35);
}

/* CONTENT */
.singlepost__container p {
  margin-top: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--theme-text-dark);
  text-align: justify;
}

/* FORCE ALL CONTENT JUSTIFY */
.singlepost__container,
.singlepost__container p,
.singlepost__container div,
.singlepost__container span,
.singlepost__container li {
  text-align: justify !important;
}
.singlepost__container h1 {
    text-align: left !important;
}


/* LINK HIGHLIGHT INSIDE POST */
.singlepost__container a,
.singlepost__container p a,
.singlepost__container div a,
.singlepost__container span a,
.singlepost__container li a {
  color: #007bff !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}

.singlepost__container a:hover {
  color: #0056cc !important;
}

/* =======================================================
   CATEGORY TITLE / EMPTY PAGE
======================================================= */
.category__title {
  height: 11rem;
  margin-top: 4.5rem;
  background: var(--color-gray-900);
  display: grid;
  place-items: center;
  color: #ffffff;
}

.empty__page {
  height: 70vh;
  text-align: center;
  display: grid;
  place-content: center;
}

/* =======================================================
   FORMS
======================================================= */
.form__section {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 5rem 0;
}

.form__section-container {
  width: var(--form-width);
  max-width: 500px;
}

.alert__message {
  padding: 0.8rem 1.4rem;
  margin-bottom: 1rem;
  border-radius: var(--card-radius-2);
}

.alert__message.error {
  background: var(--color-red-light);
  color: var(--color-red);
}

.alert__message.success {
  background: var(--color-green-light);
  color: var(--color-green);
}

.alert__message.lg {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form__control {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form__control.inline {
  flex-direction: row;
  align-items: center;
}

.form__section small {
  margin-top: 1rem;
  display: block;
}

.form__section small a {
  color: var(--color-primary);
}

input,
textarea,
select {
  padding: 0.8rem 1.4rem;
  background-color: var(--color-gray-900);
  border-radius: var(--card-radius-2);
  resize: none;
  color: #0d0c0c;
}

/* =======================================================
           MEDIA QUERIES – TABLET
     =================================================== */
@media screen and (max-width: 1024px) {
  .container {
    width: var(--container-width-md);
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h5 {
    font-size: 0.8rem;
  }

  /* NAV MOBILE */
  nav button {
    display: inline-block;
  }

  .nav__container {
    position: relative;
  }

  .nav__items {
    position: absolute;
    top: 100%;
    right: 0;
    width: 12rem;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    background: var(--color-gray-900);
    display: none; /* JS se toggle hoga */
  }

  .nav__items li {
    width: 100%;
    height: 4.5rem;
    display: flex;
    align-items: center;
    box-shadow: -2rem 3rem 7rem rgba(0, 0, 0, 0.7);
    border-top: 1px solid var(--color-bg);
    background: var(--color-gray-900);
  }

  .nav__items a {
    width: 100%;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
  }

  .nav__profile {
    background: var(--color-gray-900);
  }

  .nav__profile ul {
    top: 100%;
    width: 100%;
  }

  .nav__profile ul li a {
    padding: 0 2rem;
  }

  .featured__container {
    gap: 3rem;
    grid-template-columns: 1fr;
  }

  .posts__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }

  .search__bar-container {
    width: 60%;
  }

  .form__section-container {
    padding: 3rem;
  }

  .dashboard__container {
    grid-template-columns: 4.5rem auto;
  }

  .dashboard main table thead {
    display: none;
  }

  .dashboard main table tr {
    display: flex;
    flex-direction: column;
  }

  .dashboard main table tr:nth-child(even) {
    background: var(--color-gray-900);
  }

  .dashboard main table tr:hover td {
    background: transparent;
  }
}

/* =======================================================
   MEDIA QUERIES – MOBILE
======================================================= */
@media screen and (max-width: 600px) {
  section {
    margin-top: 2rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .featured {
    margin-top: 6rem;
  }

  .featured__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .posts__container {
    grid-template-columns: 1fr;
  }

  .category__buttons-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .search__bar-container {
    width: var(--container-width-md);
  }

  .singlepost__container {
    width: 92%;
    padding: 1.5rem;
    box-shadow: none;
    background-color: #e0e0ec;
  }

  .form__section-container {
    padding: 0;
  }

  .dashboard {
    margin-top: 5rem;
  }

  .dashboard__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dashboard main {
    margin: 0;
  }

  .dashboard main h2 {
    margin-top: 1rem;
  }

  .dashboard aside {
    position: fixed;
    left: 0;
    z-index: 2;
    height: 100vh;
    background: var(--color-primary);
    box-shadow: 2rem 0 4rem rgba(0, 0, 0, 0.4);
  }

  .dashboard .sidebar__toggle {
    display: inline-block;
    background: var(--color-primary-variant);
    color: #ffffff;
    position: fixed;
    right: 0;
    bottom: 4rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50% 0 0 50%;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: -1rem 0 2rem rgba(0, 0, 0, 0.4);
  }
}
/* ===== MOBILE MENU BUTTON FIX ===== */
#close__nav-btn {
    display: none !important;      /* By default hidden */
}

/* Jab menu open ho tab close button dikhe */
nav.open #open__nav-btn {
    display: none !important;
}

nav.open #close__nav-btn {
    display: inline-block !important;
}

/* ============================
   ADD POST CARD DESIGN
============================ */
.addpost-card {
    background: #dddada;
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

/* Card heading */
.addpost-card h2 {
    color: #0d1440 !important;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
}

/* Inputs inside card */
.addpost-card input,
.addpost-card textarea,
.addpost-card select {
    background: #f3f4ff;
    color: #0d1440;
    border: 1px solid #ddd;
    font-size: 0.90rem;
}

.addpost-card input:focus,
.addpost-card textarea:focus,
.addpost-card select:focus {
    border-color: #5854c7;
    box-shadow: 0 0 0 2px rgba(88,84,199,0.25);
}

/* Featured checkbox text color fix */
.addpost-card label {
    color: #0d1440 !important;
}

/* ===============================
   ADMIN DASHBOARD BUTTON HOVER FIX
=============================== */

/* Hover for EDIT button */
.dashboard main table .btn.sm:hover {
    background: var(--theme-blue) !important;
    color: #ffffff !important;
}

/* Hover for DELETE button */
.dashboard main table .btn.sm.danger:hover {
    background: #ff2e2e !important;
    color: #ffffff !important;
    border-color: #ff2e2e !important;
}

/* When row hover happens, button colors remain visible */
.dashboard main table tr:hover .btn {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

.dashboard main table tr:hover .btn.danger {
    background: #d90000 !important;
    color: #ffffff !important;
}




/*////////// ABOUT PAGE FIX ////////////////////*/
.about-section {
    margin-top: 6rem;
    padding: 2rem 0;
}

.about-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 0 25px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.about-card h1 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--theme-blue);
}

.about-card .lead {
    text-align: center;
    font-size: 1.15rem;
    margin-bottom: 2rem;
    color: #333;
    line-height: 1.7;
}

.about-full p {
    font-size: 1rem;
    margin-bottom: 1.4rem;
    color: #444;
    line-height: 1.8;
}

/* ===============================
   CONTACT PAGE
=============================== */

.contact-section {
    margin-top: 6rem;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
}

/* Contact Card */
.contact-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 1px solid #eee;
    max-width: 550px;
}

/* Title */
.contact-card h1 {
    text-align: center;
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--theme-blue);
    margin-bottom: 0.5rem;
}

/* Subtitle */
.contact-card .lead {
    text-align: center;
    font-size: 1.15rem;
    color: #555;
    margin-bottom: 2rem;
}

/* Inputs + Textarea */
.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #ccc;
    background: #f3f6ff;
    font-size: 1rem;
    transition: 0.25s ease-in-out;
}

/* Focus Effect */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--theme-blue);
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.25);
    outline: none;
}

.contact-form textarea {
    resize: none;
    min-height: 130px;
}

/* Button Styling */
.send-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--theme-blue), #003b99);
    color: #fff !important;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #003b99, #002d7a);
}

/* ===============================
   GLOBAL PREMIUM BUTTON HOVER FIX
=============================== */

/* Normal primary button */
.btn:hover {
    background: var(--theme-gold) !important;
    color: var(--theme-blue) !important;
    border-color: var(--theme-gold) !important;
    transition: 0.25s ease-in-out;
}

/* Small button (like Edit) */
.btn.sm:hover {
    background: var(--theme-blue) !important;
    color: #fff !important;
}

/* Delete / danger button */
.btn.danger:hover {
    background: #ff1f1f !important;
    color: #fff !important;
    border-color: #ff1f1f !important;
}

/* Category buttons */
.category__button:hover {
    background: var(--theme-blue) !important;
    color: #fff !important;
}

/* Real estate CTA buttons */
.realestate-btn:hover {
    background: var(--theme-gold) !important;
    color: var(--theme-blue) !important;
}

/* Search button */
.btn-search:hover {
    background: #ffffff !important;
    color: var(--theme-blue) !important;
}

/* Dashboard table row hover button fix */
.dashboard main table tr:hover .btn {
    background: var(--theme-blue) !important;
    color: #fff !important;
}

.dashboard main table tr:hover .btn.danger {
    background: #d90000 !important;
    color: #fff !important;
}
/* =======================================================
   AUTH (SIGN IN / SIGN UP) – NEWHOMELAUNCH THEME
======================================================= */

.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--theme-blue),
    #1b1f8a
  );
  padding: 1.5rem;
}

/* AUTH CARD */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 2.4rem 2.2rem;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border-top: 6px solid var(--theme-gold);
}

/* HEADING */
.auth-card h2 {
  text-align: center;
  font-size: 1.9rem;
  color: var(--theme-blue);
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.auth-sub {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1.6rem;
}

/* ALERTS */
.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.auth-alert.success {
  background: rgba(0, 196, 118, 0.15);
  color: #008c56;
}

.auth-alert.error {
  background: var(--color-red-light);
  color: var(--color-red);
}

/* =========================
   INPUTS
========================= */

.auth input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #dcdce8;
  background: #f3f4ff;
  font-size: 0.9rem;
  color: var(--theme-text-dark);
}

/* Focus */
.auth input:focus {
  outline: none;
  border-color: var(--theme-blue);
  box-shadow: 0 0 0 2px rgba(11, 14, 99, 0.25);
  background: #ffffff;
}

/* GRID */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

/* PASSWORD EYE */
.password-wrap {
  position: relative;
  width: 100%;
}

.password-wrap input {
  padding-right: 46px;
}

.password-wrap i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #777;
  cursor: pointer;
}

.password-wrap i:hover {
  color: var(--theme-blue);
}

/* AVATAR UPLOAD */
.compact-upload {
  margin: 0.6rem 0 1rem;
}

.compact-upload input {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.85rem;
}

/* BUTTON */
.auth-btn {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--theme-blue),
    #1b1f8a
  );
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.25s ease-in-out;
}

.auth-btn:hover {
  background: var(--theme-gold);
  color: var(--theme-blue);
  transform: translateY(-2px);
}

/* FOOTER */
.auth-footer {
  display: block;
  text-align: center;
  margin-top: 1.3rem;
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--theme-blue);
  font-weight: 700;
}

.auth-footer a:hover {
  color: var(--theme-gold);
}


