* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    min-height: 100vh !important;
    background: #f5f5f5 !important;
    padding: 20px !important;
    margin: 0 !important;
}

.container {
    width: 95% !important;
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.nav-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin: 0 !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    width: 100% !important;
}

.nav-btn {
    padding: 8px 12px !important;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box !important;
    line-height: normal !important;
    transition: all 0.2s;
    text-align: center;
    flex: 0 0 auto;
    min-width: 75px;
}

.nav-btn.active {
    background: #4285f4;
}

.nav-btn:hover {
    opacity: 0.9;
}

.nav-btn.nav-pastel-blue {
    background: #7ab8f5;
    color: white;
}

.nav-btn.nav-mint {
    background: #26a69a;
    color: white;
}

.nav-btn.nav-gold {
    background: #f0a500;
    color: #333;
}

.nav-btn.nav-orange {
    background: #e55b3c;
    color: white;
}

@media (max-width: 768px) {
    .nav-btn.nav-desktop {
        display: none;
    }
    .nav-btn.nav-tablet {
        display: none;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .nav-btn.nav-desktop {
        display: none;
    }
}

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    margin: 8px 0 4px 2px;
}

.input-form {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-wrap: wrap;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.input-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.input-group input:focus {
    border-color: #4285f4;
}

.submit-btn {
    padding: 8px 20px;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 20px;
}

.submit-btn:hover {
    background: #3367d6;
}

.search-container {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

.search-bar {
    width: 100%;
    padding: 15px 20px;
    font-size: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar:focus {
    border-color: #4285f4;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.2);
}

.result-count {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.results-container {
    margin-top: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.result-table {
    width: 100%;
    border-collapse: collapse;
}

.result-table th {
    background: #c9ffe0;
    padding: 8px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.result-table td {
    padding: 8px 12px;
    font-size: 13px;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

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

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

.delete-btn {
    padding: 4px 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
}

.delete-btn:hover {
    background: #c82333;
}

.autocomplete {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 400px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-list.active {
    display: block;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}

.shortcut-tooltip {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
}

.shortcut-tooltip div {
    margin: 3px 0;
}

.shortcut-key {
    background: #555;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

/* 메인 페이지 표시 */
.nav-btn.main-page {
    position: relative;
}

.nav-btn.main-page::before {
    content: '⭐';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 16px;
}

/* 알림 */
.nav-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4285f4;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.nav-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Toast 메시지 스타일
   ============================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: #333;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 350px;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.warning {
    background: #ffc107;
    color: #333;
}

.toast.info {
    background: #17a2b8;
}
