/* A-Square 청소 견적 관리 시스템 스타일 */

/* 기본 스타일 */
body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background-color: #f8f9fa;
}

/* 알림 메시지 — 우측 하단 토스트 스타일 */
.alert-modern {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    background: rgba(30, 41, 59, 0.92);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    max-width: 320px;
    animation: alertSlideIn 0.3s ease;
}

.alert-modern.success {
    background: rgba(5, 150, 105, 0.95);
}

.alert-modern.warning {
    background: rgba(217, 119, 6, 0.95);
}

.alert-modern.danger, .alert-modern.error {
    background: rgba(220, 38, 38, 0.95);
}

.alert-modern .alert-content {
    flex: 1;
}

.alert-modern .alert-message {
    font-size: 14px;
}

.alert-modern .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    font-size: 0.7rem;
    padding: 0;
}

.alert-modern .btn-close:hover {
    opacity: 1;
}

@keyframes alertSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 네비게이션 */
.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* 카드 스타일 */
.card {
    border: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
}

/* 버튼 스타일 */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

/* 테이블 스타일 */
.table {
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #f5f5f5;
}

/* 통계 카드 스타일 */
.stats-card {
    transition: transform 0.2s ease-in-out;
}

.stats-card:hover {
    transform: translateY(-2px);
}

.stats-card.draft {
    border-left: 4px solid #6c757d;
}

.stats-card.sent {
    border-left: 4px solid #007bff;
}

.stats-card.accepted {
    border-left: 4px solid #28a745;
}

/* 배지 스타일 */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* 상태 배지 */
.status-badge {
    font-size: 0.875em;
}

/* 금액 표시 */
.quote-amount {
    font-weight: bold;
    color: #1976d2;
    font-size: 1.1em;
}

/* 필터 폼 */
.filter-form .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.filter-form .form-select,
.filter-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.filter-form .form-select:focus,
.filter-form .form-control:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

/* 페이지네이션 */
.pagination .page-link {
    color: #1976d2;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    color: #1565c0;
    background-color: #e3f2fd;
    border-color: #1976d2;
}

.pagination .page-item.active .page-link {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* 액션 버튼 그룹 */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* 알림 메시지 */
.alert {
    border: none;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #cce7ff;
    color: #004085;
}

/* 빈 상태 */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 로딩 스피너 */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group {
        display: block;
    }

    .btn-group .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.25rem;
        border-radius: 6px !important;
    }

    .stats-card {
        margin-bottom: 1rem;
    }

    .filter-form .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* 태블릿 반응형 */
@media (max-width: 992px) {
    .table-responsive {
        font-size: 0.9rem;
    }

    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* 인쇄 스타일 */
@media print {
    .navbar,
    .btn,
    .pagination,
    .filter-form,
    .empty-state,
    .alert {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #dee2e6 !important;
    }

    body {
        background-color: white !important;
    }
}

/* 커스텀 유틸리티 클래스 */
.text-primary-custom {
    color: #1976d2 !important;
}

.bg-primary-custom {
    background-color: #1976d2 !important;
}

.border-primary-custom {
    border-color: #1976d2 !important;
}

.shadow-sm-custom {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.rounded-custom {
    border-radius: 8px !important;
}

/* 포커스 스타일 */
.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25);
}

/* 툴팁 스타일 */
.tooltip-inner {
    background-color: #212529;
    color: white;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #212529;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #212529;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #212529;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #212529;
}