/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
}

/* LINKS */
a {
    color: #2563EB;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* HEADER / NAV */
header {
    background: linear-gradient(90deg, #acc5d1, #acc5d1);
    color: #fff;
    padding: 16px 0;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links a {
    margin-left: 20px;
    color: #0c1728;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 32px 24px;
}

/* PAGE TITLES */
.page-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 12px;
    color: #1E40AF;
}

/* BUTTONS */
.button {
    display: inline-block;
    padding: 10px 18px;
    background: #acc5d1;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.button.secondary {
    background: #acc5d1;
}

.button.danger {
    background: #DC2626;
}

.button.small {
    padding: 6px 12px;
    font-size: 14px;
}

.button:hover {
    opacity: 0.9;
}

/* FORMS */
form label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 15px;
}

form textarea {
    min-height: 100px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #2563EB;
}

/* TABLES */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

table th,
table td {
    padding: 14px;
    border-bottom: 1px solid #E5E7EB;
}

table th {
    background: #F1F5F9;
    text-align: left;
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge.open { background: #DBEAFE; color: #1D4ED8; }
.badge.pending { background: #FEF3C7; color: #92400E; }
.badge.accepted { background: #DCFCE7; color: #166534; }
.badge.denied { background: #FEE2E2; color: #991B1B; }

/* CHAT */
#chat-box {
    border: 1px solid #ddd;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
}

#chatForm input[type="text"] {
    box-sizing: border-box;
}

#chatForm button {
    cursor: pointer;
}


.chat-row { display:flex; margin-bottom:12px; }
.chat-me { justify-content:flex-end; text-align:right; }
.chat-other { justify-content:flex-start; text-align:left; }
.chat-text { max-width:70%; font-size:14px; line-height:1.5; }
.chat-text strong { font-size:13px; font-weight:600; }

.badge {
    background:red; color:white; padding:2px 6px; font-size:12px; border-radius:50%;
    vertical-align:top; margin-left:4px;
}



/* FOOTER */
footer {
    margin-top: 60px;
    padding: 24px;
    text-align: center;
    color: #64748B;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
    }
}


/* Container styling */
.post-request-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

/* Form headings */
.post-request-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Form fields */
.post-request-container input,
.post-request-container select,
.post-request-container textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.post-request-container input:focus,
.post-request-container select:focus,
.post-request-container textarea:focus {
    border-color: #326c88;
    outline: none;
}

/* Textarea adjustments */
.post-request-container textarea {
    min-height: 100px;
    resize: vertical;
}

/* Submit button */
.post-request-btn {
    background-color: #326c88;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 15px;
    display: block;
    width: 100%;
}

.post-request-btn:hover {
    background-color: #117a8b;
    transform: translateY(-2px);
}

/* Labels */
.post-request-container label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #555;
}

/* Optional small description text */
.post-request-container small {
    color: #777;
    font-size: 12px;
}

/* Responsive for mobile */
@media (max-width: 640px) {
    .post-request-container {
        padding: 20px;
        margin: 20px;
    }
}

.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card a {
    text-decoration: none;
    color: #333;
    display: block;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    margin-bottom: 10px;
    color: #17a2b8;
}

.dashboard-card p {
    font-size: 14px;
    color: #555;
}

@media (max-width: 768px) {
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
    }

    .nav-links a {
        margin-left: 0;
        padding: 10px;
        background: rgba(255,255,255,0.15);
        border-radius: 6px;
        text-align: center;
    }
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 600px;
}
@media (max-width: 640px) {
    .dashboard-card {
        width: 100%;
    }
}
input,
textarea,
select,
button {
    font-size: 16px;
}
@media (max-width: 768px) {
    #chat-box {
        height: 60vh;
    }

    .chat-text {
        max-width: 85%;
        font-size: 15px;
    }
}
@media (max-width: 640px) {
    .page-title {
        font-size: 22px;
    }
}
@media (max-width: 640px) {
    .container {
        padding: 20px 16px;
    }
}
form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
    color: #555;
}

form input,
form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

form button {
    background: #2563EB;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

form button:hover {
    opacity: 0.9;
}

/* =========================================================
   SkillToSkill Header (STS) - collision-free navigation
   Add this at the END of style.css
   ========================================================= */

.sts-navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:nowrap;
}

.sts-logo img{
  max-height:46px;
  height:auto;
  display:block;
}

/* Desktop: hide hamburger */
.sts-mobile-toggle{
  display:none !important;
  background:none;
  border:none;
  font-size:26px;
  cursor:pointer;
  color:#0c1728;
}

/* Desktop menu */
.sts-nav-links{
  display:flex !important;
  align-items:center;
  gap:14px;
  flex-wrap:nowrap;  /* prevent wrapping */
}

.sts-nav-links a{
  text-decoration:none;
  font-weight:600;
  color:#0c1728;
  padding:6px 8px;
  border-radius:8px;
  white-space:nowrap;
}

.sts-nav-links a.sts-active{
  background:#eef6f8;
  border:1px solid #d7eef2;
}

.sts-nav-links a.sts-cta{
  background:#17a2b8;
  color:#fff !important;
  font-weight:800;
  padding:8px 12px;
  border-radius:10px;
}

.sts-nav-links a.sts-cta:hover{
  opacity:0.92;
  text-decoration:none;
}

.sts-nav-links a.sts-logout{
  opacity:0.85;
}

/* Dropdown button */
.sts-dropdown{ position:relative; }

.sts-dropbtn{
  background:#ffffff;
  border:1px solid #ddd;
  border-radius:10px;
  padding:7px 10px;
  font-weight:700;
  cursor:pointer;
  color:#0c1728;
}

.sts-dropbtn:hover{ background:#f7f7f7; }

/* Dropdown menu hidden by default */
.sts-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  min-width:190px;
  background:#fff;
  border:1px solid #ddd;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,0.14);
  overflow:hidden;
  z-index:9999;
}

.sts-dropdown-menu a{
  display:block;
  padding:10px 14px;
  color:#0c1728;
  font-weight:650;
  text-decoration:none;
}

.sts-dropdown-menu a:hover,
.sts-dropdown-menu a:focus{
  background:#17a2b8;
  color:#fff;
  outline:none;
  text-decoration:none;
}

/* Show on hover (desktop) or open class (click/keyboard) */
@media (min-width: 901px){
  .sts-dropdown:hover .sts-dropdown-menu{ display:block; }
  .sts-dropdown.sts-open .sts-dropdown-menu{ display:block; }
}

/* Mobile breakpoint: show hamburger, stack menu */
@media (max-width: 900px){
  .sts-navbar{ flex-wrap:wrap; }
  .sts-mobile-toggle{ display:block !important; }

  .sts-nav-links{
    display:none !important;
    flex-direction:column;
    align-items:flex-start;
    width:100%;
    gap:10px;
    padding-top:10px;
  }

  .sts-nav-links.sts-open{ display:flex !important; }

  /* Dropdown becomes inline section on mobile */
  .sts-dropdown-menu{
    position:static;
    box-shadow:none;
    margin-top:6px;
    width:100%;
  }

  .sts-dropdown.sts-open .sts-dropdown-menu{ display:block; }
}
.landing{max-width:1100px;margin:0 auto;padding:18px}
.hero{border:1px solid #eee;border-radius:18px;padding:26px;background:#fff}
.hero h1{margin:0 0 10px;font-size:2rem}
.sub{margin:0 0 16px;color:#444;max-width:780px;line-height:1.5}
.cta-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.btn{display:inline-block;padding:10px 14px;border-radius:12px;border:1px solid #ddd;text-decoration:none;color:#111}
.btn.primary{background:#111;color:#fff;border-color:#111}
.btn.ghost{background:#fff}
.trust-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.pill{border:1px solid #eee;background:#fafafa;border-radius:999px;padding:.35rem .6rem;font-size:.9rem}
.section{margin-top:22px}
.list{border:1px solid #eee;border-radius:16px;overflow:hidden;background:#fff}
.list-item{display:block;padding:12px 14px;border-bottom:1px solid #f1f1f1;text-decoration:none;color:inherit}
.list-item:last-child{border-bottom:0}
.li-title{font-weight:600}
.li-meta{font-size:.9rem;color:#666;margin-top:2px}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tag{border:1px solid #eee;padding:7px 10px;border-radius:999px;text-decoration:none;color:#333;background:#fff;font-size:.92rem}
.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.card{border:1px solid #eee;border-radius:16px;padding:16px;background:#fff}
@media(max-width:900px){.split,.grid3{grid-template-columns:1fr}.hero h1{font-size:1.6rem}}

/* My Requests status row polish */
tr.row-closed td {
  background: #fafafa;
}

tr.row-archived td {
  background: #f7f7f7;
}

.status-note {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

/* Compact actions + dropdown */
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.more-wrap {
  position: relative;
  z-index: 50;
}

.more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 9999;
}

.more-menu.open {
  display: block;
}

.more-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  color: #111;
}

.more-item:hover {
  background: #f5f5f5;
}

.more-divider {
  height: 1px;
  background: #eee;
  margin: 6px 0;
}

.btn-linklike {
  background: transparent;
  border: 0;
  padding: 0;
}

/* Allow opening upwards when near bottom */
.more-wrap.dropup .more-menu {
  top: auto;
  bottom: calc(100% + 6px);
}

.table, .table * { overflow: visible; }

tr.row-archived td {
  background: #f7f7f7;
  color: #666;
}
tr.row-archived a,
tr.row-archived .btn {
  opacity: 1; /* keep controls readable */
}

.table-responsive { overflow: visible !important; }

/* Allow dropdown to escape table */
table,
.table,
tbody,
tr,
td {
  overflow: visible !important;
}

.admin-dd-menu{
  position:absolute;
  z-index:999999; /* higher than header */
}

/* Fix: stop Note text from overlapping into Actions column */
td.note-cell{
  max-width: 240px;
  white-space: normal !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Keep Actions column above row text */
td.actions-cell{
  position: relative;
  z-index: 50;
}

/* Ensure dropdown menu sits above everything */
.admin-dd-menu{
  z-index: 999999 !important;
}

/* =========================
   City dropdown (global fix)
   ========================= */
.sts2-city-wrap { 
  position: relative; 
}

/* Make dropdown float over layout (no row height changes) */
.sts2-city-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 99999;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-height: 240px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

.sts2-city-item {
  padding: 10px 12px;
  cursor: pointer;
}
.sts2-city-item:hover {
  background: #f5f5f5;
}

/* =========================
   Homepage hero row alignment
   ========================= */
.hero .cta-row{
  align-items: center;
}

/* Make input heights match buttons neatly */
.hero .cta-row input,
.hero .cta-row .btn,
.hero .cta-row button.btn {
  height: 44px;
}

/* Optional: keep inputs from stretching oddly */
.hero .cta-row input {
  line-height: 44px;
  padding-top: 0;
  padding-bottom: 0;
}

/* =========================
   HOME HERO: force alignment + stop city dropdown affecting layout
   ========================= */
#homeSearchRow{
  display:flex !important;
  align-items:center !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}

/* Stop global form rules from messing heights on home hero */
#homeSearchRow input,
#homeSearchRow .btn,
#homeSearchRow button{
  height:44px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* Inputs: remove extra vertical padding so they match button exactly */
#homeSearchRow input{
  padding:0 12px !important;
  line-height:44px !important;
}

/* Button: match same height and vertical alignment */
#homeSearchRow .btn,
#homeSearchRow button{
  padding:0 16px !important;
  line-height:44px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

/* City dropdown MUST float and NOT push the row */
#homeSearchRow .sts2-city-wrap{
  position:relative !important;
}

#homeSearchRow .sts2-city-suggestions{
  position:absolute !important;
  left:0 !important;
  right:0 !important;
  top:calc(100% + 6px) !important;
  z-index:999999 !important;
  display:none;              /* your JS toggles this */
  background:#fff !important;
  border:1px solid #ddd !important;
  border-radius:10px !important;
  max-height:240px !important;
  overflow-y:auto !important;
  box-shadow:0 10px 24px rgba(0,0,0,.12) !important;
}

/* If something sets it to block, still keep it floating */
#homeSearchRow .sts2-city-suggestions[style*="display: block"]{
  display:block !important;
}

/* Center-align final CTA card text */
.section .card[style*="text-align:center"] .sub {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
/* =========================
   SkillToSkill Footer (Redesign)
   ========================= */
.sts-footer{
  margin-top: 60px;
  background: #fff;
  border-top: 1px solid #E5E7EB;
}

.sts-footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.sts-footer-logo{
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.2px;
  color: #0c1728;
}

.sts-footer-tagline{
  margin-top: 10px;
  color: #475569;
  max-width: 420px;
}

.sts-footer-col h4{
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748B;
  margin-bottom: 10px;
}

.sts-footer-col a{
  display: block;
  padding: 6px 0;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
}

.sts-footer-col a:hover{
  color: #2563EB;
  text-decoration: none;
}

.sts-footer-bottom{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px 18px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #64748B;
  font-size: 14px;
}

.sts-footer-links{
  display: flex;
  gap: 14px;
}

.sts-footer-links a{
  color: #64748B;
  text-decoration: none;
  font-weight: 600;
}
.sts-footer-links a:hover{
  color: #2563EB;
}

@media (max-width: 900px){
  .sts-footer-inner{
    grid-template-columns: 1fr;
  }
  .sts-footer-bottom{
    flex-direction: column;
    align-items: flex-start;
  }
}

.sts-footer a:hover {
  transform: translateX(2px);
  transition: transform 0.15s ease;
}

.remember {
    width: 90%;
    margin: 5px auto 10px;
    text-align: left;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.remember-label input {
    margin: 0;
}
.remember {
    width: 90%;
    margin: 6px auto 12px;
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    text-align: left;
}

.remember input[type="checkbox"] {
    margin: 0 !important;
    width: auto !important;
    display: inline-block !important;
}

.remember label {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    width: auto !important;
    white-space: nowrap !important;
    text-align: left !important;
}
/* Fix remember-me checkbox being forced to width:100% by global form input rules */
.login-container .remember {
  width: 90%;
  margin: 6px auto 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-container .remember input[type="checkbox"]{
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-block !important;
  flex: 0 0 auto;
}

.login-container .remember label{
  width: auto !important;
  margin: 0 !important;
  display: inline-block !important;
  white-space: nowrap;
}
