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

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

/* 로그인 페이지 스타일 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f5f5f5;
    padding: 20px;
}

.login-content {
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.app-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    width: 120px;
    height: 120px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.app-title {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.app-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 80px;
    font-weight: 400;
}

.kakao-login-button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.kakao-login-button:hover {
    transform: scale(1.05);
}

.kakao-login-button img {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* 메인 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 스타일 */
header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-left .app-logo {
    margin-bottom: 0;
}

.header-left .logo-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    color: #333;
    font-size: 24px;
    margin: 0;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logout-button {
    padding: 8px 16px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.logout-button:hover {
    background: #d32f2f;
}

/* 액션 바 */
.action-bar {
    margin-bottom: 20px;
}

/* 버튼 스타일 */
.primary-button {
    padding: 12px 24px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    width: 100%;
}

.primary-button:hover {
    background: #d32f2f;
}

.secondary-button {
    padding: 12px 24px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.secondary-button:hover {
    background: #d0d0d0;
}

.back-button {
    padding: 8px 16px;
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.back-button:hover {
    background: #f5f5f5;
}

/* 발주 목록 */
.order-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-list h2 {
    margin-bottom: 20px;
    color: #333;
}

.no-orders {
    text-align: center;
    color: #666;
    padding: 40px;
}

.loading {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #d32f2f;
    padding: 40px;
    background-color: #ffebee;
    border-radius: 4px;
    margin: 20px 0;
}

.order-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: box-shadow 0.2s;
}

.order-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-info {
    flex: 1;
}

.order-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.order-number {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    background-color: transparent;
    border: 1px solid #000;
    padding: 6px 12px;
    border-radius: 16px;
}

.order-equipment {
    color: #1565c0;
    font-size: 14px;
    font-weight: 500;
    background-color: transparent;
    border: 1px solid #1565c0;
    padding: 6px 12px;
    border-radius: 16px;
}

.order-cancel {
    margin-left: auto;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    user-select: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.order-cancel:hover {
    background-color: #f5f5f5;
    color: #000;
}

.order-status {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #000;
}

.status-pending,
.status-PENDING {
    background: #fff3cd;
    color: #856404;
}

.status-bidding,
.status-BIDDING {
    background: #ffeb3b;
    color: #000;
}

.status-accepted,
.status-ACCEPTED {
    background: #f44336;
    color: #fff;
}

.status-approved,
.status-APPROVED {
    background: #d4edda;
    color: #155724;
}

.status-rejected,
.status-REJECTED {
    background: #f8d7da;
    color: #721c24;
}

.status-completed,
.status-COMPLETED {
    background: #cce5ff;
    color: #004085;
}

.order-details p {
    margin-bottom: 4px;
    color: #666;
}

.order-details p:first-child {
    color: #000;
    white-space: pre-wrap;
}

.order-details .bidding-count,
.order-details .bidding-count strong {
    color: #f44336;
}

.order-details .bidding-count.clickable {
    cursor: pointer;
    transition: opacity 0.2s;
}

.order-details .bidding-count.clickable:hover {
    opacity: 0.7;
}

/* 입찰 리스트 스타일 */
.bid-list {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bid-list-header {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.bid-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.bid-item.clickable-bid {
    cursor: pointer;
}

.bid-item.clickable-bid:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}


.bid-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 1;
}

.bid-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bid-rank {
    background: #333;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.bid-company {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.bid-location {
    color: #666;
    font-size: 14px;
}

.bid-price {
    font-weight: 600;
    color: #f44336;
    font-size: 15px;
}

.bid-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid #000;
}


.bid-details p {
    margin-bottom: 4px;
    color: #666;
    font-size: 14px;
}

.no-bids {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}

.order-details strong {
    color: #333;
}

/* 발주 신청 폼 */
.order-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FEE500;
}

.form-group textarea {
    resize: none;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 페이징 네비게이션 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pagination-btn {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: #e0e0e0;
    border-color: #ccc;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .order-content {
        flex-direction: column;
    }
    
    .equipment-image img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .order-header {
        flex-wrap: wrap;
    }
    
    .order-number,
    .order-equipment {
        font-size: 13px;
        padding: 4px 10px;
    }

    .pagination-controls {
        gap: 15px;
    }
    
    .page-info {
        font-size: 14px;
    }
}

/* 카톡상담 버튼 */
.kakao-consultation-btn {
    background-color: #FEE500;
    color: #000000;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kakao-consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}