/* ═══════════════════════════════════════════════════════ */
/*  BidChecker - 입찰정보 웹사이트 스타일              */
/* ═══════════════════════════════════════════════════════ */

:root {
    --primary-color: #1a73e8;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --danger-color: #ea4335;
    --light-gray: #f5f5f5;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 네비게이션 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

/* 카드 레이아웃 */
.bid-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
}

.bid-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.bid-card-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.bid-source {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.bid-source.g2b {
    background-color: #1a6b3c;
}

.bid-source.alio {
    background-color: #1a4b8c;
}

.bid-source.hospital {
    background-color: #7a3b1e;
}

.bid-keyword {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    margin-left: 0.5rem;
}

.bid-keyword.credit {
    background-color: #c0392b;
}

.bid-keyword.van {
    background-color: #7d3c98;
}

.bid-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.bid-card-title:hover {
    color: var(--primary-color);
}

.bid-org {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

.bid-card-body {
    padding: 1rem;
}

.bid-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.bid-date {
    font-size: 0.9rem;
    color: #6b7280;
}

.bid-date i {
    margin-right: 0.25rem;
}

.bid-attachment {
    font-size: 0.9rem;
    color: #6b7280;
}

.bid-attachment i {
    margin-right: 0.25rem;
}

.bid-actions {
    display: flex;
    gap: 0.5rem;
}

.bid-actions button {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid #d1d5db;
    background-color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bid-actions button:hover {
    background-color: #f3f4f6;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.bid-actions button.bookmarked {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.bid-actions button.bookmarked:hover {
    background-color: #1557b0;
}

/* 통계 카드 */
.stat-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .card-title {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* 검색/필터 */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #d1d5db;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

/* 페이지네이션 */
.pagination {
    gap: 0.25rem;
}

.page-link {
    border-radius: 4px;
    border: 1px solid #d1d5db;
    color: var(--primary-color);
}

.page-link:hover {
    background-color: #f3f4f6;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 모달 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #d1d5db;
}

.modal-title {
    font-weight: 600;
    color: #1f2937;
}

/* 버튼 */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 6px;
}

.btn-primary:hover, .btn-primary:active {
    background-color: #1557b0;
    border-color: #1557b0;
}

.btn-outline-primary, .btn-outline-secondary {
    border-radius: 6px;
}

/* 헤더 */
.container h2 {
    color: #1f2937;
    font-weight: 700;
}

.text-muted {
    color: #6b7280 !important;
}

/* 에러/로딩 */
.spinner-border {
    color: var(--primary-color);
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

/* 반응형 */
@media (max-width: 768px) {
    .bid-card-title {
        font-size: 1rem;
    }

    .bid-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .bid-date {
        margin-bottom: 0.5rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .bid-actions {
        gap: 0.25rem;
    }

    .bid-actions button {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bid-card {
    animation: fadeIn 0.3s ease;
}

/* 스크롤 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
