/* inc/layout.css */
/* header, sidebar, main, dashboard-area 등 공통 스타일만 */
body {
    margin: 0;
    font-family: 'Pretendard', '맑은 고딕', sans-serif;
    /* background: #002327; */
}
.sidebar {
    width: 190px;
    background: #002327;
    min-height: 100vh;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    /* border-radius: 36px 0 0 36px; */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    box-sizing: border-box;
    z-index: 100;
}

.sidebar .sidebar-logo {
    margin-bottom: 100px;
    padding-top: 20px;
}
.sidebar nav {
    width: 100%;
}
.sidebar nav a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 20px;
    /* padding: 8px 0; */
    height: 50px;
    align-items: center;
}
.sidebar nav a.sidebar-link {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    justify-items: center;
    /* align-items: center; */
    column-gap: 0;
    /* text-align: center; */
}
.sidebar-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.sidebar-link-icon.info-icon {
    width: 50%;
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-link-text {
    display: block;
    width: 110%;
    font-size: 0.7rem;
}
.sidebar nav a.sidebar-logo {
    background: transparent;
    cursor: default;
    display: flex;
    flex-direction: column;
}
.sidebar nav a.sidebar-logo:hover {
    background: transparent;
    cursor: default;
}
.sidebar nav a.active, .sidebar nav a:hover {
    background: #2F9EFF;
}

.sidebar .logout {
    margin-top: auto;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    gap: 6px;
}
.sidebar .logout .icon {
    width: 26px; height: 26px;
    background: #fff;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}
.layout-wrap {
    /* min-height: 82vh; */
    background: #FFFFFF;
    border-radius: 10px;
    margin: 70px 70px 150px 230px;
    /* 왼쪽에 sidebar 공간만큼 띄움 */
    box-sizing: border-box;
    /* box-shadow: 0 0 0 8px #002327; */
    position: relative;
    /* overflow: hidden; */
}
/* 광고주 뷰: 햄버거 버튼 (데스크톱에서는 숨김) */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: #002327;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.header-hamburger:hover {
    background: #103b3b;
}
.header-hamburger .hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* 광고주 뷰: 모바일 사이드바 열었을 때 배경 딤 */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    cursor: pointer;
}
body.sidebar-open .sidebar-overlay {
    display: block;
}

.header {
    background: #FFFFFF;
    color: #222;
    margin: 70px 70px 0 230px;
    padding: 4px 40px 4px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-radius: 10px; */
    min-height: 62px;
    box-shadow: 0 8px 24px 0 rgba(60,60,60,0.10);
    position: relative;
    /* z-index: 50; */
}
.logo {
    font-size: 1.25rem;
    font-weight: bold;
    background: #fff;
    border-radius: 14px;
    padding: 8px 20px;
    display: inline-block;
    box-shadow: none;
}
.logo.red {
    background: #BE2527;
    color: #fff;
    margin-left: 6px;
}
.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}
.header-left {
    gap: 14px;
}
.header-right {
    margin-left: auto;
    justify-content: flex-end;
}
.profile-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.user-info {
    font-size: 1.1rem;
    color: #222;
    font-weight: 700;
}
.account-info,
.balance-info {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.account-info {
    font-size: 1.05rem;
    padding-left: 10px;
}
.balance-info {
    font-weight: 700;
    font-size: 1.05rem;
}
.account-name {
    font-weight: normal;
}
.balance-amount {
    font-weight: normal;
}
.charge-btn {
    background: #273CA8;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 40px;
    font-weight: bold;
    font-size: 0.98rem;
    margin-left: 0;
    cursor: pointer;
}
.profile {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #d24d1b;
    margin-left: 0;
    border: 2px solid #fff;
}
.main {
    /* sidebar 공간만큼 margin-left 제거 */
    padding: 0 0 0 0;
    /* min-height: 100vh; */
    border-radius: 0 0 44px 44px;
    
}
.main-inner {
    /* max-width: 1520px; */
    margin: 0 auto;
    padding: 10px 0 0 0;
    /* margin: 24px 60px 0 60px; */
}
.dashboard-area {
    /* width: 80%; */
    background: #FFFFFF;
    /* border-radius: 10px; */
    box-shadow: 0 8px 24px 0 rgba(60,60,60,0.10);
    padding: 40px 52px 40px 30px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    justify-content: space-between;
    align-items: stretch;
    min-height: 440px;
}
.dashboard-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dashboard-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-left: 10px;
    margin-bottom: 60px;
}
.dashboard-grid-first {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.dashboard-grid-second {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-template-rows: 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.dashboard-grid-third {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    grid-template-rows: 1fr;
    gap: 16px;
}

.dashboard-card {
    
    background: #F9F8F5;
    /* border-radius: 10px; */
    /* box-shadow: 8px 8px 20px 0 rgba(60,60,60,0.22); */
    padding: 16px 10px 7px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* min-width: 210px; */
    min-height: 90px;
    justify-content: center;
    border: none;
}
.dashboard-card.dashboard-card-second {
    /* min-height: 250px; */
    height: 290px;
}
.dashboard-card.dashboard-card-third {
    align-items: center;
    background: #FFFFFF;
    box-shadow: 0px 0px 0px 0px;
    padding: 0;
}

.dashboard-card .btn {
    background: #002060;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.8rem;
    cursor: pointer;
}

.dashboard-card .label {
    color: #222;
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.dashboard-card-second-today-spent{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
}

.dashboard-card-second-today-spent .label {
    font-size: 1.28rem;
    margin-top: -55px;
}

.dashboard-card-second-today-spent .value {
    font-size: 1.90rem !important;
    color: #102F60;
}

.dashboard-card.dashboard-card-second .dashboard-card-second-label {
    color: #222;
    font-size: 1rem;
    margin-bottom: 0px;
    margin-left: 30px;
    margin-top: 30px;
}

.dashboard-card .value {
    font-size: 1rem;
    font-weight: bold;
}
.graph-value {
    width: 100%;
    font-size: 1rem;
    font-weight: normal;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.retarget-legend {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #222;
    flex-direction: column;
    /* align-items: flex-end; */
    margin-left: 170%;
    /* margin-right: 100px; */
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
.legend-dot-pc {
    background: #102f60;
}
.legend-dot-mo {
    background: #9c9c9c;
}
#retargetGraphContainer {
    width: 100%;
    align-items: center;
}
#retargetGraphCanvas {
    width: 100%;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#retargetGraphCanvas svg {
    width: 100%;
    height: 100%;
}
.retarget-section {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    border-left: 2px solid #e0dfd7;
    padding-left: 48px;
}
.retarget-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 28px;
    text-align: center;
}
.retarget-box {
    display: none;
}

.monthly-chart-card {
    background: #F9F8F5;
    /* border-radius: 18px; */
    /* box-shadow: 8px 8px 20px 0 rgba(60,60,60,0.18); */
    padding: 28px 32px;
    width: 100%;
    box-sizing: border-box;
    min-height: 330px;
    margin-top: 20px;
}

.monthly-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.monthly-chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f1f1f;
}

.monthly-chart-select select {
    border: 1px solid #c7c7c7;
    border-radius: 8px;
    padding: 6px 28px 6px 12px;
    font-size: 0.95rem;
    background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    appearance: none;
    -webkit-appearance: none;
    min-width: 120px;
}

.monthly-chart-frame {
    /* border: 2px solid #1f6fff; */
    /* border-radius: 18px; */
    background: #fff;
    padding: 24px 18px 16px;
    min-height: 240px;
    display: flex;
    align-items: flex-end;
}

.monthly-chart-bars {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.monthly-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bar-column {
    width: 70%;
    max-width: 80px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.bar-fill {
    width: 80%;
    min-width: 48px;
    background: #d0d5de;
    border-radius: 10px 10px 10px 10px;
    transition: height 0.35s ease, background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.monthly-chart-bar.is-active .bar-fill {
    background: #0f2f60;
    box-shadow: 0 10px 18px rgba(15,47,96,0.35);
    transform: translateY(-3px);
}

.bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #222;
    min-height: 22px;
}

.bar-label {
    font-size: 0.85rem;
    color: #333;
    min-height: 18px;
}

.monthly-chart-empty {
    width: 100%;
    text-align: center;
    color: #7a7a7a;
    font-size: 0.95rem;
    padding: 30px 0;
}

.main-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.18rem;
    font-weight: bold;
    color: #222;
    margin: 50px 0 0 0;
    padding-left: 82px;
}
/* 1000px 이하: 사이드바 드로어(기본 숨김) + 햄버거, 본문 가리지 않음 */
@media (max-width: 1000px) {
    .header-hamburger { display: flex !important; }
    .header {
        border-radius: 0;
        padding: 18px 16px;
        width: auto;
        max-width: none;
        margin: 70px 16px 0 16px;
    }
    .layout-wrap {
        margin: 70px 16px 150px 16px;
        border-radius: 0;
    }
    .main-inner { margin-top: 12px; }
    .sidebar {
        border-radius: 0;
        width: 260px;
        max-width: 85vw;
        left: 0;
        transition: transform 0.25s ease-out;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transform: translateX(-100%) !important;
    }
    body.sidebar-open .sidebar {
        transform: translateX(0) !important;
    }
    .main { border-radius: 0; }
    .dashboard-area { flex-direction: column; gap: 24px; padding: 16px 4px; min-height: 0; }
    .retarget-section { align-items: stretch; }
    .retarget-box { min-width: 0; max-width: none; min-height: 0; }
}

.sidebar-icon {
    width: 25px; height: 25px;
}
.sidebar-icon.info-icon {
    width: 12px;
    height: 12px;
}
.sidebar-icon-alpham-logo {
    width: 30px;
    height: auto;
    margin-bottom: 10px;
}
.sidebar-brand-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.1 ;
}
.sidebar-brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.sidebar-brand-subtitle {
    font-size: 0.42rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    /* padding-top: 20px; */
}
.sidebar-icon-small {
    width: 25px; height: 25px;
}
.footer-container {
    /* margin-top: 20px; */
    /* margin-bottom: 20px; */
    padding: 30px 0;
    margin-left: 190px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.8rem;
    color: #808080;    
}
.footer-contact-row {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* 이미지와 텍스트 사이 간격 */
    padding-bottom: 20px;
}
.contact-icon {
    height: 30px; /* 필요시 조정 */
    vertical-align: middle;
    display: inline-block;
}


.start-icon {
    width: 30px; height: 30px; /* 필요시 조정 */
    display: inline-block;
    vertical-align: middle;
}

/* 버킷 생성 폼 스타일 */
.bucket-create-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  
}

.bucket-create-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 28px 24px 24px 24px;
  min-width: 400px;
  max-width: 440px;
  margin: 0 auto;
}

.bucket-icon-section {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
  margin-top: 28px;
}

.bucket-icon {
  width: 56px;
  height: 56px;
}

.bucket-create-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-content.account-info-form .form-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: start;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    
}
.signup-container .form-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: start;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.section-content.product-feed-form .form-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: start;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
    min-height: 40px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
    height: 129px;
}

.form-row-period {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-row-period .form-label {
  align-self: flex-start;
  text-align: left;
}

.form-label {
  font-weight: 600;
  font-size: 0.95em;
  color: #222;
  padding-top: 6px;
}

.bucket-create-container .form-label.period-label {
    display: inline-block;
    flex: none;
    align-items: initial;
}

.period-container {
  border-radius: 44px;
  padding: 16px 14px 12px 14px;
  border: 1px solid #e0e0e0;
}

.period-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.period-row:last-of-type {
  margin-bottom: 6px;
}

.period-label {
  width: 50px;
  color: #444;
  font-size: 0.9em;
  font-weight: 500;
}

.period-date {
  width: 120px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  font-family: inherit;
}

.period-hour {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  text-align: center;
  background: white;
  cursor: pointer;
}

.period-hour:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.period-checkbox {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  margin-right: 18px;
}

.period-checkbox label {
  font-size: 0.85em;
  color: #666;
  cursor: pointer;
}

.period-checkbox input[type="checkbox"] {
  margin-right: 4px;
}

.save-button {
  width: 160px;
  margin: 20px auto 0 auto;
  padding: 10px 0;
  background: #002060;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: bold;
  cursor: not-allowed;
  transition: background 0.2s;
  letter-spacing: 1px;
  opacity: 0.8;
}

.save-button:hover:not(:disabled) {
  background: #2196f3;
  cursor: pointer;
  opacity: 1;
}

/* STEP 페이지 스타일 */
.step-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  padding: 20px;
}

.step-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 64px 40px 64px 40px;
  min-width: 400px;
  max-width: 460px;
  min-height: 460px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-header {
  margin-bottom: 32px;
}

.step-title {
  font-size: 2.2em;
  font-weight: bold;
  color: #333;
  margin: 0;
  letter-spacing: 2px;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.step-description {
  font-size: 1.1em;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

.step-button-container {
  display: flex;
  padding-top: 48px;
  justify-content: center;
  align-items: center;
}

.step-add-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #2196f3;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-add-button:hover {
  background: #1976d2;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

.plus-icon {
  font-size: 3em;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

/* 버킷 대시보드 스타일 */
.bucket-dashboard {
  display: flex;
  gap: 20px;
  height: calc(100vh - 335px);
  min-height: 800px;
  padding: 40px 52px 40px 30px;
  box-shadow: 0 8px 24px 0 rgba(60,60,60,0.10)
}

.bucket-list-section {
  flex: 0 0 350px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  /* max-height: 600px; */
}

.campaign-report-section {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: visible; /* 가로 스크롤을 위해 overflow 설정 */
  min-width: 0; /* flex 아이템의 최소 너비 제한 해제 */
  position: relative; /* z-index 적용을 위한 position */
}

.section-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.history-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-filter-row .history-method-select {
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.btn-create, .btn-primary {
  background: #2F9EFF;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-create:hover, .btn-primary:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background: #545b62;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-search {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  width: 200px;
  outline: none;
}

.campaign-search:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.bucket-list {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.bucket-item {
  padding: 20px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
}

.bucket-item.default {
  background: #f8f9fa;
  
}

.bucket-item:hover {
  /* background: #f8f9fa; */
  background: #EFF7FF;
}

.bucket-item.active {
  background: #e3f2fd;
  border-left: 4px solid #007bff;
}

.bucket-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #007bff;
}

.bucket-name {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.bucket-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bucket-title-clickable {
  cursor: pointer;
  color: #273CA8;
  font-weight: 600;
  transition: color 0.2s, text-decoration 0.2s;
}
.bucket-title-clickable:hover {
  color: #16227d;
  text-decoration: underline;
}

.bucket-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
}

.bucket-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.bucket-status.active {
  background: #d4edda;
  color: #155724;
}

.bucket-status.inactive {
  background: #f8d7da;
  color: #721c24;
}

.bucket-period {
  font-size: 12px;
  color: #888;
  line-height: 1.3;
}

.bucket-icon-small {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  opacity: 0.8;
}

.campaign-report {
  flex: 1;
  overflow-y: auto; /* 세로 스크롤 추가 */
  overflow-x: visible; /* 가로 스크롤 유지 */
  padding: 20px;
  max-height: calc(100vh - 200px); /* 화면 높이에 맞게 조정 */
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #666;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.bucket-loading {
  padding: 40px 20px;
  text-align: center;
  color: #666;
}

.campaign-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
}

.summary-card .label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.summary-card .value {
  font-size: 24px;
  font-weight: 700;
  color: #333;
}

.campaign-list {
  background: #fff;
}

.campaign-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 16px;
}

.campaign-table th,
.campaign-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.campaign-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.campaign-table td {
  color: #666;
}

.campaign-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.campaign-status.on {
  background: #d4edda;
  color: #155724;
}

.campaign-status.off {
  background: #f8d7da;
  color: #721c24;
}

/* 캠페인 이동 모달 스타일 */
.campaign-move-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.modal-close:hover {
  background: #f5f5f5;
}

.modal-body {
  padding: 24px;
}

.modal-body p {
  margin: 0 0 16px 0;
  color: #666;
}

.modal-body label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.target-bucket-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  outline: none;
}

.target-bucket-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1024px) {
  .bucket-dashboard {
    flex-direction: column;
    height: auto;
    padding: 0 20px 20px 20px;
  }
  
  .bucket-list-section {
    flex: none;
    /* height: 300px; */
  }
  
  .campaign-report-section {
    min-height: 400px;
  }
  
  .report-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .campaign-search {
    width: 150px;
  }
}

/* 캠페인 생성 페이지 스타일 */
.campaign-create-container {
  display: flex;
  gap: 24px;
  /* padding: 0 40px 40px 40px; */
  min-height: 600px;
}

.campaign-left-section {
  flex: 0 0 350px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campaign-right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.campaign-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.section-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.section-status.completed {
  background: #d4edda;
  color: #155724;
}

.section-status.pending {
  background: #f8d7da;
  color: #721c24;
}

.section-status.disabled {
  background: #e9ecef;
  color: #6c757d;
}

.campaign-section.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.campaign-section.disabled .section-content {
  background-color: #f8f9fa;
}

.section-content {
  padding: 18px;
}


/* 버킷 정보와 캠페인 정보 섹션 높이 증가 */
.campaign-left-section .section-content {
  padding: 24px 20px;
  min-height: 120px;
}



.form-row.no-margin-bottom {
  margin-bottom: 0;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-label {
  flex: 0 0 80px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 1;
}


.form-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  outline: none;
  height: 40px;
  align-self: center;
}

.form-select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-text {
  flex: 1;
  color: #666;
  font-size: 12px;
  display: flex;
  align-items: center;
  align-self: center;
  line-height: 1.4;
}

.checkbox-group {
  flex: 1;
  display: flex;
  gap: 16px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  align-items: center;
  min-height: 40px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  
  color: #333;
  cursor: pointer;
  white-space: nowrap;
}

.radio-item input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

.form-description {
  font-size: 12px;
  color: #666;
  margin: 0 0 0 80px;
  line-height: 1.4;
}

.form-description.retargeting-description {
  color: #dc3545;
}

.input-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-message {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  display: none;
}

.form-input.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

/* 소재 등록 페이지 스타일 */
.material-create-container {
  display: flex;
  gap: 20px;
  /* height: calc(100vh - 300px); */
  min-height: 500px;
  /* padding: 0 40px 40px 40px; */
}

.material-left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.material-right-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.material-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.required {
  color: #dc3545;
}

/* 이미지 업로드 영역 */
.image-upload-area {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  background: #fafafa;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-upload-area:hover {
  border-color: #1976d2;
  background: #f0f7ff;
}

.image-upload-area.dragover {
  border-color: #1976d2;
  background: #e3f2fd;
}

.upload-icon {
  color: #999;
  margin-bottom: 16px;
}

.upload-text {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.upload-button {
  background: #1976d2;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.upload-button:hover {
  background: #1256a3;
}

/* 이미지 미리보기 */
.image-preview-container {
  margin-top: 20px;
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px;
  background: #fafafa;
  min-height: 200px;
}

.image-preview-container h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  position: sticky;
  top: 0;
  background: #fafafa;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  z-index: 1;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  padding-bottom: 16px;
  min-height: 150px;
}

.image-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: box-shadow 0.2s;
}

.image-preview-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.image-preview-item img {
  max-width: 100px;
  max-height: 100px;
  border-radius: 4px;
  border: 1px solid #ddd;
  margin-bottom: 8px;
  object-fit: cover;
}

.slot-number-badge {
    position: absolute; top: 6px; left: 6px; z-index: 2;
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 13px; font-weight: 700; line-height: 24px; text-align: center;
}

.image-size-info {
  font-size: 12px;
  text-align: center;
  color: #666;
}

.image-size-info.error {
  color: #dc3545;
  font-weight: bold;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-file-name {
    margin-top: 4px;
    font-size: 12px;
    text-align: center;
    color: #333;
    word-break: break-all;
}

/* 가이드 테이블 */
.guide-table {
  margin-bottom: 20px;
}

.guide-table-content {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.guide-table-content th,
.guide-table-content td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: center;
}

.guide-table-content th {
  background: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.guide-table-content td {
  color: #666;
}

.guide-table-content td {
  vertical-align: middle;
  text-align: center;
}

.guide-notes {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.guide-notes p {
  margin: 0 0 8px 0;
}

/* 저장 버튼 */
.material-save-button {
  background: #1976d2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.material-save-button:hover:not(.disabled) {
  background: #B4C7E7;
  color: #666;
}

.material-save-button.disabled {
  background: #B4C7E7;
  color: #666;
  cursor: not-allowed;
}

/* 휴지통 섹션 */
.trash-section {
  margin-top: auto;
  padding: 20px;
  
  display: flex;
  justify-content: center;
  align-items: center;
}

.trash-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
}

.trash-icon:hover {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: scale(1.05);
}

.trash-icon img {
  width: 24px;
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.trash-icon:hover img {
  opacity: 0.8;
}

/* 휴지통 모달 스타일 */
.trash-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.trash-modal-content {
  max-width: 600px;
  width: 90%;
}

.trash-instruction {
  margin: 0 0 20px 0;
  font-size: 16px;
  color: #333;
  text-align: center;
}

.trash-bucket-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}

.trash-bucket-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.trash-bucket-item:last-child {
  border-bottom: none;
}

.trash-bucket-item:hover {
  background: #f8f9fa;
}

.trash-bucket-item.selected {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
}

.trash-bucket-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trash-bucket-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.trash-bucket-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.trash-bucket-status.active {
  background: #d4edda;
  color: #155724;
}

.trash-bucket-status.inactive {
  background: #f8d7da;
  color: #721c24;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.btn-danger:hover:not(:disabled) {
  background: #c82333;
}

.btn-danger:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.input-with-unit {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.input-with-unit .form-input {
  flex: 1;
}

.input-unit {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

.input-with-unit .unit {
  font-size: 14px;
  color: #666;
  min-width: 36px;
  text-align: right;
}

.budget-weekly {
  margin-left: 12px;
  white-space: nowrap;
}

.weekly-budget-table {
  flex: 1;
  margin-top: 8px;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.budget-table th,
.budget-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.budget-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 13px;
}

.budget-table td {
  font-size: 14px;
}

.budget-table tr:last-child td {
  border-bottom: none;
}

.budget-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  text-align: right;
}

.budget-input:focus {
  border-color: #007bff;
  outline: none;
}

/* 아코디언 스타일 */
.accordion-section {
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #f8f9fa;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s;
}

.accordion-header:hover {
  background-color: #e9ecef;
}

.accordion-header.active {
  background-color: #e3f2fd;
}

.accordion-icon {
  margin-right: 8px;
  font-size: 12px;
  color: #666;
  transition: transform 0.2s;
}

.accordion-title {
  font-weight: 600;
  color: #333;
  flex: 1;
}

.accordion-badges {
  display: flex;
  gap: 6px;
}

.badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  color: white;
}

.badge-male {
  background-color: #2196f3;
}

.badge-female {
  background-color: #e91e63;
}

.badge-age {
  background-color: #ff9800;
}

.badge-more {
  background-color: #9e9e9e;
}

.badge-targeting {
  background-color: #673ab7;
}

.badge-frequency {
  background-color: #00bcd4;
}

.badge-success {
  background-color: #28a745;
}

.badge-pending {
  background-color: #ff9800;
}

.badge-failed,
.badge-cancelled,
.badge-error {
  background-color: #dc3545;
}

.accordion-content {
  background-color: white;
}

.accordion-inner {
  padding: 16px 16px 0px 16px;
}

/* 인구통계 테이블 */
.demographic-table {
  width: 100%;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.demo-table th {
  background-color: #f0f8ff;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.demo-table td {
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid #eee;
}

.demo-table .checkbox-item {
  display: block;
  margin-bottom: 8px;
}

.gender-column {
  width: 30%;
  vertical-align: top;
  text-align: center;
}
#demographicAccordion > div > div > table > thead > tr > th:nth-child(2) {
  border-left: 1px solid #ddd;
}
.age-column {
  width: 70%;
  vertical-align: middle;
  text-align: center;
  border-left: 1px solid #ddd;
}

.gender-column .radio-item {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.age-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px 16px;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
}

.age-grid .checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 0;
}

.age-grid .age-none {
  grid-column: 1 / -1;
  justify-self: center;
  
  width: fit-content;
  margin: 0 auto;
}

/* 타게팅 옵션 */
.targeting-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.targeting-option {
    position: relative;
    align-content: center;
    height: 60px;
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 48px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
    text-align: center;
}

.targeting-option:hover {
  border-color: #2196f3;
  background-color: #f8f9ff;
}

.targeting-option.selected {
  border-color: #2196f3;
  background-color: #e3f2fd;
}

.targeting-content {
  padding-top: 0;
}

.targeting-content h4 {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.targeting-content p {
  margin: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  background-color: #f5f5f5;
  color: #999;
  border: 1px solid #ddd;
}

.status-badge.active {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
}

.badge-schedule {
  background-color: #ff5722;
}

/* 유저 프리퀀시 스타일 */
.frequency-settings {
  padding: 16px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin-bottom: 16px;
}

.frequency-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.frequency-label {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.frequency-select {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
  min-width: 60px;
}

.frequency-option {
  margin-bottom: 12px;
}

.frequency-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.schedule-option {
  margin-bottom: 12px;
}

.schedule-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

/* 스케줄링 테이블 스타일 */
.schedule-container {
  width: 100%;
  overflow-x: auto;
}

.schedule-table-container {
  /* max-height: 800px; */
  /* height: 520px; */
  /* overflow: auto; */
  border: 1px solid #ddd;
  border-radius: 4px;
}

.schedule-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  background: white;
}

.schedule-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.day-header,
.time-header {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  text-align: center;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 2;
}

.time-header {
  width: 100px;
  position: sticky;
  left: 0;
  z-index: 3;
}

.select-all-header {
  cursor: pointer;
  transition: background-color 0.2s;
}

.select-all-header:hover {
  background-color: #e3f2fd !important;
}

.day-header {
  width: 100px;
}

.time-label {
  width: 100px;
  padding: 4px 8px;
  font-size: 11px;
  color: #666;
  text-align: center;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  position: sticky;
  left: 0;
  z-index: 1;
}

.schedule-cell {
  width: 100px;
  height: 34px;
  padding: 2px;
  text-align: center;
  border: 1px solid #eee;
}

.schedule-slot {
  display: block;
  width: 100%;
  height: 24px;
  background-color: #e0e0e0;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #ccc;
}

.schedule-table input[type="checkbox"] {
  display: none;
}

.schedule-table input[type="checkbox"]:checked + .schedule-slot {
  background-color: #2196f3;
  border-color: #2196f3;
}
.day-header,
.time-label {
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.day-header:hover,
.time-label:hover {
  background-color: #e3f2fd;
  color: #1a73e8;
}

.schedule-slot:hover {
  background-color: #90caf9;
  border-color: #2196f3;
}

.schedule-slot.dragging {
  background-color: #90caf9;
  border-color: #2196f3;
}

/* 비활성화된 스케줄 슬롯 */
.schedule-slot:disabled,
.schedule-slot.disabled {
  background-color: #f5f5f5 !important;
  border-color: #ddd !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
}

.schedule-slot:disabled:hover,
.schedule-slot.disabled:hover {
  background-color: #f5f5f5 !important;
  border-color: #ddd !important;
}

.placeholder-text {
  color: #999;
  font-style: italic;
  text-align: center;
  padding: 40px 0;
  margin: 0;
}

@media (max-width: 1024px) {
  .campaign-create-container {
    flex-direction: column;
    padding: 0 20px 20px 20px;
  }
  
  .campaign-left-section {
    flex: none;
  }
  
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .form-label {
    flex: none;
  }
  
  
  .checkbox-group {
    width: 100%;
  }
}

/* 저장 버튼 스타일 */
.save-button-container {
  text-align: center;
  padding: 12px 0;
}

.campaign-save-button {
  background: #002060;
  color: white;
  border: none;
  padding: 16px 48px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 32, 96, 0.3);
}

.campaign-cancel-button {
  background: #002060;
  color: white;
  border: none;
  padding: 16px 48px;
  margin-right: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 32, 96, 0.3);
}
.campaign-cancel-button:hover {
  background: #001040;
  transform: none;
}

.campaign-save-button:hover:not(:disabled) {
  background: #001040;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 32, 96, 0.4);
}

.campaign-save-button:disabled,
.campaign-save-button.disabled {
  background: #B4C7E7;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.campaign-save-button.disabled:hover {
  background: #B4C7E7;
  transform: none;
}


/* 버킷 상태 스타일 */
.bucket-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.bucket-status:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bucket-status.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bucket-status.active:hover {
    background-color: #c3e6cb;
}

.bucket-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.bucket-status.inactive:hover {
    background-color: #f5c6cb;
}

/* 소재 리스트 페이지 스타일 */

.material-dashboard {
    background: #fff;
    border-radius: 12px;
    padding: 40px 52px 40px 30px;
    box-shadow: 0 8px 24px 0 rgba(60,60,60,0.10);
    overflow: hidden;
}

.material-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.actions-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.actions-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.campaign-filter {
    padding: 8px 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    outline: none;
    min-width: 150px;
}

.campaign-filter:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.status-toggle {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.btn-status {
    padding: 8px 16px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid #ddd;
    width: 70px;
}

.btn-status:last-child {
    border-right: none;
}

#statusOn {
    background: #2ecc71;
    color: #ffffff;
}

#statusOn:hover,
#statusOn.active {
    background: #27ae60;
    color: #ffffff;
}

#statusOff {
    background: #ffd6e6;
    color: #c2185b;
}

#statusOff:hover,
#statusOff.active {
    background: #ffb3d0;
    color: #9c0d47;
}

.btn-status:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.material-table-container {
    overflow-x: auto;
}

.material-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.material-table th,
.material-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.material-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.material-table tbody tr:hover {
    background: #f8f9fa;
}

/* colspan이 적용된 td는 전체 너비를 차지하고 가운데 정렬 */
.material-table td[colspan] {
    text-align: center !important;
    width: 100%;
    display: table-cell;
}

/* material-table 내부의 empty-state는 colspan이 적용된 td 전체에 가운데 정렬 */
.material-table td.empty-state,
.material-table td[colspan].empty-state {
    text-align: center !important;
    width: 100% !important;
    /* padding: 60px 20px !important; */
    display: table-cell !important;
}

.material-table td.empty-state p,
.material-table td[colspan].empty-state p {
    text-align: center !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100%;
}

/* 이미지 컬럼 가운데 정렬 (4번째 컬럼) */
.material-table td:nth-child(4),
.material-table th:nth-child(4) {
    text-align: center !important;
}

/* 이미지 컨테이너를 td 내에서 가운데 정렬 */
.material-table td:nth-child(4) {
    text-align: center !important;
}

.material-table td:nth-child(4) .material-image-container {
    margin: 0 auto;
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.material-empty-cell {
    padding: 0;
}
.material-empty-box {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}
.material-empty-box p {
    margin: 0;
}

.material-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    min-width: 40px;
    text-align: center;
}

.material-status:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.material-status.active {
    background: #28a745;
    color: white;
}

.material-status.inactive {
    background: #dc3545;
    color: white;
}


.link-icon {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    cursor: pointer;
}

.link-icon:hover {
    color: #0056b3;
}

/* 커스텀 툴팁 스타일 */
.link-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    max-width: 300px;
    word-break: break-all;
    white-space: normal;
    width: max-content;
    min-width: 100px;
}

.link-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 1000;
}
.approval-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.approval-1 {
    background: #d4edda;
    color: #155724;
}

.approval-2 {
    background: #fff3cd;
    color: #856404;
}

.approval-3 {
    background: #f8d7da;
    color: #721c24;
}

.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}


.loading-spinner {
    font-size: 16px;
}

.empty-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p,
.error-state p {
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* 이미지 컨테이너 안정화 */
.material-image-container {
    width: 60px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.material-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

.no-image-placeholder {
    width: 60px;
    height: 40px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #666;
    text-align: center;
    line-height: 1.2;
}
.material-image-multi .material-image-multi-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    max-width: 80px;
    align-items: flex-start;
    justify-content: center;
}
        .material-image-multi .material-image-multi-grid img { width: 20px; height: auto; max-height: 44px; object-fit: cover; display: block; }
/* 소재 리스트 반응형 디자인 */

@media (max-width: 1024px) {
    .material-dashboard {
        margin: 0 20px 20px 20px;
    }
    
    .material-actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .actions-left,
    .actions-right {
        justify-content: center;
    }
    
    .material-table {
        font-size: 12px;
    }
    
    .material-table th,
    .material-table td {
        padding: 8px 12px;
    }
    
    .material-image {
        width: 40px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .actions-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .campaign-filter {
        width: 100%;
    }
    
    .material-table th:nth-child(n+6),
    .material-table td:nth-child(n+6) {
        display: none;
    }
}

/* 페이징 스타일 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
    margin-left: 20px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-pagination {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-pagination:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
}

.btn-pagination:disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-page {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    min-width: 40px;
    transition: all 0.2s ease;
}

.btn-page:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.btn-page.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-ellipsis {
    padding: 8px 4px;
    color: #666;
    font-size: 14px;
}

.pagination-size select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
}

.pagination-size {
    margin-right: 20px;
}

.pagination-size select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* 반응형 pagination 스타일 */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-controls {
        order: 2;
    }
    
    .pagination-info {
        order: 1;
        margin-left: 0;
    }
    
    .pagination-size {
        order: 3;
        margin-right: 0;
    }
}

/* 작은 화면에서 페이지 번호들이 많을 때 처리 */
@media (max-width: 480px) {
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
        gap: 3px;
    }
    
    .btn-page {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin-bottom: 10px;
    }
}

/* 로그인 페이지 스타일 */
.login-page {
    background: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* font-family: 'Pretendard', '맑은 고딕', sans-serif; */
    margin: 0;
    padding: 80px 20px 100px 20px;
    box-sizing: border-box;
    position: relative;
}

.login-header-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #2c3e50;
    z-index: 5;
}

.ace-planet-logo {
    position: absolute;
    top: 70px;
    left: 40px;
    z-index: 10;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: none;
    padding: 60px 50px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header {
    margin-bottom: 40px;
}

.logo-section {
    margin-bottom: 24px;
}

.logo {
    font-size: 1.1rem;
    font-weight: bold;
    background: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    display: inline-block;
    color: #333;
    border: 1px solid #ddd;
}

.logo.red {
    background: #BE2527;
    color: #fff;
    margin-left: 4px;
    border: 1px solid #BE2527;
}

.login-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 16px 0;
    letter-spacing: -1px;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    text-align: left;
}


.remember-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 8px 0;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.remember-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6c5ce7;
    cursor: pointer;
}

.login-button {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 16px 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.register-button {
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 16px 0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.register-button:hover {
    background: #5b4cdb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.register-button:active {
    transform: translateY(0);
}

.error-message {
    background: #e74c3c;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.success-message {
    background: #27ae60;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.footer-bg {
    background: #2c3e50;
    padding: 20px 0;
}

.footer-content {
    color: white;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
}

/* 회원가입 페이지 스타일 */
.signup-page {
    background: white;
    min-height: 100vh;
    font-family: 'Pretendard', '맑은 고딕', sans-serif;
    margin: 0;
    padding: 80px 20px 100px 20px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.signup-header-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #2c3e50;
    z-index: 5;
}

.signup-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.signup-container {
    background: white;
    border-radius: 20px;
    box-shadow: none;
    padding: 40px 50px;
    width: 100%;
    max-width: 700px;
    text-align: center;
    position: relative;
    margin-top: 60px;
}

.signup-container.large {
    max-width: 900px;
    text-align: left;
}

.signup-header {
    margin-bottom: 40px;
}

.signup-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 30px 0;
    letter-spacing: -1px;
}

.signup-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.step.active .step-number {
    background: #dc3545;
    color: white;
}

.step.completed .step-number {
    background: #dc3545;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label {
    color: #dc3545;
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #e9ecef;
    margin: 0 10px;
}

.step-line.completed {
    background: #dc3545;
}

.agreement-section {
    text-align: left;
    margin: 40px 0;
}

.agreement-item {
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
}

.agreement-item.simple {
    border: none;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.agreement-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.agreement-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #dc3545;
    cursor: pointer;
}

.agreement-content {
    background: white;
    padding: 25px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.agreement-content h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.agreement-content p {
    margin: 8px 0;
}

.agreement-content strong {
    color: #333;
    font-weight: 600;
}
.agreement-content ul,
.agreement-content ol {
    margin: 8px 0 15px 18px;
    padding-left: 18px;
}
.agreement-content li {
    margin-bottom: 6px;
}
.agreement-divider {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 18px 0;
}
.agreement-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 18px;
    font-size: 0.88rem;
    color: #444;
}
.agreement-table th,
.agreement-table td {
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.agreement-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.signup-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-back, .btn-next {
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-next {
    background: #dc3545;
    color: white;
}

.btn-next:hover:not(:disabled) {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .signup-container {
        padding: 30px 25px;
        margin-top: 40px;
    }
    
    .signup-title {
        font-size: 1.8rem;
    }
    
    .signup-steps {
        gap: 15px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-line {
        width: 40px;
    }
    
    .signup-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-back, .btn-next {
        padding: 14px 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .signup-page {
        padding: 10px;
    }
    
    .signup-container {
        padding: 40px 30px;
        border-radius: 16px;
    }
    
    .signup-title {
        font-size: 1.8rem;
    }
    
    .agreement-content {
        padding: 20px;
        max-height: 150px;
    }
}

/* 회원가입 폼 스타일 */
.form-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

/* 회원가입 페이지용 form-input 스타일 */
.signup-page .form-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.8rem;
    background: white;
    transition: all 0.3s ease;
    width: auto; /* width: 100% 오버라이드 */
}

.signup-page .form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.input-action-wrap {
    display: flex;
    gap: 8px;
    width: 100%;
}

.input-action-wrap .form-input {
    flex: 1;
}

.btn-dup-check {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: #273CA8;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    min-width: 100px;
    transition: background 0.2s ease;
}

.btn-dup-check:hover:not(:disabled) {
    background: #1e2f8a;
}

.btn-dup-check:disabled {
    background: #bfc6e9;
    cursor: not-allowed;
}

.field-message {
    font-size: 13px;
    margin-top: 6px;
    color: #6c757d;
}

.field-message.success {
    color: #198754;
}

.field-message.error {
    color: #dc3545;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc3545;
}



.form-row .form-label {
    flex: 0 0 120px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}


.password-hint {
    flex: 1;
    font-size: 0.8rem;
    color: #dc3545;
    margin-left: 10px;
}

.radio-group {
    flex: 1;
    display: flex;
    gap: 20px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

.radio-item input[type="radio"] {
    accent-color: #dc3545;
    cursor: pointer;
}

.phone-group, .biz-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-input, .biz-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
}

.phone-input {
    width: 80px;
}

.biz-input:nth-child(1) {
    width: 80px;
}

.biz-input:nth-child(3) {
    width: 60px;
}

.biz-input:nth-child(5) {
    width: 100px;
}

.phone-input:focus, .biz-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.dash {
    color: #666;
    font-weight: 500;
    font-size: 1.1rem;
}

.address-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-input {
    width: 120px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #f8f9fa;
    text-align: center;
}

.address-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn-address {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-address:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* 반응형 폼 스타일 */
@media (max-width: 768px) {
    .signup-container.large {
        padding: 30px 25px;
    }
    
    .form-section {
        padding: 25px 20px;
    }
    
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .form-row .form-label {
        flex: none;
        margin-bottom: 5px;
    }
    
    .signup-page .form-input {
        width: 100%;
        box-sizing: border-box;
    }
    
    .radio-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .password-hint {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .phone-group, .biz-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .phone-input, .biz-input {
        flex: 1;
        min-width: 60px;
    }
}

/* 버킷 리스트 페이지 스타일 */
.date-header {
    background: #fff;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
    position: relative; /* 드롭다운을 위한 기준점 */
    overflow: visible; /* 드롭다운이 잘리지 않도록 */
    z-index: 95; /* 다른 요소들보다 위에 표시 */
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative; /* 드롭다운 위치 기준점 */
}

.date-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    position: relative;
}

.date-display:hover {
    border-color: #007bff;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.date-options {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    width: 120px; /* 고정 너비로 컴팩트하게 */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 99999 !important; /* z-index 최대로 강화 */
    max-height: 200px;
    overflow-y: auto;
}

.date-option {
    padding: 8px 12px; /* 패딩 줄여서 더 컴팩트하게 */
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
    font-size: 13px; /* 폰트 크기도 약간 줄임 */
}

.date-option:last-child {
    border-bottom: none;
}

.date-option:hover {
    background-color: #f8f9fa;
}

/* 버킷 리포트 영역: 디바이스 필터 셀렉트 + 액션 버튼 */
.report-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.device-filter {
    min-width: 100px;
    height: 36px;
    padding: 0 32px 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
    background-size: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.device-filter:hover {
    border-color: #2F9EFF;
}

.device-filter:focus {
    outline: none;
    border-color: #2F9EFF;
    box-shadow: 0 0 0 2px rgba(47, 158, 255, 0.25);
}

.campaign-search {
    min-width: 160px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.campaign-search::placeholder {
    color: #999;
}

.campaign-search:focus {
    outline: none;
    border-color: #2F9EFF;
    box-shadow: 0 0 0 2px rgba(47, 158, 255, 0.25);
}

.date-modal {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 10000;
    background: transparent;
}
.date-modal.centered-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.date-modal.centered-modal .date-modal-content {
    width: 440px;
    max-width: 90vw;
}

.date-modal-content {
    background: #fff;
    border-radius: 8px;
    width: 440px;
    max-width: 90vw;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    border: 1px solid #ddd;
    position: relative;
}

.date-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.date-modal-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.date-modal-body {
    padding: 20px;
}

.date-range-inputs {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.date-input-group {
    flex: 1;
}

.date-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.date-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.date-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-option {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.quick-option:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.date-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
}

.btn-secondary, .btn-primary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-primary {
    background: #2F9EFF;
    color: #fff;
}

.campaign-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 24px;
}

.campaign-controls-left {
    flex: 1;
}

.campaign-controls-right {
    display: flex;
    align-items: center;
}

.status-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.status-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    background: #f8f9fa;
    color: #666;
}

.status-btn:hover {
    opacity: 0.8;
}

.off-btn {
    background: #dc3545 !important;
    color: #fff !important;
    width: 60px;
}

.off-btn:hover {
    background: #c82333 !important;
}

.on-btn {
    background: #007bff !important;
    color: #fff !important;
    width: 60px;
}

.on-btn:hover {
    background: #0056b3 !important;
}

/* 테이블 래퍼 - 가로 스크롤 강제 적용 */
.campaign-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.campaign-table-container {
    background: #fff;
    /* width: max-content; 컨텐츠에 맞게 너비 조정 */
    position: relative;
    margin-bottom: 80px;
}

/* 가로 스크롤바 스타일 개선 */
.campaign-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.campaign-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.campaign-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.campaign-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.campaign-table {
    border-collapse: collapse;
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    table-layout: auto; /* 자동 레이아웃으로 컨텐츠에 맞게 조정 */
}

.campaign-table th {
    background: #f8f9fa;
    padding: 12px 8px; /* 패딩 적절하게 조정 */
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #dee2e6;
    color: #495057;
    white-space: nowrap; /* 헤더 텍스트 줄바꿈 방지 */
}

.campaign-table td {
    padding: 12px 8px; /* 패딩 적절하게 조정 */
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    font-size: 13px;
    vertical-align: middle;
    white-space: nowrap; /* 셀 텍스트 줄바꿈 방지 */
}

.campaign-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* 특정 컬럼 너비 조정 - 더 컴팩트하게 */
.campaign-table th:nth-child(1), 
.campaign-table td:nth-child(1) {
    width: 40px; /* 체크박스 */
    max-width: 40px;
}

.campaign-table th:nth-child(2), 
.campaign-table td:nth-child(2) {
    width: 150px; /* 캠페인명 */
    max-width: 150px;
    /* text-align: left; */
}

.campaign-table th:nth-child(3), 
.campaign-table td:nth-child(3) {
    width: 40px; /* 소재연결 */
    max-width: 40px;
}

.campaign-table th:nth-child(4), 
.campaign-table td:nth-child(4) {
    width: 100px; /* 노출수 */
    max-width: 100px;
}

.campaign-table th:nth-child(5), 
.campaign-table td:nth-child(5) {
    width: 80px; /* 클릭수 */
    max-width: 80px;
}

.campaign-table th:nth-child(6), 
.campaign-table td:nth-child(6) {
    width: 70px; /* CTR(%) */
    max-width: 70px;
}

.campaign-table th:nth-child(7), 
.campaign-table td:nth-child(7) {
    width: 40px; /* CPC */
    max-width: 40px;
}

.campaign-table th:nth-child(8), 
.campaign-table td:nth-child(8) {
    width: 90px; /* 일예산 */
    max-width: 100px;
}

.campaign-table th:nth-child(9), 
.campaign-table td:nth-child(9) {
    width: 70px; /* 광고비 */
    max-width: 70px;
}

.campaign-table th:nth-child(10), 
.campaign-table td:nth-child(10) {
    width: 70px; /* ECPM */
    max-width: 70px;
}

.campaign-table th:nth-child(11), 
.campaign-table td:nth-child(11) {
    width: 40px; /* 전환수 */
    max-width: 40px;
}

.campaign-table th:nth-child(12), 
.campaign-table td:nth-child(12) {
    width: 40px; /* 전환율 */
    max-width: 40px;
}

.campaign-table th:nth-child(13), 
.campaign-table td:nth-child(13) {
    width: 80px; /* 전환비용 */
    max-width: 80px;
}

.campaign-table th:nth-child(14), 
.campaign-table td:nth-child(14) {
    width: 70px; /* 매출 */
    max-width: 70px;
}

.campaign-table th:nth-child(15), 
.campaign-table td:nth-child(15) {
    width: 100px; /* ROAS */
    max-width: 100px;
}

.campaign-table th:nth-child(16), 
.campaign-table td:nth-child(16) {
    width: 150px; /* ROAS */
    max-width: 150px;
}

.campaign-info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-align: left;
}

.campaign-status-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.campaign-status-icon.on {
    background-color: #28a745;
}

.campaign-status-icon.off {
    background-color: #dc3545;
}

.campaign-status-icon.timeoff {
    background-color: #ffc107;
}

.campaign-details {
    flex: 1;
}

.campaign-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.material-connection {
    display: flex;
    justify-content: center;
    align-items: center;
}

.material-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.material-icon-photo {
    width: 22px;
    height: 16px;
    border: 2px solid #cfd6e5;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #edf1f7 40%, #dfe6f2 40%);
}
.material-icon-photo::before {
    content: '';
    position: absolute;
    top: 3px;
    right: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #fcd34d;
}
.material-icon-photo::after {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 2px;
    width: 12px;
    height: 8px;
    background: linear-gradient(135deg, #9ec3ff 0%, #5d8eea 100%);
    clip-path: polygon(0% 100%, 35% 35%, 55% 65%, 75% 20%, 100% 100%);
    opacity: 0.85;
}
.material-icon-linked {
    border-color: #1a6bff;
}
.material-icon-linked::after {
    background: linear-gradient(135deg, #62a5ff 0%, #1a6bff 100%);
}
.material-icon-empty {
    border-color: #d5dbe7;
    opacity: 0.7;
}
.material-link.empty:hover .material-icon-photo {
    border-color: #94a3b8;
}
.material-icon-product {
    font-size: 18px;
    opacity: 0.85;
    cursor: default;
}

/* 체크박스 스타일 */
.campaign-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 버킷 아이템 선택 스타일 */
.bucket-item.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.bucket-item.clickable:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bucket-item.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
    padding: 20px 20px;
}

.bucket-item.selected:hover {
    background-color: #e1f5fe;
}

/* 버킷 섹션 헤더 (테이블 내) */
.bucket-header-row {
    background-color: #e8f4f8;
    border-top: 12px solid #fff; /* 버킷 간 간격 증가 */
}

.bucket-header-row:first-child {
    border-top: none; /* 첫 번째 버킷은 위쪽 간격 없음 */
}

.bucket-header-cell {
    padding: 16px 16px !important;
    font-weight: 700;
    color: #1976d2;
    border-bottom: 2px solid #2196f3 !important;
    background: linear-gradient(135deg, #e8f4fd 0%, #f3f9ff 100%);
}

.bucket-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
}

.bucket-summary-row td {
    background: #f7fbff;
    font-weight: 600;
    color: #0d47a1;
    border-bottom: 2px solid #d6e9ff;
}

.bucket-summary-row td:first-child {
    border-left: 4px solid #1976d2;
}

.bucket-summary-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bucket-summary-name .bucket-icon-small {
    opacity: 1;
}

.bucket-icon-small {
    width: 18px;
    height: 18px;
    opacity: 0.8;
    /* filter: brightness(0) saturate(100%) invert(27%) sepia(96%) saturate(1458%) hue-rotate(211deg) brightness(91%) contrast(86%); */
}

/* 캠페인 행 스타일 */
.campaign-row {
    border-bottom: 1px solid #f0f0f0;
}

.campaign-row:hover {
    background-color: #f8f9fa;
}

/* 버킷별 캠페인 그룹 마지막 행에 추가 간격 */
.campaign-row:last-of-type {
    border-bottom: 3px solid #e0e0e0;
}

/* 테이블 전체 스크롤 개선 */
.campaign-table-wrapper {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 세로 스크롤바 스타일 */
.campaign-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.campaign-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.campaign-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.campaign-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.campaign-table-wrapper::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* 캠페인 요약 카드 */
.campaign-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 0 24px;
}

.summary-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-card .label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.summary-card .value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

/* 반응형 조정 */
@media (max-width: 1200px) {
    .campaign-table {
        font-size: 12px;
        min-width: 1200px; /* 작은 화면에서도 최소 너비 유지 */
    }
    
    .campaign-table th,
    .campaign-table td {
        padding: 10px 12px; /* 패딩 약간 줄임 */
    }
    
    .campaign-summary {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .summary-card {
        padding: 12px;
    }
    
    .summary-card .value {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .campaign-table {
        font-size: 11px;
        min-width: 1000px; /* 모바일에서도 가로 스크롤 */
    }
    
    .campaign-table th,
    .campaign-table td {
        padding: 8px 10px;
    }
    
    /* 캠페인명 컬럼은 모바일에서 조금 더 줄임 */
    .campaign-table th:nth-child(2), 
    .campaign-table td:nth-child(2) {
        min-width: 150px;
    }
}

/* 리포트 페이지 스타일 */

.report-container {
    padding: 40px 52px 40px 30px;
    box-shadow: 0 8px 24px 0 rgba(60,60,60,0.10);
    overflow: hidden;
}

.report-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin-right: 2px;
}

.tab-item:hover {
    background: #e9ecef;
}

.tab-item.active {
    background: white;
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

.tab-icon {
    margin-right: 8px;
    font-size: 16px;
}

.tab-text {
    font-size: 14px;
}

.date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.date-selector {
    position: relative;
}

.date-display {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    min-width: 200px;
    justify-content: space-between;
}

.date-display:hover {
    border-color: #007bff;
}

.dropdown-arrow {
    color: #666;
    font-size: 12px;
}

.date-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

.date-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.date-option:hover {
    background: #f8f9fa;
}

.date-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.date-modal-content {
    background: white;
    border-radius: 8px;
    width: 440px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
}

.date-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.date-modal-header h4 {
    margin: 0;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.date-modal-body {
    padding: 20px;
}

.date-range-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.date-input-group {
    flex: 1;
}

.date-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.date-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.date-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-option {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.quick-option:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.date-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.download-buttons {
    display: flex;
}

.btn-download {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-conversion-download {
    margin-right: 10px;
    flex-direction: column;
    line-height: 1.2;
    background: #0054c2;
    min-width: 110px;
}

.btn-conversion-download:hover {
    background: #0045a2;
}

.download-text {
    font-weight: 600;
}

.btn-conversion-download .download-text {
    text-align: center;
}

.btn-download:hover {
    background: #218838;
}

.download-icon {
    margin-right: 6px;
}

.report-section {
    display: none;
}

.report-section.active {
    display: block;
}

.report-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    
}
.report-filters-creative {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 20px;
}

.report-filters-right {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.report-filters-left {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
    margin-left: 15px;
    font-weight: 700;
}

/* 계정관리 관련 스타일 */
.account-container {
    background: #fff;
    border-radius: 8px;
    
    padding: 40px 52px 40px 30px;
    box-shadow: 0 8px 24px 0 rgba(60,60,60,0.10);
    overflow: hidden;
    
}

.account-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
}

.account-tabs .tab-item {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.account-tabs .tab-item.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.account-tabs .tab-item:hover {
    color: #007bff;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

/* 상품피드 수집 현황 */
.product-feed-status {
    margin-bottom: 30px;
}

.user-count-status {
    margin-bottom: 30px;
}

.user-count-table {
    overflow-x: auto;
}

.user-count-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.user-count-table thead {
    background: #273CA8;
    color: white;
}

.user-count-table th,
.user-count-table td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.user-count-table th {
    font-weight: 600;
    font-size: 14px;
}

.user-count-table td {
    font-size: 16px;
    color: #495057;
}

.user-count-table tbody tr:hover {
    background-color: #f8f9fa;
}

.user-count-table tbody tr td:first-child {
    font-weight: 600;
    color: #273CA8;
}

.user-count-table td.row-label {
    font-weight: 600;
    color: #273CA8;
    background: #f8f9fa;
    text-align: center;
}

.user-count-table th:first-child,
.user-count-table td:first-child {
    position: sticky;
    left: 0;
    background: #273CA8;
    color: white;
    z-index: 1;
}

.user-count-table tbody tr td:first-child {
    background: #f8f9fa;
    color: #273CA8;
}

.user-count-table .total-column {
    font-weight: 700;
    font-size: 15px;
    background: #273CA8 !important;
    color: white !important;
    min-width: 100px;
}

.user-count-table .total-value {
    font-size: 18px;
    font-weight: 700;
    background: #1e2f8a !important;
}

.user-count-table .script-label-header {
    background: #273CA8 !important;
    color: white !important;
    min-width: 120px;
    border-right: 2px solid #1e2f8a;
}

.user-count-table .script-label {
    font-weight: 600;
    color: #273CA8;
    background: #f8f9fa;
    text-align: center;
    min-width: 120px;
    border-right: 2px solid #e9ecef;
    position: sticky;
    left: 0;
    z-index: 1;
}

/* 디바이스 필터 버튼 */
.device-filter-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.device-filter-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.device-filter-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.device-filter-btn.active {
    background: #273CA8;
    color: white;
    border-color: #273CA8;
}

.device-filter-btn.active:hover {
    background: #1e2f8a;
    border-color: #1e2f8a;
}

.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.status-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.status-header h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 18px;
}

.status-content {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.status-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.status-label {
    font-size: 14px;
    color: #6c757d;
}

.status-value {
    font-size: 16px;
    font-weight: 600;
    color: #007bff;
    text-align: center;
}

/* 상품피드 설정 */
.product-feed-settings {
    margin-bottom: 30px;
}

.setting-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h3 {
    margin: 0;
    color: #273CA8;
    font-size: 16px;
    /* padding: 15px 25px; */

}

.section-content {
    padding: 20px;
}



.form-row:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    box-sizing: border-box;
    height: 40px;
}

.form-input:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 옵션 그룹 (상품피드 사용여부) */
.option-group {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}

.option-item {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    flex: 1;
    min-width: 200px;
}

.option-item:hover {
    border-color: #007bff;
    background: #f8f9ff;
}

.option-item.selected {
    border-color: #007bff;
    background: #e7f3ff;
}

.option-content h4 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.option-content p {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
    line-height: 1.4;
}

/* URL 컨테이너 */
.url-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.url-description {
    margin-top: 10px;
    font-size: 12px;
    color: #dc3545;
    line-height: 1.4;
    font-style: italic;
}

/* 스크립트 관리 스타일 */
.script-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
}

.subtab-item {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    position: relative;
    bottom: -2px;
}

.subtab-item:hover {
    color: #495057;
    background-color: #f8f9fa;
}

.subtab-item.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.script-content {
    margin-top: 20px;
}

.script-tab-content {
    display: none;
}

.script-tab-content.active {
    display: block;
}

.script-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.script-section {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.script-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.script-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.btn-copy {
    padding: 8px 16px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-copy:hover {
    background-color: #0056b3;
}

.script-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.script-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
}

.script-box pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #212529;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.script-box code {
    font-family: 'Courier New', monospace;
}

/* 파일 업로드 스타일 */
.file-upload-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
}

.file-upload-group .form-input {
    flex: 1;
    background-color: #f8f9fa;
    cursor: default;
}

.btn-file-upload {
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.btn-file-upload:hover {
    background-color: #5a6268;
}

.file-info {
    margin-top: 8px;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* 카테고리 셀렉트 박스 스타일 */
.category-select-group {
    flex: 1;
    display: flex;
    gap: 15px;
    align-items: center;
}

.category-select-group .form-input {
    flex: 1;
    min-width: 0;
}

/* 계정 정보 폼 스타일 */
.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.form-section-title:first-child {
    margin-top: 0;
}

.phone-group-account, .address-group-account {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: center;
}

.phone-input-account {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.phone-input-account:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.dash {
    color: #666;
    font-weight: 500;
}

.btn-address-account {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.btn-address-account:hover {
    background: #0056b3;
}

.radio-group-account {
    flex: 1;
    display: flex;
    gap: 20px;
}

.radio-item-account {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
}

.radio-item-account input[type="radio"] {
    accent-color: #007bff;
    cursor: pointer;
}

/* 사업자 등록증 미리보기 스타일 */
.file-upload-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.certificate-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-align: center;
}

.certificate-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 파라미터 컨테이너 */
.parameter-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 파라미터 그룹 */
.parameter-group {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

.parameter-item {
    flex: 1;
}

.parameter-item .form-input {
    /* min-width: 300px; */
    max-width: 90%;
}

.parameter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 13px;
}

.parameter-description {
    margin-top: 10px;
    font-size: 12px;
    color: #dc3545;
    line-height: 1.4;
    font-style: italic;
}

/* 액션 버튼 */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease-in-out;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-primary {
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.15s ease-in-out;
}

.btn-primary:hover {
    background: #0056b3;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #007bff;
}

.report-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.report-table-wrapper {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.report-table th {
    background: #f8f9fa;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.sortable:hover {
    background: #e9ecef;
}

.sort-arrow {
    margin-left: 4px;
    font-size: 12px;
    color: #666;
}

.sort-arrow.active {
    color: #007bff;
    font-weight: bold;
}

.report-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    vertical-align: middle;
}

.report-table tbody tr {
    height: 50px;
}

.report-table tbody tr.total-row {
    height: 60px;
}

.report-table tbody tr:hover {
    background: #f8f9fa;
}

.total-row {
    background: #f8f9fa !important;
    border-top: 2px solid #007bff;
    border-bottom: 2px solid #007bff;
    font-weight: bold;
}

.total-row:hover {
    background: #e9ecef !important;
}

.loading-state, .empty-state, .error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-spinner {
    font-size: 32px;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.empty-icon, .error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state p, .error-state p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.error-state {
    color: #dc3545;
}

/* 소재 연결 페이지 스타일 */
.campaign-info {
    font-size: 14px;
    color: #666;
    margin-left: 15px;
}

/* 소재 연결 링크 스타일 */
.material-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 4px;
}

.material-link:hover {
    background-color: #f0f7ff;
    transform: scale(1.1);
}

.material-link:hover .material-icon {
    opacity: 1;
    color: #007bff;
}
.material-name-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.material-name-link:hover {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.link-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.link-status.linked {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.link-status.unlinked {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.campaign-name-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
    cursor: pointer;
}

.campaign-name-link:hover {
    color: inherit;
    text-decoration: none;
}

.campaign-name-link:visited {
    color: inherit;
}

/* 프로필 팝업 스타일 */
.profile {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ddd;
    transition: border-color 0.3s ease;
}

.profile:hover {
    border-color: #007bff;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-popup {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    min-width: 280px;
    animation: profileDropdown 0.25s ease;
    transform-origin: top center;
}

.profile-popup-content {
    padding: 20px;
    text-align: center;
}

.profile-image-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f0f0f0;
}

.profile-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.profile-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-item {
    font-size: 14px;
    color: #555;
    text-align: left;
    margin: 8px 0;
}

.info-separator {
    height: 1px;
    background: #dee2e6;
    margin: 10px 0;
}

.profile-edit-btn {
    width: 100%;
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-edit-btn:hover {
    background: #c82333;
}

@keyframes profileDropdown {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 캠페인 정보 필드 스타일 */
.campaign-info-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.campaign-info-field .form-input {
    width: 100%;
    box-sizing: border-box;
}

.campaign-info-field .radio-group {
    display: flex;
    gap: 12px;
}

.campaign-info-field .form-text {
    font-size: 14px;
    color: #666;
}

.campaign-info-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.campaign-info-divider {
    height: 1px;
    background: #e9ecef;
    margin: 8px 0;
}

/* 배너 효과 스타일 */
.banner-effect-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.effect-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}


.btn-effect-select {
    padding: 8px 20px;
    background: #273CA8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-effect-select:hover {
    background: #1e2f8a;
}

.selected-effect-text {
    font-size: 13px;
    color: #273CA8;
    font-weight: 500;
}

.effect-option-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

/* 효과 선택 모달 */
.effect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.effect-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.effect-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow: auto;
    z-index: 10001;
}

.effect-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.effect-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.effect-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.effect-modal-close:hover {
    color: #333;
}

.effect-modal-body {
    padding: 24px;
}

.effect-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-modal-cancel {
    padding: 10px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-modal-cancel:hover {
    background: #5a6268;
}

.btn-modal-confirm {
    padding: 10px 24px;
    background: #273CA8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-modal-confirm:hover {
    background: #1e2f8a;
}

.effect-type-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
}

.effect-type-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 240px;
    align-items: center;
}

.effect-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
}

.effect-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.effect-radio-text {
    color: #333;
}

.effect-preview {
    width: 250px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 지면슬롯 (250x250) */
.ad-slot {
    width: 250px;
    height: 250px;
    padding: 10px; /* 패딩 10px */
    box-sizing: border-box;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

/* 광고 영역 (패딩 제외 230x230) */
.ad-content {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    overflow: hidden; /* 선이 광고 영역 밖으로 나가지 않도록 */
}

/* A형 효과 - transform 사용 */
.ad-inner-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.ad-border-line {
    position: absolute;
    display: block;
    background: #ff0000;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
}

/* 1번 선: 상단 (좌→우) */
.ad-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff0000;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
    animation: moveTop 3s linear infinite 0s;
}

/* 2번 선: 우측 (상→하) */
.ad-border-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: #ff0000;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
    animation: moveRight 3s linear infinite 0s;
}

/* 3번 선: 하단 (우→좌) */
.ad-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff0000;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
    animation: moveBottom 3s linear infinite 0s;
}

/* 4번 선: 좌측 (하→상) */
.ad-border-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: #ff0000;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
    animation: moveLeft 3s linear infinite 0s;
}

/* 상단 (좌→우) */
@keyframes moveTop {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* 우측 (상→하) */
@keyframes moveRight {
    0% {
        transform: translateY(-200%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* 하단 (우→좌) */
@keyframes moveBottom {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* 좌측 (하→상) */
@keyframes moveLeft {
    0% {
        transform: translateY(200%);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* 우하에서 시작 (하→좌→상→우) */
@keyframes borderRotateA2 {
    0% {
        opacity: 1;
        bottom: 0;
        right: -50%;
        left: auto;
        top: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
    24% {
        opacity: 1;
        bottom: 0;
        right: 100%;
        left: auto;
        top: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
    25% {
        opacity: 1;
        bottom: -50%;
        left: 0;
        right: auto;
        top: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(360deg, transparent, #ff0000);
    }
    49% {
        opacity: 1;
        bottom: 100%;
        left: 0;
        right: auto;
        top: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(360deg, transparent, #ff0000);
    }
    50% {
        opacity: 1;
        top: 0;
        left: -50%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
    74% {
        opacity: 1;
        top: 0;
        left: 100%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
    75% {
        opacity: 1;
        top: -50%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
    99% {
        opacity: 1;
        top: 100%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
    100% {
        opacity: 0;
        top: 100%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
}

/* 우상 우측면에서 시작 (우→하→좌→상) */
@keyframes borderRotateA3 {
    0% {
        opacity: 1;
        top: -50%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
    24% {
        opacity: 1;
        top: 100%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
    25% {
        opacity: 1;
        bottom: 0;
        right: -50%;
        top: auto;
        left: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
    49% {
        opacity: 1;
        bottom: 0;
        right: 100%;
        top: auto;
        left: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
    50% {
        opacity: 1;
        bottom: -50%;
        left: 0;
        right: auto;
        top: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(360deg, transparent, #ff0000);
    }
    74% {
        opacity: 1;
        bottom: 100%;
        left: 0;
        right: auto;
        top: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(360deg, transparent, #ff0000);
    }
    75% {
        opacity: 1;
        top: 0;
        left: -50%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
    99% {
        opacity: 1;
        top: 0;
        left: 100%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
    100% {
        opacity: 0;
        top: 0;
        left: 100%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
}

/* 좌하 좌측면에서 시작 (좌→상→우→하) */
@keyframes borderRotateA4 {
    0% {
        opacity: 1;
        bottom: -50%;
        left: 0;
        right: auto;
        top: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(360deg, transparent, #ff0000);
    }
    24% {
        opacity: 1;
        bottom: 100%;
        left: 0;
        right: auto;
        top: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(360deg, transparent, #ff0000);
    }
    25% {
        opacity: 1;
        top: 0;
        left: -50%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
    49% {
        opacity: 1;
        top: 0;
        left: 100%;
        bottom: auto;
        right: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #ff0000);
    }
    50% {
        opacity: 1;
        top: -50%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
    74% {
        opacity: 1;
        top: 100%;
        right: 0;
        left: auto;
        bottom: auto;
        width: 2px;
        height: 50%;
        background: linear-gradient(180deg, transparent, #ff0000);
    }
    75% {
        opacity: 1;
        bottom: 0;
        right: -50%;
        top: auto;
        left: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
    99% {
        opacity: 1;
        bottom: 0;
        right: 100%;
        top: auto;
        left: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
    100% {
        opacity: 0;
        bottom: 0;
        right: 100%;
        top: auto;
        left: auto;
        width: 50%;
        height: 2px;
        background: linear-gradient(270deg, transparent, #ff0000);
    }
}

/* B형 효과: 3D 좌우 회전 - 0.5초 회전, 3초 대기 */
.ad-effect-b {
    animation: rotate3DY 3.5s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotate3DY {
    0% {
        transform: rotateY(0deg);
    }
    14% {
        transform: rotateY(1080deg);
    }
    14%, 100% {
        transform: rotateY(1080deg);
    }
}

/* 효과 미리보기 내용 */
.effect-content {
    position: relative;
    z-index: 1;
    background: white;
    padding: 0;
    border-radius: 4px;
    text-align: center;
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.preview-logo {
    font-size: 20px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 8px;
    display: block;
}

.preview-text {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.effect-description {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}

/* 다이나믹배너 미리보기 스타일 */
.dynamic-preview {
    width: 200px;
    height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    margin: 10px 0;
}

.dynamic-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-size: 10px;
    position: relative;
}

.dynamic-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 8px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.dynamic-logo {
    width: 60%;
    height: 60%;
}



.dynamic-icon {
    width: 11px;
    height: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 10;
}

/* A형: 2열 레이아웃 + 좌우 화살표 */
.dynamic-preview-a .dynamic-container {
    position: relative;
}

.dynamic-products {
    display: flex;
    flex: 1;
    padding: 8px;
    gap: 6px;
    position: relative;
}

.dynamic-product {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dynamic-thumbnail {
    width: 100%;
    height: 80%;
    background: #e0e0e0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #999;
}

.dynamic-product-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dynamic-product-name {
    font-size: 9px;
    color: #333;
    line-height: 1.3;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dynamic-product-price {
    font-size: 10px;
    color: #ff0000;
    font-weight: bold;
    margin: 0;
}

.dynamic-product-btn {
    padding: 4px 8px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 8px;
    cursor: pointer;
}

/* 좌우 화살표 (A형, C형) */
.dynamic-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 10px;
    z-index: 10;
    transition: background 0.3s;
    padding: 0;
    line-height: 1;
}

.dynamic-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.dynamic-arrow-left {
    left: 2px;
}

.dynamic-arrow-right {
    right: 2px;
}

/* C형 화살표 위치 조정 */
.dynamic-thumbnail-large .dynamic-arrow {
    top: 50%;
    transform: translateY(-50%);
}

/* 자동 롤링 애니메이션 표시 */
.dynamic-rolling-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 10;
}

.dynamic-rolling-dot {
    width: 4px;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.dynamic-rolling-dot.active {
    background: rgba(255, 0, 0, 0.8);
}

/* B형: 2행 레이아웃 */
.dynamic-products-vertical {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px;
    gap: 6px;
}

.dynamic-product-horizontal {
    flex: 1;
    display: flex;
    gap: 6px;
    border: 1px solid #e0e0e0;
    padding: 6px;
    border-radius: 3px;
}

.dynamic-thumbnail-small {
    width: 60px;
    height: 60px;
    background: #e0e0e0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #999;
    flex-shrink: 0;
}

.dynamic-product-info-inline {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

/* C형: 1개 상품 레이아웃 + 좌우 화살표 */
.dynamic-preview-c .dynamic-container {
    position: relative;
}

.dynamic-single-product {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 6px;
    position: relative;
}

.dynamic-thumbnail-large {
    flex: 1;
    background: #e0e0e0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #999;
    position: relative;
}

.dynamic-product-footer {
    padding: 6px 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

/* B형 롤링 인디케이터 */
.dynamic-preview-b .dynamic-container {
    position: relative;
}

.dynamic-products-vertical {
    position: relative;
}

/* 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 결제 페이지 ==================== */

.payment-summary {
  display: flex;
  justify-content: center;
  margin: 0 auto 24px;
}

.summary-card {
  width: 100%;
  max-width: 480px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f274a, #1b5da8);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 20px rgba(15,39,74,0.25);
}

.summary-label {
  font-size: 14px;
  opacity: 0.85;
}

.summary-amount {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.summary-note {
  font-size: 12px;
  opacity: 0.85;
}

.payment-section-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.payment-method-column {
  flex: 0 0 260px;
}

.payment-detail-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#paymentMethodOptions.vertical {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#paymentMethodOptions.vertical .option-item {
  cursor: pointer;
}

#paymentMethodOptions.vertical .option-item.selected {
  border-color: #1b5da8;
  box-shadow: 0 14px 24px rgba(27, 93, 168, 0.25);
}

.payment-detail {
  display: none;
}

.payment-detail.active {
  display: block;
}

.payment-wrapper {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}

.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
}

.payment-method-card {
  padding: 24px 20px;
  border-radius: 18px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15,68,120,0.15);
}

.payment-method-card.active {
  border-color: #1b5da8;
  box-shadow: 0 14px 24px rgba(27,93,168,0.25);
}

.method-title {
  font-size: 18px;
  font-weight: 700;
  color: #163058;
}

.method-description {
  margin-top: 6px;
  font-size: 14px;
  color: #55637a;
}

.payment-form-area {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.payment-form {
  /* display: none; */
  flex-direction: column;
  gap: 22px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.payment-form.active {
  display: flex;
}

.form-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1b2a4e;
}

.form-header p {
  margin: 6px 0 0 0;
  font-size: 13px;
  color: #738095;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row .form-label {
  width: 120px;
}

.form-helper {
  margin-top: 6px;
  font-size: 12px;
  color: #8a95a8;
}

.form-input.readonly {
  background-color: #f5f7fb;
  color: #4a5670;
}

.form-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.history-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.history-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1b2a4e;
}

.history-table-wrapper {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th,
.history-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #e0e6f2;
  font-size: 14px;
  color: #2c3649;
}

.history-table th {
  background: #f5f7fb;
  font-weight: 600;
  color: #1b2a4e;
}

.history-table tbody tr:hover {
  background: #f9fbff;
}

.empty-row {
  text-align: center;
  color: #8a95a8;
  font-size: 14px;
}

.empty-row.error {
  color: #dc3545;
}

@media (max-width: 1024px) {
  .payment-wrapper {
    flex-direction: column;
  }

  .payment-method-selector {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .payment-method-card {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 100px 1fr;
  }
}


/* 프리미엄 관심사 타게팅 */
.interest-section {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d9e7ff;
  background: #f7fbff;
  border-radius: 10px;
}

.interest-hero {
  background: #dce8ff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.interest-hero h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #1f3b7a;
}

.interest-hero p {
  margin: 0;
  color: #3d5579;
  font-size: 13px;
}

.interest-category-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-height: 480px;
  overflow: auto;
}

@media (max-width: 1200px) {
  .interest-category-list {
    grid-template-columns: 1fr;
  }
}

.interest-group {
  background: #ffffff;
  border: 1px solid #e6ecf3;
  border-radius: 8px;
  padding: 10px;
}

.interest-parent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2b3a55;
}

.interest-caret {
  width: 16px;
  text-align: center;
  color: #4a6fa1;
  cursor: pointer;
  user-select: none;
}

.interest-parent-row label {
  cursor: pointer;
}

.interest-children {
  margin-top: 8px;
  padding-left: 24px;
}

.interest-child-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #333;
}

.interest-child-row:last-child {
  margin-bottom: 0;
}

.interest-checkbox {
  width: 16px;
  height: 16px;
}


