/* common.css */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #FFFFFF;
  color: #333333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px;
  overflow-x: hidden;
  position: relative;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  overflow: visible;
  min-height: 56px;
}

.navbar {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 70px;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  background-color: #fff;
}

.navbar-brand {
  padding: 0;
  margin: 0;
  height: 70px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand span {
  margin-left: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.navbar-nav {
  height: 70px;
  display: flex;
  align-items: center;
}

.nav-item {
  margin: 0 8px;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #1E88E5;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: #1E88E5;
}

.container {
  padding: 15px;
  flex: 1 0 auto;
  position: relative;
  margin-top: 0px;
}

.container h1,
.container h2,
.container h3,
.container h4,
.container h5,
.container h6,
.container p,
.container .form-label,
.container .login-card h2 {
  color: #333333 !important;
}

.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  margin-top: 0;
}

.hero-section h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.footer {
  background-color: #f8f9fa;
  padding: 3rem 0;
  margin-top: 3rem;
  border-top: 1px solid #e9ecef;
}

.footer h5 {
  color: #333;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.8rem;
  color: #666;
  font-size: 0.95rem;
}

.footer ul li a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #007bff;
}

.footer .text-center {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
  color: #666;
  font-size: 0.9rem;
}

.contact .phone-number {
  font-size: 1.3rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.5rem;
}

.contact .business-hours {
  color: #6c757d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: #6c757d;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.social-link:hover {
  color: #007bff;
}

.footer-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.company-info {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.5;
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.company-basic {
  padding-right: 1rem;
  border-right: 1px solid #e9ecef;
}

.company-name {
  font-weight: 600;
  color: #212529;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.company-address {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.company-details {
  margin-bottom: 0;
}

.company-notice {
  padding: 0 1rem;
  border-right: 1px solid #e9ecef;
}

.company-notice p {
  margin: 0;
  font-size: 0.75rem;
}

.company-legal {
  padding-left: 1rem;
}

.copyright-notice {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.copyright-notice a {
  color: #007bff;
  text-decoration: none;
}

.copyright-notice a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  color: #adb5bd;
  margin: 0;
}

@media (max-width: 992px) {
  .company-info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .company-basic {
    padding-right: 0;
    border-right: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .company-notice {
    padding: 0;
    border-right: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
  }
  
  .company-legal {
    padding-left: 0;
  }
}

.copyright-notice {
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.copyright-notice a {
  color: #007bff;
  text-decoration: none;
}

.copyright-notice a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  color: #adb5bd;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0;
  }
  
  .footer h5 {
    margin-top: 1.5rem;
    font-size: 1rem;
  }
  
  .footer ul li {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 1.5rem 0;
  }
}

.footer-copyright {
  text-align: center;
  color: #495057;
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.footer p,
.footer a {
  color: #333333;
  margin-bottom: 0.5rem;
}

.footer .btn-outline-primary {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  color: #6D4AFF;
  border-color: #6D4AFF;
}

.footer .btn-outline-primary:hover {
  background-color: #5C3AD9;
  color: #FFFFFF;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: #5C3AD9;
}

.btn-primary {
  background-color: #6D4AFF;
  border-color: #6D4AFF;
  border-radius: 20px;
}

.btn-primary:hover {
  background-color: #5C3AD9;
  border-color: #5C3AD9;
}

.btn-outline-secondary {
  border-color: #6D4AFF;
  color: #6D4AFF;
  border-radius: 20px;
}

.btn-outline-secondary:hover {
  background-color: #7E57C2;
  color: #FFFFFF;
}

/* index.html 스타일 통합 */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0,0,0,.03);
  border-bottom: 1px solid rgba(0,0,0,.125);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.card-tools {
  float: right;
  margin-right: -.5rem;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

/* 탭 스타일 */
.nav-tabs-custom {
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  border-radius: 3px;
}

.nav-tabs-custom > .nav-tabs {
  margin: 0;
  border-bottom-color: #f4f4f4;
  border-top-right-radius: 3px;
  border-top-left-radius: 3px;
}

.nav-tabs-custom > .nav-tabs > li {
  border-top: 3px solid transparent;
  margin-bottom: -2px;
  margin-right: 5px;
}

.nav-tabs-custom > .nav-tabs > li > a {
  color: #444;
  border-radius: 0;
  margin-right: 0;
  padding: 12px 15px;
}

.nav-tabs-custom > .nav-tabs > li > a:hover {
  background: transparent;
  border-color: transparent;
}

.nav-tabs-custom > .nav-tabs > li.active {
  border-top-color: #3c8dbc;
}

.nav-tabs-custom > .nav-tabs > li.active > a {
  color: #444;
  background: #fff;
  border-left-color: #f4f4f4;
  border-right-color: #f4f4f4;
}

/* 채팅 스타일 */
.direct-chat {
  margin-bottom: 0;
}

.direct-chat-messages {
  height: 300px;
  overflow-y: auto;
  padding: 10px;
}

.direct-chat-contacts {
  padding: 10px;
  border-top: 1px solid #f4f4f4;
}

/* 타임라인 스타일 */
.timeline {
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #ddd;
  left: 31px;
  margin: 0;
  border-radius: 2px;
}

/* 테이블 스타일 */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  margin-bottom: 1rem;
  background-color: transparent;
}

.table th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
}

.table td, .table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table-hover tbody tr:hover {
  background-color: rgba(0,0,0,.075);
}

/* 버튼 스타일 */
.btn-tool {
  float: right;
  margin-right: -.5rem;
  color: #6c757d;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
  background-color: transparent;
  border: 0;
}

.btn-tool:hover {
  color: #343a40;
  background-color: rgba(0,0,0,.075);
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
    margin-top: 0;
  }

  .navbar-brand {
    height: 60px;
  }

  .navbar-brand img {
    height: 35px;
  }

  .navbar-brand span {
    font-size: 1.1rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .navbar {
    height: 60px;
  }

  .navbar-collapse {
    background-color: #fff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .card {
    margin-bottom: 1rem;
  }

  .service-card {
    margin-bottom: 1rem;
  }

  .footer .btn-outline-primary {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-section {
    padding: 40px 0 30px;
    margin-top: 0;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-section p {
    font-size: 1rem;
    margin-top: 0;
  }

  .carousel-item img {
    height: 200px;
    object-fit: cover;
  }

  h2.text-center {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 769px) {
  .navbar {
    min-height: 56px;
  }
  .navbar-collapse {
    display: flex;
    height: auto;
    position: static;
    background-color: transparent;
    box-shadow: none;
  }
  .container {
    margin-top: 20px;
  }
  .hero-section {
    padding: 4rem 0;
    margin-top: 0;
  }
  .service-shortcuts .service-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
  .service-shortcuts i {
    font-size: 2.5rem;
  }
  .service-shortcuts p {
    font-size: 1rem;
  }
  h2.text-center {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

/* Portfolio Section (카드형) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.portfolio-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-content {
  padding: 15px;
  text-align: center;
}

.portfolio-content h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333333;
}

.portfolio-content p {
  font-size: 0.9rem;
  color: #666666;
  margin: 0;
}

/* 모바일 반응형 조정 */
@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-card img {
    height: 150px;
  }
}

/* Banner Section */
.banner-section img {
  height: 25px;
  object-fit: contain;
  margin: 10px 0;
}

/* 미디어 쿼리 */
@media (min-width: 576px) {
  .banner-section img {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .banner-section img {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .banner-section img {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .banner-section img {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .banner-section img {
    max-width: 1320px;
  }
}

/* 모바일 최적화 스타일 */
@media (max-width: 768px) {
  /* 컨테이너 및 기본 레이아웃 */
  .container {
    padding: 10px;
    width: 100%;
    max-width: 100%;
  }

  /* 카드 헤더 */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .card-tools {
    margin-top: 0.5rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  /* 테이블 반응형 처리 */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table th, .table td {
    white-space: nowrap;
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  /* 탭 네비게이션 */
  .nav-tabs-custom {
    margin-bottom: 15px;
  }

  .nav-tabs-custom > .nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border-bottom: 1px solid #f4f4f4;
  }

  .nav-tabs-custom > .nav-tabs > li {
    flex: 0 0 auto;
    margin-right: 0;
    border-top: none;
    border-bottom: 3px solid transparent;
  }

  .nav-tabs-custom > .nav-tabs > li > a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* 채팅 인터페이스 */
  .direct-chat {
    margin-bottom: 15px;
  }

  .direct-chat-messages {
    height: 250px;
    padding: 5px;
  }

  .direct-chat-contacts {
    padding: 5px;
  }

  /* 폼 요소 */
  .form-control {
    font-size: 16px; /* iOS에서 줌 방지 */
    padding: 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* 모달 */
  .modal-dialog {
    margin: 0;
    width: 100%;
  }

  .modal-content {
    border-radius: 0;
  }

  /* 타임라인 */
  .timeline {
    margin-left: 20px;
  }

  .timeline:before {
    left: 15px;
  }

  /* 상태 뱃지 */
  .badge {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  /* 검색 필터 */
  .search-filter-section {
    flex-direction: column;
  }

  .search-filter-section .form-group {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* 페이지네이션 */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pagination .page-item {
    margin-bottom: 0.5rem;
  }
}

/* 작은 모바일 기기 (576px 이하) */
@media (max-width: 576px) {
  .card-body {
    padding: 1rem;
  }

  .table th, .table td {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .direct-chat-messages {
    padding: 0.5rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .navbar-brand span {
    font-size: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  .container {
    padding: 5px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section p {
    font-size: 0.9rem;
  }
}

/* 서비스 요청 카드 스타일 */
.service-requests-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.service-request-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-request-card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.service-request-header {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
}

.service-basic-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.service-basic-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.service-actions {
  display: flex;
  gap: 10px;
}

.service-request-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.service-request-card.active .service-request-body {
  max-height: 1000px;
}

.service-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 15px;
  background: #fff;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.info-item i {
  color: #1E88E5;
}

.service-details {
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
}

.details-section {
  margin-bottom: 20px;
}

.details-section h5 {
  margin-bottom: 15px;
  color: #333;
  font-size: 1rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 0.9rem;
  color: #666;
}

.detail-value {
  font-weight: 500;
  color: #333;
}

.communication-tabs {
  background: #fff;
  border-radius: 6px;
  padding: 15px;
}

.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.chat-input button {
  padding: 8px 15px;
  background: #1E88E5;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.chat-input button:hover {
  background: #1565C0;
}

/* 상태 뱃지 스타일 */
.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.status-badge.pending {
  background: #fff3e0;
  color: #f57c00;
}

.status-badge.in-progress {
  background: #e3f2fd;
  color: #1976d2;
}

.status-badge.completed {
  background: #e8f5e9;
  color: #388e3c;
}

.status-badge.cancelled {
  background: #ffebee;
  color: #d32f2f;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .service-request-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .service-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .service-info-grid {
    grid-template-columns: 1fr;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
}

/* 모달 스타일 */
.modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.modal-body {
  padding: 1.5rem;
}

/* 채팅 인터페이스 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.chat-input {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid #ddd;
}

/* 타임라인 */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #ddd;
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #007bff;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .service-request-card .service-actions {
    flex-direction: column;
  }

  .service-request-card .btn {
    width: 100%;
    justify-content: center;
  }

  .timeline::before {
    left: 0;
  }

  .timeline-item {
    padding-left: 2rem;
  }
}

/* 추가 견적 테이블 */
.table-responsive {
  margin-bottom: 1rem;
}

.table th {
  background-color: #f8f9fa;
}

/* 추가 요청 폼 */
.additional-request-form {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
}

/* 상태 뱃지 */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 600;
}

.badge-warning {
  background-color: #ffc107;
  color: #000;
}

.badge-info {
  background-color: #17a2b8;
  color: #fff;
}

.badge-success {
  background-color: #28a745;
  color: #fff;
}

.badge-danger {
  background-color: #dc3545;
  color: #fff;
}

.badge-secondary {
  background-color: #6c757d;
  color: #fff;
}

/* 2025 스타일 사용자 프로필 */
.user-profile-section {
  margin-bottom: 2rem;
}

.profile-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.profile-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  gap: 1.5rem;
}

.profile-image-container {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-image:hover .profile-image-overlay {
  opacity: 1;
}

.upload-btn {
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 5px 10px;
}

.profile-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.profile-actions .btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-info {
  padding: 1.5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.info-value {
  font-size: 1rem;
  color: #212529;
  font-weight: 600;
}

/* 비밀번호 변경 모달 */
.password-change-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.password-change-modal.active {
  display: flex;
}

.password-change-content {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
}

.password-change-content h3 {
  margin-bottom: 1.5rem;
  color: #212529;
  font-size: 1.5rem;
  font-weight: 600;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 0.75rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  outline: none;
}

.password-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.password-actions .btn {
  flex: 1;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.password-actions .btn-primary {
  background: #0d6efd;
  border: none;
}

.password-actions .btn-primary:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
}

.password-actions .btn-secondary {
  background: #6c757d;
  border: none;
}

.password-actions .btn-secondary:hover {
  background: #5c636a;
  transform: translateY(-2px);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-actions {
    justify-content: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .password-change-content {
    width: 95%;
    padding: 1.5rem;
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.service-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
}

.service-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease;
}

.service-item:hover a {
  background: rgba(255, 255, 255, 0.2);
}

.service-item i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #6D4AFF;
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* 지도 모달 스타일 */
#mapModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#mapModal .modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mapModal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#mapModal .modal-header h3 {
    margin: 0;
    color: #333;
}

#mapModal .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

#mapModal .close-modal:hover {
    color: #333;
}

#mapModal .address-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

#mapModal .address-info p {
    margin: 0;
    color: #666;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    #mapModal .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    #map {
        height: 300px;
    }
}

/* 작업자 통신 스타일 */
.worker-communication {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.communication-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #333;
}

.tab-btn.active {
    color: #0d6efd;
    border-bottom: 2px solid #0d6efd;
}

.tab-pane {
    display: none;
    padding: 1rem;
}

.tab-pane.active {
    display: block;
}

/* 채팅 스타일 */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.message {
    margin-bottom: 1rem;
    max-width: 80%;
}

.message.sent {
    margin-left: auto;
    text-align: right;
}

.message.received {
    margin-right: auto;
}

.message-content {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    display: inline-block;
}

.message.sent .message-content {
    background: #0d6efd;
    color: white;
}

.message.received .message-content {
    background: #e9ecef;
    color: #333;
}

.message-time {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
}

.chat-input button {
    padding: 0.75rem 1.25rem;
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background: #0b5ed7;
}

/* 견적 스타일 */
.estimates-list {
    margin-bottom: 1rem;
}

.estimate-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.estimate-amount {
    font-weight: 600;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.estimate-description {
    color: #666;
    margin-bottom: 0.5rem;
}

.estimate-date {
    font-size: 0.875rem;
    color: #999;
}

/* 타임라인 스타일 */
.updates-timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: #0d6efd;
    border-radius: 50%;
}

.timeline-content {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
}

.update-text {
    margin-bottom: 0.5rem;
}

.update-time {
    font-size: 0.875rem;
    color: #666;
}

/* 추가 요청 스타일 */
.requests-list {
    margin-bottom: 1rem;
}

.request-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.request-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.request-description {
    color: #666;
    margin-bottom: 0.5rem;
}

.request-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.request-status.pending {
    background: #fff3cd;
    color: #856404;
}

.request-status.approved {
    background: #d4edda;
    color: #155724;
}

.request-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.request-date {
    font-size: 0.875rem;
    color: #999;
    margin-top: 0.5rem;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .communication-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }
    
    .chat-messages {
        height: 250px;
    }
    
    .message {
        max-width: 90%;
    }
}

/* SEO 컨텐츠 스타일 */
.seo-content-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.seo-content-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.seo-content-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.seo-content-card:hover {
    transform: translateY(-5px);
}

.seo-content-card h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.seo-content-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.seo-content-card .meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .seo-content-section {
        margin-top: 30px;
    }
}

/* 가이드 페이지 스타일 */
.guide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.guide-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.guide-content h2 {
    color: #34495e;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 0.5rem;
}

.guide-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.detail-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-5px);
}

.detail-card ul {
    list-style-type: none;
    padding-left: 0;
}

.detail-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-card ul li:last-child {
    border-bottom: none;
}

.price-table {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.price-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.process ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.process ol li {
    position: relative;
    padding: 15px 0 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    counter-increment: item;
}

.process ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .guide-content {
        padding: 10px;
    }
    
    .guide-content h1 {
        font-size: 2rem;
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
    }
    
    .detail-card {
        margin-bottom: 15px;
    }
}

.navbar-toggler {
  padding: 0.25rem 0.5rem; /* 패딩 유지 */
}

.navbar-toggler-icon {
  width: 1.2em; /* 아이콘 크기 줄임 */
  height: 1.2em;
}

main {
  flex: 1 0 auto;
  position: relative;
  overflow-x: hidden;
  padding-top: 60px;
}

/* 반응형 디자인 개선 */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1030;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  
  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* 메뉴 열림 시 본문 스크롤 방지 */
  body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
  }

  /* 메뉴 닫힘 시 본문 스크롤 허용 */
  body:not(.menu-open) {
    position: relative;
    overflow-x: hidden;
  }

  .navbar-nav {
    width: 100%;
    text-align: center;
  }

  .nav-item {
    padding: 8px 0;
  }

  .nav-link {
    padding: 10px 15px;
    display: block;
  }
  
  .nav-link::after {
    display: none;
  }
}

/* 모바일 네비게이션 오버레이 */
.navbar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1029;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.navbar-overlay.show {
  display: block;
  opacity: 1;
}

/* 모바일 네비게이션 메뉴 */
@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1030;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    margin-top: 0;
  }

  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-nav {
    width: 100%;
    text-align: center;
  }

  .nav-item {
    padding: 0.5rem 0;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    display: block;
    font-size: 1.1rem;
  }

  .nav-link::after {
    display: none;
  }

  /* 메뉴 열림 시 본문 조정 */
  body.menu-open {
    overflow: hidden;
    padding-top: 70px;
  }

  .hero-section.menu-open {
    padding-top: 70px;
  }

  /* 본문 컨테이너 조정 */
  .container {
    padding-top: 0;
  }

  /* 메뉴 열림 시 본문 스크롤 방지 */
  body.menu-open {
    position: fixed;
    width: 100%;
  }
}

/* 스크린샷 캡처 허용 */
* {
  -webkit-user-select: auto !important;
  -moz-user-select: auto !important;
  -ms-user-select: auto !important;
  user-select: auto !important;
  -webkit-touch-callout: auto !important;
}

/* 하단 네비게이션 고정 및 내용 가림 방지 */
body {
  /* 기존 body 스타일 유지하며 padding-bottom 추가 */
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #FFFFFF;
  color: #333333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 0; /* 기존 값 유지 */
  overflow-x: hidden;
  position: relative;
}

main {
    flex: 1 0 auto; /* 푸터를 하단에 고정시키기 위한 flex 속성 */
}

/* 상단 네비게이션 페이지 제목 스타일 */
#page-title-span {
    font-size: 1.1rem; /* 데스크탑에서 기본값 */
    font-weight: 500;
    color: #333333;
    align-self: center; /* 수직 중앙 정렬 */
}

/* 모바일 뷰에서 상단 네비게이션 페이지 제목 스타일 */
@media (max-width: 767.98px) {
    #page-title-span {
        font-size: 1rem; /* 모바일에서 약간 작게 */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 120px; 
        margin-left: 0.5rem; 
    }

    .navbar-brand img {
        height: 30px; 
    }

    .navbar-toggler {
        margin-left: auto; 
    }
    
    .navbar-brand {
        order: 1;
    }
    #page-title-span {
        order: 2;
    }
    .navbar-toggler-placeholder { 
        order: 3;
    }
    .navbar-toggler {
        order: 4;
    }
     .user-info, #loginButton, #signupButton {
        order: 5; 
    }
}

/* 푸터가 하단 네비게이션 위에 오도록 조정 */
/* footer-placeholder 또는 실제 푸터 요소에 대한 z-index 및 위치 조정이 필요할 수 있음 */
/* 현재는 body padding-bottom으로 처리 */

/* === 모바일 반응형 레이아웃 개선 코드 (2025-06-24 추가) === */
@media (max-width: 768px) {
    /* hero 섹션 텍스트 크기 조정 */
    .hero-section-new h1 {
        font-size: 2rem; /* 모바일에서 제목 폰트 크기 줄임 */
    }

    .hero-section-new p {
        font-size: 1rem; /* 모바일에서 본문 폰트 크기 줄임 */
    }

    /* "특별한 이유" 섹션 카드 레이아웃 강제 수정 */
    .features-section .col-md-4,
    .recent-requests-section .col-md-4,
    .reviews-section .col-md-4 {
        flex: 0 0 100%; /* 한 줄에 하나만 표시되도록 너비 100% 설정 */
        max-width: 100%;
        margin-bottom: 1.5rem; /* 카드 사이의 수직 간격 추가 */
    }

    /* 서비스 바로가기 아이콘 크기 및 간격 조정 */
    .service-shortcuts .col {
        padding: 0 5px; /* 좌우 패딩 줄여서 공간 확보 */
    }

    .service-shortcuts i {
        font-size: 1.5rem; /* 아이콘 크기 줄임 */
    }

    .service-shortcuts p {
        font-size: 0.8rem; /* 텍스트 크기 줄임 */
    }

    /* 포트폴리오 섹션 모바일 레이아웃 */
    .portfolio-grid {
        grid-template-columns: 1fr; /* 한 줄에 하나씩 표시 */
    }
    
    /* 최신 신청/후기 내역 버튼 */
    #more-requests-button,
    #more-reviews-button {
        width: 100%;
        padding: 0.75rem;
    }
}

.user-info, #loginButton, #signupButton {
    padding: .25rem .5rem;
    font-size: .875rem;
}

/* 모바일 뷰에서 상단 네비게이션 페이지 제목 스타일 */
@media (max-width: 991px) { /* LG 브레이크포인트 기준 */
    .navbar > .container {
        position: relative;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 2; /* 중앙 정렬을 위해 순서 변경 */
    }

    .navbar-toggler {
        order: 3; /* 햄버거 버튼을 오른쪽으로 */
    }
    
    /* 왼쪽 공간을 만들기 위한 가상 요소 */
    .navbar > .container::before {
        content: "";
        width: 40px; /* 햄버거 버튼 너비와 유사하게 */
        order: 1;
    }
}

/* Mobile Offcanvas Menu 내부 레이아웃 개선 */
.offcanvas-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.offcanvas-body .navbar-nav {
    flex-grow: 1; /* 메뉴 항목들이 상단 공간을 채우도록 함 */
}

#auth-container-mobile .dropdown-item {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
}

#auth-container-mobile .d-flex {
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}