/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #121212;
    color: #F0F0F0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    width: 1920px;
    margin: 0 auto;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 252px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    line-height: 0.8em;
    color: #F0F0F0;
}

.header-right {
    display: flex;
}

.user-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-name {
    font-weight: 400;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.6);
}

.logout-btn {
    font-weight: 600;
    font-size: 13px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(240, 240, 240, 0.7);
    white-space: nowrap;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #F0F0F0;
}

/* User Points in Header */
.user-points {
    font-weight: 400;
    font-size: 13px;
    color: rgba(107, 185, 126, 0.8);
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.user-points strong {
    font-weight: 700;
    color: #6BB97E;
    font-family: 'Roboto', sans-serif;
}

/* Point Notice (add.php) */
.point-notice {
    margin-top: 16px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.point-notice-ok {
    background: rgba(107, 185, 126, 0.08);
    border: 1px solid rgba(107, 185, 126, 0.2);
    color: rgba(107, 185, 126, 0.9);
}

.point-notice-warn {
    background: rgba(255, 100, 100, 0.08);
    border: 1px solid rgba(255, 100, 100, 0.2);
    color: rgba(255, 120, 120, 0.9);
}

.point-notice strong {
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 32px;
    padding-left: 252px;
    padding-right: 252px;
    padding-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-item {
    font-weight: 600;
    font-size: 14px;
    padding: 16px 0;
    background: transparent;
    color: rgba(240, 240, 240, 0.5);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.nav-item.active {
    color: #F0F0F0;
    border-bottom-color: #6BB97E;
}

.nav-item:hover {
    color: #F0F0F0;
    border-bottom-color: #6BB97E;
}

/* Main Content */
.main-content {
    padding: 0 252px;
    position: relative;
    padding-bottom: 60px;
}

/* Description Section */
.description-section {
    display: flex;
    align-items: baseline;
    gap: 24px;
    padding: 9px 0;
    margin-top: 48px;
}

.section-title {
    font-weight: 700;
    font-size: 32px;
    line-height: 1.2;
    color: #F0F0F0;
    white-space: nowrap;
}

.section-desc {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(240, 240, 240, 0.4);
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.stat-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 24px;
    transition: background 0.2s, border-color 0.2s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 185, 126, 0.15);
}

.stat-label {
    font-weight: 600;
    font-size: 13px;
    color: rgba(107, 185, 126, 0.8);
    letter-spacing: 0.02em;
}

.stat-value {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    color: #21DB4E;
}

.stat-value.highlighted {
    text-align: center;
}

/* Filter Section */
.filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
}

.filter-left {
    display: flex;
    align-items: center;
}

.filter-left .dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 14px;
    min-width: 140px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    color: rgba(240, 240, 240, 0.7);
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s;
}

.dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.dropdown-btn svg {
    margin-left: auto;
    opacity: 0.5;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    width: 300px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: #6BB97E;
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0 12px;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 13px;
    color: #F0F0F0;
}

.search-input::placeholder {
    color: rgba(240, 240, 240, 0.3);
}

.search-btn {
    padding: 8px 18px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 0 8px 8px 0;
    font-weight: 600;
    font-size: 13px;
    color: rgba(240, 240, 240, 0.7);
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #F0F0F0;
}

.register-btn {
    padding: 8px 24px;
    height: 36px;
    background: #6BB97E;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #FFFFFF;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.register-btn:hover {
    background: #21DB4E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 219, 78, 0.25);
}

/* Table Container */
.table-container {
    margin-top: 24px;
    overflow-x: auto;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.table-header,
.table-row {
    display: flex;
    align-items: center;
    gap: 52px;
    min-width: 1100px;
}

.table-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 23px;
    background: rgba(255, 255, 255, 0.02);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 23px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgba(107, 185, 126, 0.04);
}

.th,
.td {
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    flex-shrink: 0;
}

.th {
    font-weight: 600;
    color: rgba(240, 240, 240, 0.5);
    font-size: 13px;
    letter-spacing: 0.01em;
}

.td {
    color: rgba(240, 240, 240, 0.85);
    font-weight: 400;
}

.th-campaign,
.td-campaign {
    width: 200px;
    min-width: 0;
    padding-left: 8px;
    flex-shrink: 1;
}

.td-campaign {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.th-group,
.td-group {
    display: flex;
    flex: 1;
    white-space: nowrap;
    gap: 49px;
    padding: 0 25px;
    min-width: 0;
    flex-shrink: 0;
}

.th-product,
.td-product {
    width: 130px;
    text-align: center;
    font-size: 12px;
}

.th-daily,
.td-daily {
    width: 87px;
    text-align: center;
}

.th-total,
.td-total {
    width: 87px;
    text-align: center;
}

.th-registrar,
.td-registrar {
    width: 88px;
    text-align: center;
}

.th-date,
.td-date {
    width: 87px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
}

.th-timeslot,
.td-timeslot {
    width: 75px;
    text-align: center;
}

.th-image,
.td-image {
    width: 87px;
    text-align: center;
}

.th-status,
.td-status {
    width: 87px;
    text-align: center;
}

.th-settings,
.td-settings {
    width: 140px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.action-btn {
    padding: 4px 12px;
    height: 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.15s;
}

.action-btn:hover {
    transform: translateY(-1px);
}


.btn-progress {
    background: rgba(107, 185, 126, 0.15);
    color: #6BB97E;
}

.btn-progress:hover {
    background: rgba(107, 185, 126, 0.25);
}

.btn-stop {
    background: rgba(255, 100, 100, 0.1);
    color: rgba(255, 120, 120, 0.8);
}

.btn-stop:hover {
    background: rgba(255, 100, 100, 0.18);
    color: rgba(255, 120, 120, 1);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 0;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    min-width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.page-num:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #F0F0F0;
}

.page-num.active {
    background: #6BB97E;
    color: #FFFFFF;
}

.page-dots {
    font-weight: 700;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.3);
}

.items-per-page {
    margin-left: 8px;
    position: relative;
}

.items-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 14px;
    min-width: 90px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    color: rgba(240, 240, 240, 0.7);
    white-space: nowrap;
    transition: background 0.2s;
}

.items-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.items-btn span {
    color: rgba(240, 240, 240, 0.7);
}

/* Responsive */
@media (max-width: 1920px) {
    .container {
        width: 100%;
        max-width: 1920px;
    }

    .header {
        padding: 22px 13%;
    }

    .nav-menu {
        padding-left: 13%;
        padding-right: 13%;
    }

    .main-content {
        padding: 0 13%;
        padding-bottom: 60px;
    }
}

@media (max-width: 1440px) {
    .header {
        padding: 22px 8%;
    }

    .nav-menu {
        padding-left: 8%;
        padding-right: 8%;
    }

    .main-content {
        padding: 0 8%;
        padding-bottom: 60px;
    }

    .stats-container {
        gap: 12px;
    }

    .stat-card {
        padding: 28px 20px;
    }

    .stat-value {
        font-size: 36px;
    }

    .table-header,
    .table-row {
        gap: 30px;
        min-width: 1000px;
    }

    .th-campaign,
    .td-campaign {
        width: 180px;
    }

    .th-group,
    .td-group {
        flex: 1;
        gap: 30px;
    }
}

@media (max-width: 1366px) {
    .header {
        padding: 20px 5%;
    }

    .nav-menu {
        padding-left: 5%;
        padding-right: 5%;
    }

    .main-content {
        padding: 0 5%;
        padding-bottom: 60px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-desc {
        font-size: 13px;
    }

    .stats-container {
        gap: 12px;
    }

    .stat-card {
        padding: 24px 18px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 32px;
    }

    .table-header,
    .table-row {
        gap: 20px;
        min-width: 950px;
    }

    .th-campaign,
    .td-campaign {
        width: 160px;
    }

    .th-group,
    .td-group {
        flex: 1;
        gap: 25px;
    }
}

@media (max-width: 1280px) {
    .header {
        padding: 20px 4%;
    }

    .nav-menu {
        padding-left: 4%;
        padding-right: 4%;
    }

    .main-content {
        padding: 0 4%;
        padding-bottom: 60px;
    }

    .description-section {
        gap: 20px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 26px;
    }

    .section-desc {
        font-size: 13px;
        width: 100%;
    }

    .stat-card {
        padding: 22px 16px;
    }

    .stat-label {
        font-size: 12px;
    }

    .stat-value {
        font-size: 28px;
    }

    .search-box {
        width: 260px;
    }

    .table-header,
    .table-row {
        gap: 15px;
        min-width: 900px;
    }

    .th-campaign,
    .td-campaign {
        width: 150px;
    }

    .th-group,
    .td-group {
        flex: 1;
        gap: 20px;
    }

    .th-product,
    .td-product {
        width: 100px;
        font-size: 11px;
    }

    .th-daily,
    .td-daily,
    .th-total,
    .td-total,
    .th-registrar,
    .td-registrar,
    .th-date,
    .td-date,
    .th-timeslot,
    .td-timeslot,
    .th-image,
    .td-image,
    .th-status,
    .td-status {
        width: 70px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .header {
        padding: 16px 3%;
    }

    .logo {
        font-size: 18px;
    }

    .user-name {
        font-size: 13px;
    }

    .user-points {
        font-size: 12px;
        padding-right: 12px;
    }

    .logout-btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .nav-menu {
        gap: 24px;
        padding-left: 3%;
        padding-right: 3%;
        overflow-x: auto;
    }

    .nav-item {
        font-size: 13px;
        padding: 14px 0;
    }

    .main-content {
        padding: 0 3%;
        padding-bottom: 60px;
    }

    .description-section {
        margin-top: 32px;
        gap: 16px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-desc {
        font-size: 12px;
    }

    .stats-container {
        gap: 10px;
        flex-direction: column;
    }

    .stat-card {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 24px;
        gap: 16px;
    }

    .stat-value {
        font-size: 28px;
    }

    .filter-section {
        gap: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-right {
        width: 100%;
        justify-content: space-between;
    }

    .search-box {
        flex: 1;
        min-width: 180px;
    }

    .table-container {
        margin-top: 16px;
    }

    .table-header,
    .table-row {
        gap: 10px;
        min-width: 850px;
    }

    .th,
    .td {
        font-size: 13px;
    }

    .th-campaign,
    .td-campaign {
        width: 140px;
        font-size: 12px;
    }

    .th-group,
    .td-group {
        flex: 1;
        gap: 15px;
        padding: 0 15px;
    }

    .th-product,
    .td-product {
        width: 80px;
        font-size: 10px;
    }

    .th-daily,
    .td-daily,
    .th-total,
    .td-total,
    .th-registrar,
    .td-registrar,
    .th-date,
    .td-date,
    .th-timeslot,
    .td-timeslot,
    .th-image,
    .td-image,
    .th-status,
    .td-status {
        width: 60px;
        font-size: 12px;
    }

    .th-settings,
    .td-settings {
        width: 120px;
        gap: 6px;
    }

    .action-btn {
        padding: 3px 8px;
        height: 24px;
        font-size: 11px;
    }

    .pagination {
        gap: 10px;
        flex-wrap: wrap;
    }

    .page-numbers {
        gap: 6px;
    }

    .page-num {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .items-btn {
        min-width: 80px;
        height: 28px;
        font-size: 13px;
    }
}
