/* ===================== */
/* GLOBAL RESET & BASE */
/* ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: linear-gradient(to bottom right, #dcfae7, #ffffff, #bbf7d0);
  color: #1f2937; /* dark gray text */
}


a {
  text-decoration: none;
  color: inherit;
}

/* ===================== */
/* TOP NAVIGATION HEADER */
/* ===================== */
.top-nav {
  background-color: #d1fae5;
  color: #065f46;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #34d399;
}

.app-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #065f46;
  transition: color 0.2s;
}

.app-name:hover {
  color: #10b981;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-icon, .icon-button, .filter-button {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: #34d399;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  border: none;
}

.profile-icon:hover, .icon-button:hover, .filter-button:hover {
  background-color: #10b981;
  transform: scale(1.05);
}

.profile-dropdown-container {
  position: relative;
}

/* Updated dropdown menu styles */
.dropdown-menu {
 position: absolute;
    top: 50px; /* Position below the profile icon */
    right: 0; /* Align to the right of the profile icon */
    background-color: #ffffff; /* White background for dropdown */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 100;
    min-width: 180px;
}

/* This is the class your HTML is looking for to hide the menu */
.hidden {
    display: none !important;
}


.dropdown-menu a.dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  color: #374151;
  transition: background-color 0.2s;
  font-size: 0.95rem;
}

.dropdown-menu a.dropdown-item:hover {
  background-color: #f0f2f5;
}

.dropdown-menu a.dropdown-item .icon {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  color: #6b7280;
}

/* ===================== */
/* PROFILE PAGE STYLES */
/* ===================== */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.profile-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #065f46;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* left (small) - right (big) */
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    max-width: 950px;
    width: 100%;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* ✅ center vertically */
    padding: 15px;
    border-right: 2px solid #e5e7eb;
}


.profile-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid #34d399;
    object-fit: cover;
    margin-bottom: 10px;
}

.user-info {
    text-align: center;
    margin-top: 10px;
}

#item-you-can-give-display {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1fae5;
    padding: 10px;
    font-size: 0.9rem;
    resize: none;
}



.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Left Column */
.profile-details-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.user-info {
    text-align: center;
}

.user-name {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.verified-icon {
    color: #1da1f2;
    font-size: 18px;
}

.user-phone,
.user-address {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 5px;
}

/* Right Column */
.profile-details-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.service-section h3,
.vacation-mode-status h3,
.item-you-can-give h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #065f46;
}

.profile-display-text {
    background: #f0fdf4;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #1f2937;
    border: 1px solid #d1fae5;
}

.service-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tags-container span {
    background: #d1fae5;
    color: #065f46;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: transform 0.15s;
}

.service-tags-container span:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ===================== */
/* MODAL STYLES */
/* ===================== */
/* Modal overlay */
/* Modal overlay */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

/* Modal content */
.modal-content {
    position: relative; /* para gumana yung absolute ng close button */
    background: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Close button (X) */
.modal-content .close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;  /* malaki */
    font-weight: bold;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-content .close:hover {
    color: #000;
}

/* Modal title */
.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Stars */
.stars {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.star {
    font-size: 40px; /* make it bigger */
    color: #ccc;     /* default gray */
    cursor: pointer;
    transition: color 0.2s;
}

.star.selected,
.star:hover,
.star:hover ~ .star {
    color: gold;     /* highlight gold */
}

/* Submit button */
#submitRating {
    background-color: #34d399; /* Green-500 */
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#submitRating:hover {
    background-color: #059669; /* darker green */
}

/* Dropdown (if used elsewhere) */
.categories-dropdown {
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.categories-dropdown:hover,
.categories-dropdown:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.2);
    outline: none;
}

.bio-section {
  margin-top: 0.75rem;
  text-align: left;   /* ✅ force left align */
}

.bio-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #1f2937; /* dark gray heading */
}

#bio-display {
  font-size: 0.95rem;
  color: #374151; /* dark gray text */
  line-height: 1.4;
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; /* left = profile pic, right = details */
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    max-width: 950px;
    width: 100%;
}

/* Left side */
.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-right: 2px solid #e5e7eb;
}



.user-info {
    text-align: center;
    margin-top: 10px;
}

.user-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.user-address {
    font-size: 1rem;
    color: #6b7280;
}

/* Right side */
.profile-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
}

/* Box style for item can give */
.profile-display-box {
    width: 100%;
    min-height: 100px;   /* mas malaki pa */
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #f0fdf4;
    padding: 12px;
    font-size: 1rem;
    color: #1f2937;
}
