/* Info Sections Container */
.info-sections-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.info-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.info-section h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.info-section p, .info-section ul {
    margin-bottom: 10px;
    color: #555;
}

.info-section a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.info-section a:hover {
    text-decoration: underline;
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section ul li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.info-section ul li::before {
    content: '•';
    color: #3498db;
    position: absolute;
    left: 0;
}

/* PVE Controls */
.pve-controls {
    display: flex;
    justify-content: flex-end; /* Align to the right */
    align-items: center;
    margin-bottom: 15px;
    gap: 10px; /* Space between elements */
}

.level-filter-section {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.level-filter-section label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.level-filter-section input[type="number"] {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    width: 80px;
    text-align: right;
}

.level-filter-section button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.level-filter-section button:hover {
    background-color: #2980b9;
}

/* General Body and Typography */
body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Navigation Bar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: #2c3e50;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-wrap: wrap; /* 추가: 메뉴 항목이 다음 줄로 넘어가도록 */
    height: auto; /* 추가: 내용에 따라 높이 자동 조절 */
    padding: 5px 0; /* 추가: 상하 패딩 */
}

#navbar .nav-link {
    margin: 0 10px; /* 24px에서 10px로 줄임 */
    cursor: pointer;
    color: #ecf0f1;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 작은 화면을 위한 미디어 쿼리 */
@media (max-width: 768px) {
    #navbar .nav-link {
        font-size: 0.9em; /* 글자 크기 줄임 */
        padding: 5px 8px; /* 패딩 줄임 */
        margin: 0 5px; /* 마진 더 줄임 */
    }
    #navbar {
        height: auto; /* 높이 자동 조절 */
        padding: 10px 0; /* 상하 패딩 늘림 */
    }
}

#navbar .nav-link.active, #navbar .nav-link:hover {
    background: #3498db;
    color: #ffffff;
}

/* Main Content Area */
#mainWrap {
    max-width: 1200px;
    margin: 80px auto 20px;
    padding: 0 20px;
}

/* Right Floating Panel */
.floating-panel {
    position: fixed;
    right: 10px;
    top: 80px;
    width: 280px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between panel items */
}

/* Market Update Section */
#marketUpdateWrap {
    font-size: 12px; /* Reduced font size */
    color: #555;
    text-align: right;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px; /* Reduced padding */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#marketUpdateWrap button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 4px 8px; /* Reduced padding */
    cursor: pointer;
    margin-left: 8px; /* Reduced margin */
    transition: background-color 0.2s ease;
}

#marketUpdateWrap button:hover {
    background-color: #2980b9;
}

#updateStatus {
    font-size: 12px;
    margin-left: 5px;
    color: #e74c3c;
    font-weight: bold;
}

/* Exchange Rate Input Section */
.exchange-rate-input-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px; /* Reduced padding */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 0.9em; /* Reduced font size for the whole section */
}

.exchange-rate-input-section h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 1.2em; /* Reduced font size */
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.exchange-rate-input-section .input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px; /* Reduced margin */
}

.exchange-rate-input-section .input-group label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    margin-right: 8px; /* Reduced margin */
    font-size: 0.9em; /* Reduced font size */
}

.exchange-rate-input-section .input-group input[type="number"] {
    padding: 6px; /* Reduced padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em; /* Reduced font size */
    width: 60px; /* Adjusted width */
    text-align: right;
}

.exchange-rate-input-section button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px; /* Reduced padding */
    cursor: pointer;
    font-size: 0.9em; /* Reduced font size */
    display: block;
    width: 100%;
    margin-top: 10px; /* Reduced margin */
    transition: background-color 0.2s ease;
}

.exchange-rate-input-section button:hover {
    background-color: #2980b9;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.85em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

@media (max-width: 768px) {
    th, td {
        padding: 4px 5px; /* 작은 화면에서 패딩 줄이기 */
        font-size: 0.75em; /* 작은 화면에서 폰트 크기 줄이기 */
    }
    .profit-rate {
        font-size: 1em; /* 작은 화면에서 이득률 폰트 크기 줄이기 */
    }
}

thead th {
    background-color: #eef4f8;
    color: #333;
    font-weight: 600;
}

.item-detail {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.item-detail img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.profit-rate {
    font-weight: bold;
    font-size: 1.3em; /* Approximately 3px larger than default */
    color: green; /* Default color for positive profit */
}

.profit-rate.negative {
    color: red;
}

/* Responsive Adjustments */
@media (max-width: 1600px) {
    #mainWrap {
        padding-right: 380px; /* Add space for the floating panel */
    }
}

@media (max-width: 1200px) {
    .floating-panel {
        display: none;
    }
    #mainWrap {
        padding-right: 20px; /* Reset padding when panel is hidden */
    }
}

@media (max-width: 768px) {
    table, th, td {
        font-size: 0.85em;
        padding: 8px 10px;
        white-space: normal; /* Allow wrapping on small screens */
    }
}

/* Index Page Specific Styles */
.lead {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.feature-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    border-radius: 50%;
    background-color: #eef4f8;
    padding: 10px;
}

.feature-item h3 {
    color: #2c3e50;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

.note {
    font-size: 0.85em;
    color: #888;
    margin-top: 30px;
    margin-bottom: 20px;
}

.call-to-action {
    font-size: 1.3em;
    font-weight: bold;
    color: #3498db;
    margin-top: 30px;
}

.main-title-lopik {
    font-size: 3.5em; /* 더 크게 */
    font-weight: 700; /* 더 두껍게 */
    color: #2c3e50; /* 진한 색상 */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
    letter-spacing: 2px; /* 자간 */
    margin-bottom: 20px;
}

/* Feedback Page Specific Styles */
#feedbackDisplay {
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#feedbackDisplay p {
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px; /* Less rounded for a cleaner look */
    max-width: 80%;
    word-wrap: break-word;
    line-height: 0.9; /* Reduced line height to less than 1 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Subtle shadow for messages */
}

#feedbackDisplay p strong {
    color: #2c3e50; /* Darker color for name */
}

#feedbackDisplay p .timestamp {
    font-size: 0.75em;
    color: #999;
    margin-left: 10px;
}

/* User message style - no background color */
#feedbackDisplay p.user-message {
    align-self: flex-start;
    background-color: transparent; /* Remove background color */
}

/* Other message style - no background color */
#feedbackDisplay p.other-message {
    align-self: flex-start; /* Align all messages to the left */
    background-color: transparent; /* Remove background color */
}

.feedback-input-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.feedback-input-section input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #e0e0e0; /* Consistent border */
    border-radius: 8px; /* Consistent border-radius */
    font-size: 0.95em;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Subtle inner shadow */
}

.feedback-input-section button {
    background-color: #3498db; /* Site primary blue */
    color: white;
    border: none;
    border-radius: 8px; /* Consistent border-radius */
    padding: 10px 30px; /* Increased horizontal padding for wider button */
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Button shadow */
    white-space: nowrap; /* Prevent text wrapping */
}

.feedback-input-section button:hover {
    background-color: #2980b9;
}

/* Monthly Package Efficiency Specific Styles */
.item-detail-row input[type="checkbox"] {
    width: 20px !important;  /* Increase checkbox size */
    height: 20px !important; /* Increase checkbox size */
    margin-right: 8px; /* Adjust margin for better spacing */
    transform: scale(1.2); /* Scale checkbox to make it larger */
    vertical-align: middle; /* Align checkbox vertically */
}

.item-detail-row .item-text {
    font-size: 1.1em; /* Increase font size for item text */
    vertical-align: middle; /* Align text vertically */
    line-height: normal; /* Revert line height to normal */
}

.item-detail-row img {
    vertical-align: middle; /* Align image vertically */
    position: relative;
    top: 1px; /* Adjust to move image up slightly */
}

.item-detail-row {
    display: flex;
    align-items: center; /* Ensure vertical alignment */
    margin-bottom: 5px;
}
