
body {
    margin: 0;
    padding: 0;
    font-family: 'Pretendard Variable', sans-serif;
    height:100vh;
}
.page-container {
    width: 100%;
    box-sizing: border-box;
}
.top-bar {
 position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding:10px;
}
.sidebar{

  position: sticky;
    top: 90px; /* 상단 툴바 높이보다 살짝 아래로 */

    }
.top-bar img {
    height: 50px;
    cursor: pointer;
}
.logout-btn {
    background-color: #e74c3c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.logout-btn:hover {
    background-color: #c0392b;
}

#month-select {
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.keyword-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.keyword-form input {
    flex: 1;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
}
.keyword-form button {
    background-color: #1ba441;
    color: white;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.keyword-form button:hover {
    background-color: #158a36;
}
.keyword-list {
    margin-bottom: 20px;
}
.keyword-list button {
    margin: 5px 8px 5px 0;
    padding: 10px 16px;
    border-radius: 6px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
}
.keyword-list button:hover {
    background-color: #e0e0e0;
}
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}
th, td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
th {
    background-color: #f0f0f0;
    font-weight: bold;
}
tr:last-child td {
    border-bottom: none;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    width: 100%;
    margin: 80px auto;
    text-align: center;
}
.login-box h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
}
.login-box input[type="text"],
.login-box input[type="password"] {
    width: -webkit-fill-available;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background-color: #1ba441;
    color: white;
    font-weight: bold;
    font-size: 1em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.login-box button:hover {
    background-color: #158a36;
}
.logo {
    height: 50px;
    margin-bottom: 20px;
    cursor: pointer;
}
/* 키워드 탭 */
.keyword-tab-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    flex-direction: column;
}
.keyword-tab {
    padding:5px 5px;
    cursor: pointer;
    width:100%;
    border-radius:10px;
    border:0;
    margin-bottom:10px;

}

.keyword-tab.active {
    background-color: #1ba441;
    color: white;
    border-color: #1ba441;
    font-weight: bold;
}
/* 고정 키워드 등록 폼 */
.floating-keyword-form{
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.floating-keyword-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
}
.floating-keyword-form button {
    padding: 12px 16px;
    background-color: #1ba441;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}
.floating-keyword-form button:hover {
    background-color: #158a36;
}

/* 테이블 스타일 */
#result-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#result-table th, #result-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* 필요시 조절 가능 */
}

#result-table th {
    background-color: #f9fafb;
    font-weight: bold;
    color: #333;
}

#result-table td a {
    color: #2c59f5;
    text-decoration: underline;
}

#result-table tr:hover {
    background-color: #f1f5f9;
}

.phone-tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.phone-tooltip .tooltip-text {
    visibility: hidden;
    width: auto;
    color: black;
    text-align: center;
    z-index: 99;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    position: absolute;
    left:0px;
    background-color: #f9fafb;

}

.phone-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.keyword-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 6px 10px;
  border-radius:10px;
  width:-webkit-fill-available;
}

.keyword-text {
  font-weight: bold;
  font-size: 1.2em;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.keyword-info {
      display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size:0.8rem;
}


#button_download{
    padding: 12px 16px;
    background-color: #1ba441;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
}

.keyword-tab-menu {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  justify-content: space-between;
}

.tab-button {
  padding: 8px 14px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  cursor: pointer;
  border-radius: 6px;
  font-weight: bold;
  width:48%;
}

.tab-button.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}

.tab-content {
  display: none;
  height: 600px;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}
.keyword-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom:10px;
}
.delete-btn {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}