337 lines
8.3 KiB
CSS
337 lines
8.3 KiB
CSS
/* Asset Pilot - Final Integrated CSS */
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary-color: #2563eb; /* 하락: 파랑 */
|
|
--danger-color: #ef4444; /* 상승: 빨강 */
|
|
--success-color: #10b981;
|
|
--bg-color: #f8fafc;
|
|
--card-bg: #ffffff;
|
|
--text-primary: #161f2c;
|
|
--text-secondary: #64748b;
|
|
--border-color: #e2e8f0;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
background-color: var(--bg-color);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* ---------------------------------------------------------
|
|
⭐ 실시간 데이터 색상 (app.js profit/loss 연동)
|
|
--------------------------------------------------------- */
|
|
.profit {
|
|
color: var(--danger-color) !important;
|
|
}
|
|
|
|
.loss {
|
|
color: var(--primary-color) !important;
|
|
}
|
|
|
|
.numeric.profit, .numeric.loss {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* ---------------------------------------------------------
|
|
레이아웃 요소
|
|
--------------------------------------------------------- */
|
|
header {
|
|
background: var(--card-bg);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 32px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.status-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.status-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
background-color: var(--success-color);
|
|
animation: pulse 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.status-healthy { background-color: var(--success-color); }
|
|
.status-stale { background-color: var(--danger-color); }
|
|
|
|
/* 손익 요약 카드 */
|
|
.pnl-summary {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.pnl-card {
|
|
background: var(--card-bg);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.pnl-card.total {
|
|
background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
|
|
color: white;
|
|
}
|
|
|
|
.pnl-card.total .pnl-value,
|
|
.pnl-card.total .pnl-percent,
|
|
.pnl-card.total .profit,
|
|
.pnl-card.total .loss {
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
.pnl-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
/* 자산 테이블 */
|
|
.assets-section {
|
|
background: var(--card-bg);
|
|
border-radius: 12px;
|
|
padding: 24px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
th { background-color: var(--bg-color); color: var(--text-secondary); font-size: 14px; text-align: left; }
|
|
.numeric { text-align: right; }
|
|
|
|
td input {
|
|
width: 100%;
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* ---------------------------------------------------------
|
|
버튼 및 인터랙션
|
|
--------------------------------------------------------- */
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-primary { background-color: var(--primary-color); color: white; }
|
|
.btn-primary:hover { background-color: #1e40af; }
|
|
.btn-secondary { background-color: var(--border-color); color: var(--text-primary); }
|
|
|
|
.investing-btn {
|
|
display: inline-block;
|
|
padding: 4px 10px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: #4b5563;
|
|
background-color: #f3f4f6;
|
|
border: 1px solid #d1d5db;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
min-width: 85px;
|
|
text-align: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.investing-btn:hover {
|
|
background-color: var(--primary-color);
|
|
color: white !important;
|
|
border-color: #1e40af;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* ---------------------------------------------------------
|
|
🚨 최종 합체 모달 (중앙 고정 + 레이아웃 교정)
|
|
--------------------------------------------------------- */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 9999;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background-color: rgba(0, 0, 0, 0.6);
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal.active {
|
|
display: flex !important;
|
|
}
|
|
|
|
.modal .modal-content {
|
|
background-color: var(--card-bg);
|
|
border-radius: 16px !important;
|
|
width: 90% !important;
|
|
/* 선임님, 아까 300px로 줄이셨는데 내용이 많으면 400~500px이 적당합니다. */
|
|
max-width: 300px !important;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
|
|
animation: modalFade 0.3s ease-out;
|
|
}
|
|
|
|
@keyframes modalFade {
|
|
from { opacity: 0; transform: translateY(-20px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.modal .modal-header {
|
|
padding: 20px 24px !important; /* 창이 작아졌으니 패딩도 살짝 조절 */
|
|
border-bottom: 1px solid var(--border-color);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal .modal-header h2 {
|
|
font-size: 20px !important;
|
|
font-weight: 700 !important;
|
|
}
|
|
|
|
/* [교정] 중괄호 닫기 누락 및 내부 정렬 */
|
|
.modal .modal-body {
|
|
padding: 24px 32px !important;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.modal .setting-group {
|
|
width: 85% !important;
|
|
margin: 0 auto 12px auto !important;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal .setting-group:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.modal .setting-group h3 {
|
|
font-size: 14px !important;
|
|
margin-bottom: 10px !important;
|
|
text-align: center;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* 체크박스와 텍스트를 다시 가까이 붙이기 */
|
|
.modal .setting-group label {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start; /* [핵심] 왼쪽부터 차례대로 배치 */
|
|
width: 100%;
|
|
font-size: 14px !important;
|
|
margin-bottom: 8px !important;
|
|
cursor: pointer;
|
|
gap: 10px; /* [핵심] 체크박스와 텍스트 사이의 거리 (만리장성 철거) */
|
|
}
|
|
|
|
.modal .setting-group label:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
/* 체크박스 크기도 텍스트랑 밸런스 맞게 조절 */
|
|
.modal .setting-group input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0; /* 창이 좁아져도 체크박스가 찌그러지지 않게 */
|
|
}
|
|
|
|
/* 이번엔 진짜의 진짜! 숫자 입력창 중앙 정렬 */
|
|
.modal .setting-group input[type="number"] {
|
|
width: 90px !important;
|
|
height: 30px !important;
|
|
|
|
/* [핵심] 텍스트 중앙 정렬 */
|
|
text-align: right !important;
|
|
|
|
/* [핵심] 왼쪽 여백이 있으면 중앙이 틀어지므로 0으로 초기화 */
|
|
padding: 0 !important;
|
|
|
|
font-size: 14px !important;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
margin-left: auto;
|
|
|
|
/* 스핀 버튼(화살표) 때문에 중앙이 틀어져 보일 수 있으니 여백 제거 */
|
|
appearance: textfield; /* Firefox용 화살표 제거 (필요시) */
|
|
}
|
|
|
|
/* Chrome, Safari에서 숫자 화살표 때문에 중앙 정렬 안 맞는 것 방지 */
|
|
.modal .setting-group input[type="number"]::-webkit-inner-spin-button,
|
|
.modal .setting-group input[type="number"]::-webkit-outer-spin-button {
|
|
margin: 0;
|
|
}
|
|
|
|
.modal .modal-footer {
|
|
padding: 16px 24px !important;
|
|
border-top: 1px solid var(--border-color);
|
|
background-color: #f8fafc;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
.close { font-size: 32px; cursor: pointer; color: var(--text-secondary); }
|
|
.close:hover { color: var(--text-primary); }
|
|
|
|
/* 프리미엄 행 배경색 */
|
|
.premium-row td { background-color: #f8fafc !important; }
|
|
|
|
/* 푸터 및 반응형 */
|
|
footer { text-align: center; padding: 24px; color: var(--text-secondary); }
|
|
|
|
@media (max-width: 768px) {
|
|
.container { padding: 12px; }
|
|
.pnl-summary { grid-template-columns: 1fr; }
|
|
.modal .modal-content { width: 95% !important; }
|
|
} |