/**
 * 빌딩 관리 시스템 - 메인 스타일시트
 * 부동산 관리 전문 솔루션
 */

/* 기본 리셋 및 폰트 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.text-primary{
    color: #ff2d7a !important;
}

.text-pink{
    color: #ff2d7a !important;
}

/* 컨테이너 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 헤더 */
.header {
    color: #111111;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header h1 i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.welcome-msg {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #ff2d7a;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #e0266c;
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #1e7e34;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* 네비게이션 */
.nav {
    background-color: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #dee2e6;
}

.nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #495057 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #ff2d7a !important;
    background-color: #e9ecef;
    border-bottom-color: #ff2d7a;
}

.nav-link i {
    margin-right: 0.5rem;
    width: 16px;
}

/* 메인 콘텐츠 */
.main {
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.page-header h2 {
    color: #495057;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #6c757d;
    font-size: 1rem;
}

/* 통계 카드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

/* 기존 통계 카드 아이콘 스타일 제거 - 새로운 스타일로 대체 */

.stat-content h3 {
    font-weight: 700;
    color: #495057;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* 대시보드 섹션 */
.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.dashboard-section h3 {
    background: #141414;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-size: 1.1rem;
}

.dashboard-section h3 i {
    margin-right: 0.5rem;
}

/* 테이블 */
.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

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

/* 배지 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-align: center;
}

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

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

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

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 알림 */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 4px solid;
}

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

.alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

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

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #ff2d7a;
    box-shadow: 0 0 0 0.2rem rgba(255,45,122,0.25);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* 카드 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background: #141414;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        margin: 0;
        box-shadow: none;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-link {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: #ff2d7a !important;
        background-color: #e9ecef;
        border-right-color: #ff2d7a;
        border-bottom-color: transparent;
    }
    
    .main {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff2d7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 실무 중심 스타일 */
.tips-container {
    padding: 1rem;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff2d7a;
}

.tip-item i {
    font-size: 1.2rem;
    color: #ff2d7a;
    margin-right: 1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.tip-item strong {
    display: block;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.tip-item p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.text-success { color: #28a745 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }
.text-info { color: #17a2b8 !important; }

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}

/* 보안 팁 스타일 */
.security-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #ff2d7a;
}

.security-tips h4 {
    color: #ff2d7a;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.security-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.security-tips li {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* 통계 카드 아이콘 스타일 - 실무 중심 아이콘들 */
.stat-card:nth-child(1) .stat-icon { background: linear-gradient(135deg, #ff2d7a, #ff5a96); } /* 건물 */
.stat-card:nth-child(2) .stat-icon { background: linear-gradient(135deg, #ff9fc1, #ff5a96); } /* 총 세대 */
.stat-card:nth-child(3) .stat-icon { background: linear-gradient(135deg, #ff9fc1, #ff5a96); } /* 입주 세대 */
.stat-card:nth-child(4) .stat-icon { background: linear-gradient(135deg, #43e97b, #38f9d7); } /* 빈 세대 */
.stat-card:nth-child(5) .stat-icon { background: linear-gradient(135deg, #fa709a, #fee140); } /* 이번 달 수입 */
.stat-card:nth-child(6) .stat-icon { background: linear-gradient(135deg, #ff9a9e, #fecfef); } /* 연체 건수 */

/* 클래스 기반 아이콘 스타일 */
.overdue-card .stat-icon { background: linear-gradient(135deg, #dc3545, #c82333); } /* 연체 건수 */
.contract-expiry .stat-icon { background: linear-gradient(135deg, #ff6b6b, #ee5a24); } /* 계약 만료 예정 */
.urgent-maintenance .stat-icon { background: linear-gradient(135deg, #fd7e14, #f39c12); } /* 긴급 유지보수 */
.safety-check .stat-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); } /* 안전점검 만료 */
.monthly-profit .stat-icon { background: linear-gradient(135deg, #27ae60, #2ecc71); } /* 이번 달 순이익 */

/* 아이콘 표시 보장 */
.stat-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    margin-right: 1rem !important;
    font-size: 1.5rem !important;
    color: white !important;
}

/* 긴급 알림 스타일 */
.urgent-alert {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.urgent-alert h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.urgent-alert p {
    margin: 0;
    opacity: 0.9;
}

/* 수익 표시 스타일 */
.profit-positive {
    color: #28a745;
    font-weight: 600;
}

.profit-negative {
    color: #dc3545;
    font-weight: 600;
}

/* 우선순위 배지 */
.priority-urgent {
    background-color: #dc3545;
    color: white;
}

.priority-high {
    background-color: #fd7e14;
    color: white;
}

.priority-medium {
    background-color: #ffc107;
    color: #212529;
}

.priority-low {
    background-color: #6c757d;
    color: white;
}

/* 관리 노하우 섹션 */
.management-tips {
    background: #141414;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.management-tips h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.tip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 연체 관리 스타일 */
.overdue-severe {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.overdue-moderate {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* 폼 관련 스타일 */
.form-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-inline .form-group {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
}

.btn-group .btn {
    margin: 0;
}

.building-info {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    display: inline-block;
}

.building-info .badge {
    margin-left: 0.5rem;
}

/* 테이블 개선 */
.table th {
    white-space: nowrap;
    font-size: 0.9rem;
}

.table td {
    vertical-align: middle;
}


.text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
    font-weight: normal;
}

/* 자동 생성 관련 스타일 */
.auto-generate-info {
    background: #141414;
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.auto-generate-info h4 {
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.auto-generate-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.auto-generate-info li {
    margin-bottom: 0.5rem;
}

.generation-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.generation-preview h5 {
    margin: 0 0 0.5rem 0;
    color: #495057;
}

.unit-preview {
    display: inline-block;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    margin: 0.25rem;
    font-size: 0.8rem;
    color: #495057;
}

/* 반응형 테이블 */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 800px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        margin-bottom: 0.25rem;
    }
    
}

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* 빌딩 시각화 */
.building-visualization {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.floor {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.floor-label {
    font-size: 18px;
    font-weight: 700;
    color: #e9e9e9;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #1f1f1f;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(255,45,122,0.15);
}

.units-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.unit {
    width: 120px;
    height: 100px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #ff2d7a;
}

.unit.occupied {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.unit.occupied:hover {
    border-color: #1e7e34;
    background: linear-gradient(135deg, #c3e6cb, #b8dacc);
}

.unit.vacant {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.unit.vacant:hover {
    border-color: #e0a800;
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
}

.unit.paid {
    border-color: #ff2d7a;
    background: linear-gradient(135deg, #ffe1ec, #ffc6da);
}

.unit.paid:hover {
    border-color: #e0266c;
    background: linear-gradient(135deg, #ffc6da, #ffb3cf);
}

.unit-number {
    font-size: 16px;
    font-weight: 700;
    color: #495057;
    text-align: center;
    margin-bottom: 5px;
}

.unit-type {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-bottom: 5px;
}

.tenant-name {
    font-size: 11px;
    font-weight: 600;
    color: #28a745;
    text-align: center;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tenant-name.paid-name {
    color: #ff2d7a;
    font-weight: 700;
}

.rent-amount {
    font-size: 10px;
    color: #155724;
    text-align: center;
    font-weight: 600;
}

.status-text {
    font-size: 12px;
    color: #856404;
    text-align: center;
    font-weight: 600;
    margin-top: auto;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px);
        opacity: 0;
    }
    to { 
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #ffffff;
    color: #111111;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffc107;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 반응형 빌딩 시각화 */
@media (max-width: 768px) {
    .units-row {
        justify-content: center;
    }
    
    .unit {
        width: 100px;
        height: 80px;
    }
    
    .unit-number {
        font-size: 14px;
    }
    
    .unit-type {
        font-size: 10px;
    }
    
    .tenant-name {
        font-size: 10px;
    }
    
    .rent-amount {
        font-size: 9px;
    }
    
    .status-text {
        font-size: 11px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 유지보수 관리 스타일 */
.monthly-stats {
    max-height: 300px;
    overflow-y: auto;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-month {
    font-weight: 600;
    color: #495057;
}

.stat-details {
    text-align: right;
}

.stat-count {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

.stat-cost {
    display: block;
    font-weight: 600;
    color: #dc3545;
}

.maintenance-description {
    max-width: 200px;
    word-wrap: break-word;
}

.badge {
    font-size: 0.75rem;
}

/* 연체일수 배지 스타일 개선 */
.badge-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 가이드 오버레이 스타일 */
.guide-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    z-index: 99999 !important;
    display: none;
    margin: 0 !important;
    padding: 0 !important;
}

.guide-spotlight {
    position: absolute !important;
    border: 3px solid #ff2d7a !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7) !important;
    background: transparent !important;
    z-index: 100000 !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
}

.guide-tooltip {
    position: absolute !important;
    background: #fff !important;
    border: 2px solid #ff2d7a !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 100001 !important;
    max-width: 300px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.guide-tooltip h4 {
    color: #ff2d7a !important;
    margin: 0 0 10px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.guide-tooltip p {
    margin: 0 0 15px 0 !important;
    color: #333 !important;
}

.guide-tooltip .btn {
    margin-right: 8px !important;
    margin-bottom: 5px !important;
    display: inline-block !important;
}

.guide-tooltip .btn-primary {
    background-color: #ff2d7a !important;
    border-color: #ff2d7a !important;
    color: #fff !important;
}

.guide-tooltip .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.guide-arrow {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    border: 10px solid transparent !important;
    pointer-events: none !important;
}

.guide-arrow.top { bottom: -20px !important; left: 50% !important; transform: translateX(-50%) !important; border-top-color: #ff2d7a !important; }

.guide-arrow.bottom { top: -20px !important; left: 50% !important; transform: translateX(-50%) !important; border-bottom-color: #ff2d7a !important; }

.guide-arrow.left { right: -20px !important; top: 50% !important; transform: translateY(-50%) !important; border-left-color: #ff2d7a !important; }

.guide-arrow.right { left: -20px !important; top: 50% !important; transform: translateY(-50%) !important; border-right-color: #ff2d7a !important; }

/* ——— Monotone + Hot Pink Theme Overrides ——— */
:root {
    --hotpink: #ff2d7a;
    --bg-dark: #f5f6f8; /* 페이지 배경 (라이트) */
    --bg-darker: #ffffff; /* 컨테이너/헤더 배경 */
    --bg-card: #ffffff; /* 카드/모달 배경 */
    --text-primary: #111111;
    --text-secondary: #555555;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.container {
    background-color: var(--bg-darker);
}

.header {
    background: var(--bg-darker);
}

.header h1 i {
    color: var(--hotpink);
}

.btn {
    background-color: var(--hotpink);
}

.btn:hover {
    background-color: #e0266c;
}

.btn-outline {
    border-color: var(--hotpink);
    color: var(--hotpink);
}

.btn-outline:hover {
    background-color: rgba(255, 45, 122, 0.15);
}

.nav {
    background-color: var(--bg-darker);
    border-bottom-color: #222;
}

.nav-link {
    color: #bdbdbd;
}

.nav-link:hover,
.nav-link.active {
    color: var(--hotpink) !important;
    background-color: #f3f3f4;
    border-bottom-color: var(--hotpink);
}

.page-header {
    border-bottom-color: #222;
}

.page-header h2 { color: var(--text-primary); }
.page-header p { color: var(--text-secondary); }

.card { background: var(--bg-card); }
.card-header { background: var(--bg-card); border-bottom: 2px solid var(--hotpink); color: var(--text-primary); }

.form-control { border-color: #d0d5db; background: #ffffff; color: var(--text-primary); }
.form-control:focus { border-color: var(--hotpink); box-shadow: 0 0 0 0.2rem rgba(255,45,122,0.25); }

.table th { background-color: #f3f3f4; color: #333333; }
.table td { color: var(--text-secondary); border-bottom-color: #ececec; }
.table tbody tr:hover { background-color: #f9f9f9; }

.badge-warning { background-color: #444 !important; color: var(--hotpink) !important; }
.badge-danger { background-color: var(--hotpink) !important; }

.security-tips { background: var(--bg-card); border-left-color: var(--hotpink); }
.security-tips h4 { color: var(--hotpink); }

.auto-generate-info { background: var(--bg-card); color: var(--text-primary); }
.floor-label { background: #f1f1f2; box-shadow: 0 2px 4px rgba(255,45,122,0.15); color: var(--text-primary); }
.unit:hover { border-color: var(--hotpink); }

.loading { border-color: #2a2a2a; border-top-color: var(--hotpink); }

/* 라이트 배경에서 닫기 버튼 가시성 개선 */
.modal-header .close { color: var(--text-primary); }
