@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
    --background-color: #0d0d12;
    --primary-text-color: #ffffff;
    --secondary-text-color: #a1a1aa;
    --container-bg: rgba(24, 24, 27, 0.6);
    --card-bg: rgba(39, 39, 42, 0.5);
    --input-bg: rgba(24, 24, 27, 0.8);
    --border-color: rgba(255, 255, 255, 0.12);
    --gradient-start: #A78BFA;
    --gradient-end: #EC4899;
    --success-color: #10B981;
    --error-color: #EF4444;
    --accent-color: #6366F1;
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--primary-text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-start);
}

/* Animated background - 완전히 동일한 배경 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 25%, hsla(250, 80%, 70%, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, hsla(320, 80%, 70%, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: backgroundShift 25s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        transform: scale(1) rotate(0deg) translate(0, 0);
    }

    100% {
        transform: scale(1.2) rotate(5deg) translate(10px, -10px);
    }
}

/* Index Page Styles */
.index-page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 35px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-text-color);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.6;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 320px;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    white-space: nowrap;
}

.btn-gradient {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(167, 139, 250, 0.4);
}

.btn-secondary {
    background-color: var(--input-bg);
    color: var(--primary-text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--gradient-start);
    color: var(--gradient-start);
}

/* Login/Register Container */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--container-bg);
    backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    padding: 45px 35px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(167, 139, 250, 0.08) 0%,
            rgba(236, 72, 153, 0.08) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.auth-card:hover::before {
    opacity: 1;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-text-color);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--primary-text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Noto Sans KR', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.auth-links {
    margin-top: 20px;
    color: var(--secondary-text-color);
}

.auth-links a {
    color: var(--gradient-start);
    text-decoration: none;
    font-weight: 500;
}

.auth-links a:hover {
    color: var(--gradient-end);
}

/* Dashboard Styles */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: rgba(22, 22, 22, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    padding: 25px 0 0 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.sidebar-header {
    padding: 20px 25px 25px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.sidebar-header h2 {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.sidebar-nav {
    flex: 1;
    padding: 15px 0;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    margin: 6px 15px;
}

.sidebar ul li a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--secondary-text-color);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    font-weight: 500;
    cursor: pointer;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-text-color);
    transform: translateX(3px);
}

.sidebar ul li a.active {
    background: linear-gradient(90deg, rgba(167, 139, 250, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--gradient-start);
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.1);
    position: relative;
}

.sidebar ul li a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--gradient-start);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--gradient-start);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    width: calc(100% - 260px);
    min-height: 100vh;
}

.page-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-text-color);
    margin: 0;
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(167, 139, 250, 0.05) 0%,
            rgba(236, 72, 153, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    border-color: var(--gradient-start);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--secondary-text-color);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-text-color);
}

.card {
    background: var(--container-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 0;
}

.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

.table,
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

.table th,
.data-table th,
.table td,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th,
.data-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--secondary-text-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td,
.data-table td {
    color: var(--primary-text-color);
    font-size: 0.95rem;
}

.table tr,
.data-table tr {
    transition: background-color 0.2s ease;
}

.table tr:hover,
.data-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table tr:last-child td,
.data-table tr:last-child td {
    border-bottom: none;
}

/* Form Controls */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--primary-text-color);
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
    outline: none;
    border-color: var(--gradient-start);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(167, 139, 250, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
}

.btn-outline-primary {
    background: transparent;
    color: var(--gradient-start);
    border: 1px solid var(--gradient-start);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--gradient-start);
    color: white;
}

.btn-outline-danger {
    background: transparent;
    color: var(--error-color);
    border: 1px solid var(--error-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: var(--error-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-dialog {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
}

.modal-content {
    background: var(--container-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text-color);
    margin: 0;
}

.btn-close {
    background: none;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: var(--surface-color);
    color: var(--primary-text-color);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Controls */
.form-select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--primary-text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-color: var(--success-color);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
    border-color: var(--error-color);
}

/* Settings Layout */
.settings-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.settings-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gradient-start);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-group-title i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .page-header {
        gap: 15px;
    }

    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
    }

    .modal-dialog {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

    .feature-showcase {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin: 30px 0 !important;
    }

    .auth-card {
        padding: 30px 25px;
        margin: 20px;
    }

    .auth-title {
        font-size: 2rem;
    }

    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px;
        padding-top: 70px;
    }

    .mobile-nav-toggle {
        display: block !important;
        background: none;
        border: none;
        color: var(--primary-text-color);
        font-size: 1.5rem;
        cursor: pointer;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1100;
        padding: 10px;
        border-radius: 8px;
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        border: 1px solid var(--border-color);
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .page-header>div {
        width: 100%;
    }

    .page-header>div>button {
        font-size: 0.9rem;
        padding: 12px 18px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .welcome-buttons {
        width: 100%;
        max-width: 100%;
    }

    .btn {
        max-width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table {
        min-width: 600px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .modal-dialog {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }

    .logs-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-button {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .category-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .category-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Dashboard 차트 그리드 */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 576px) {
    .welcome-title {
        font-size: 2rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .auth-card {
        padding: 25px 20px;
    }

    .auth-title {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 15px;
        padding-top: 65px;
    }

    .card {
        padding: 15px;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.6rem;
    }

    .btn-primary,
    .btn-secondary,
    .btn-gradient {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .form-input,
    .form-select {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 380px) {
    .welcome-title {
        font-size: 1.7rem;
    }

    .page-title {
        font-size: 1.4rem;
    }

    .auth-title {
        font-size: 1.6rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }
}

/* 태블릿 가로 모드 */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
        width: calc(100% - 220px);
        padding: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title {
        font-size: 2rem;
    }

    .card {
        padding: 25px;
    }
}

/* 오버레이 추가 (모바일에서 사이드바 열릴 때) */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    body.sidebar-open {
        overflow: hidden;
    }
}

/* Log Tabs */
.logs-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--secondary-text-color);
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.tab-button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-text-color);
}

.tab-button.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3);
}

.log-content {
    display: none;
}

.log-content.active {
    display: block;
}

/* Category Items */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--gradient-start);
}

.category-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-emoji {
    font-size: 1.5rem;
}

.category-name {
    font-weight: 500;
    color: var(--primary-text-color);
}

.category-actions {
    display: flex;
    gap: 8px;
}

/* Status Badges */
.status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error-color);
}

.status.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

/* Chart Container */
.chart-container {
    position: relative;
    width: 100%;
    height: 300px;
}

.chart-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chart-period-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--secondary-text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-period-btn:hover {
    background: var(--surface-hover);
    color: var(--primary-text-color);
}

.chart-period-btn.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-color: transparent;
}

.chart-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.chart-type-btn {
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--secondary-text-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-type-btn:hover {
    background: var(--surface-hover);
    color: var(--primary-text-color);
}

.chart-type-btn.active {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-color: transparent;
}

/* 토스트 알림 애니메이션 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}