body {
    font-family: 'Arial', sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
h1 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 30px;
    font-size: 28px;
}
#bonds-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}
.card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.heart {
    cursor: pointer;
    font-size: 22px;
    color: #d32f2f;
    user-select: none;
    transition: transform 0.1s;
}
.heart.filled {
    color: #d32f2f;
}
.heart:not(.filled) {
    color: #ccc;
}
.heart:active {
    transform: scale(1.2);
}
.issuer {
    font-size: 18px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e3f2fd;
}
.bond-type {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: bold;
}
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}
.status-발행예정 { background: #e3f2fd; color: #1976d2; }
.status-발행중 { background: #e8f5e9; color: #388e3c; }
.status-발행마감 { background: #ffebee; color: #d32f2f; }
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}
.info-item {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}
.info-label {
    color: #666;
    font-size: 12px;
    margin-bottom: 4px;
}
.info-value {
    color: #333;
    font-weight: bold;
}
.last-update {
    margin-top: 15px;
    color: #666;
    font-size: 12px;
    text-align: right;
}
.db-info {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}
.submit-btn:hover {
    background-color: #1565c0;
}
/* 수요 결과 테이블 스타일 */
.demands-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 14px;
}
.demands-table th,
.demands-table td {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.demands-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.demands-table tr:hover {
    background-color: #f8f9fa;
}
.refresh-btn {
    background-color: #4caf50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 14px;
}
.refresh-btn:hover {
    background-color: #45a049;
}
@media (max-width: 900px) {
    #bonds-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    #bonds-container {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 5px;
    }
    .card {
        padding: 8px;
    }
    h1, .db-info, .last-update {
        font-size: 16px !important;
    }
    .issuer {
        font-size: 15px !important;
    }
    .bond-type {
        font-size: 12px !important;
        font-weight: bold !important;
    }
}
.modal-content {
    max-width: 420px;
    min-width: 280px;
    width: 98%;
    padding: 18px 12px 12px 12px;
    background: white;
    border-radius: 8px;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.close-btn:hover {
    color: #333;
}
.modal-header {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #1a237e;
    margin-bottom: 20px;
}
.modal-body {
    padding: 10px 0;
}
#modalBondInfo {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}
.poll-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}
.rate-input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}
.rate-input:focus {
    border-color: #1976d2;
    outline: none;
}
.submit-btn {
    background-color: #1976d2;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.2s;
}
.submit-btn:hover {
    background-color: #1565c0;
}
.poll-result {
    margin-top: 20px;
    padding: 15px;
    background: #e3f2fd;
    border-radius: 8px;
    text-align: center;
    display: none;
}
@media (max-width: 600px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    .modal-header {
        font-size: 18px;
    }
    .rate-input {
        font-size: 14px;
        padding: 10px;
    }
    .submit-btn {
        font-size: 14px;
        padding: 10px;
    }
}
.poll-success {
    font-weight: bold;
    margin-bottom: 15px;
    color: #1976d2;
    text-align: center;
    font-size: 18px;
}

.poll-stats {
    background: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(30,40,80,0.04);
    border: 1px solid #eee;
}

.poll-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 0;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #666;
}

.stat-value {
    font-weight: bold;
    color: #1976d2;
}

.distribution-chart {
    min-height: 60px;
    background: #f0f4fa;
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 6px 0;
    justify-content: flex-start;
}

.distribution-bar {
    min-width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bar {
    background: linear-gradient(to top, #1976d2, #42a5f5);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 20px;
    width: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bar-label {
    font-size: 11px;
    margin-top: 2px;
    color: #666;
    text-align: center;
}

.bar-count {
    font-size: 11px;
    position: absolute;
    top: -16px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .stat-item {
        font-size: 12px;
    }
    
    .distribution-chart {
        height: 120px;
    }
    
    .bar-label {
        font-size: 8px;
    }
    
    .bar-count {
        font-size: 8px;
    }
}

.bond-info-box {
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(30,40,80,0.07);
    padding: 24px 20px 18px 20px;
    margin-bottom: 20px;
    font-size: 16px;
}
.bond-info-title {
    font-size: 20px;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 14px;
    letter-spacing: -1px;
}
.bond-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}
.bond-info-label {
    color: #666;
    font-weight: 500;
}
.bond-info-value {
    color: #222;
    font-weight: bold;
}
.bond-info-value.rate {
    color: #1976d2;
}
.warning-box {
    color: #d32f2f;
    background: #fff3e0;
    border-radius: 6px;
    font-size: 12px;
    padding: 7px 12px;
    margin: 0 auto 12px auto;
    max-width: 700px;
    text-align: center;
    border: 1px solid #ffe0b2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.bond-info-box.bond-info-flex {
    display: flex;
    flex-direction: row;
    gap: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(30,40,80,0.07);
    padding: 18px 20px;
    margin-bottom: 20px;
    font-size: 16px;
    justify-content: flex-start;
}
.bond-info-labels, .bond-info-values {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bond-info-labels {
    color: #666;
    font-weight: 500;
    min-width: 90px;
}
.bond-info-values {
    color: #222;
    font-weight: bold;
}
.bond-info-value.rate {
    color: #1976d2;
}
#demandModal {
    background: rgba(0,0,0,0.4) !important;
}
.avg-demand-rate {
    margin-top: 10px;
    font-size: 15px;
    color: #1976d2;
    font-weight: bold;
    text-align: right;
}
.modal-ad {
    min-width: 320px;
    min-height: 100px;
    width: 100%;
    text-align: center;
}
.modal-ad .adsbygoogle {
    display: block !important;
    min-width: 320px !important;
    width: 100% !important;
    min-height: 100px !important;
    height: 120px !important;
    margin: 0 auto !important;
}
.bond-info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}
.bond-info-table th {
    text-align: left;
    color: #888;
    font-weight: 500;
    font-size: 15px;
    padding-right: 10px;
    white-space: nowrap;
}
.bond-info-table td {
    text-align: left;
    color: #222;
    font-size: 15px;
    font-weight: bold;
    padding: 2px 0;
}
.bond-info-title {
    color: #1976d2;
    font-weight: bold;
}
.bond-info-value.rate {
    color: #1976d2;
}
input[disabled], .rate-input:disabled {
    background: #fff !important;
    color: #aaa !important;
    opacity: 1 !important;
    border: 1.5px solid #e0e0e0 !important;
}

/* 발행사 필터 스타일 */
.filter-container {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(30,40,80,0.07);
    border: 1px solid #e3f2fd;
}

.filter-row {
    display: flex;
    gap: 40px;
}

.filter-section {
    flex: 1;
    min-width: 0;
}

.filter-label {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    margin-bottom: 12px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #e3f2fd;
    border-color: #1976d2;
    color: #1976d2;
}

.filter-btn.active {
    background: #1976d2;
    border-color: #1976d2;
    color: white;
    font-weight: bold;
}

.filter-btn:disabled {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-btn:disabled:hover {
    background: #f5f5f5;
    border-color: #ddd;
    color: #999;
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .filter-container {
        padding: 12px 16px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* 계산기 버튼 스타일 */
.calculator-btn {
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-right: 8px;
}

.calculator-btn:hover {
    background: #1565c0;
}

.card-actions {
    display: flex;
    align-items: center;
}