/* static/styles/main.css */

body, html {
    height: 100%;
    margin: 0;
    background-color: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

/* 1. Navbar */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e3e6f0;
}
.navbar-brand, .nav-link {
    color: #4e73df !important;
    font-weight: 700;
}
.nav-link:hover {
    color: #224abe !important;
}
.nav-link.active {
    color: #224abe !important;
    border-bottom: 2px solid #224abe;
}

/* 2. Top Welcome Bar & Marquee Animation */
.top-welcome-bar {
    background-color: #4e73df;
    color: white;
    font-size: 0.9rem;
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    text-align: center;
    font-weight: 600;
}

.welcome-track {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* 3. Profit Marquee Section */
.marquee-container {
    height: auto;
    overflow: hidden;
    background: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    position: relative;
    white-space: nowrap;
    padding: 20px 0;
}

.marquee-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Profit Card (Inside Marquee) */
.profit-card {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    width: 220px;
    height: 145px;
    background: #ffffff;
    color: #5a5c69;
    border: 1px solid #e3e6f0;
    border-left: 4px solid #4e73df;
    border-radius: 8px;
    padding: 15px;
    margin-right: 15px;
    vertical-align: middle;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.profit-card:hover { transform: translateY(-3px); }

.profit-card h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #2e59d9;
}

/* 4. Chart Section */
.chart-section {
    height: 40vh;
    background: #ffffff;
    border-bottom: 1px solid #e3e6f0;
}

/* 5. General Cards (Dashboard) */
.card {
    background-color: #ffffff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}
.card:hover { transform: translateY(-3px); }

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
    color: #4e73df;
    font-weight: bold;
}

/* Card Border Colors */
.border-left-primary { border-left: 0.25rem solid #4e73df !important; }
.border-left-success { border-left: 0.25rem solid #1cc88a !important; }
.border-left-info    { border-left: 0.25rem solid #36b9cc !important; }
.border-left-warning { border-left: 0.25rem solid #f6c23e !important; }

/* Stats Text */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #858796;
}
.stat-val-black { color: #5a5c69; font-weight: bold; }
.stat-val-red { color: #e74a3b; font-weight: 900; }

/* 6. List Items (News/Notices) */
.list-group-item {
    border-bottom: 1px solid #f8f9fa !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 15px;
    font-size: 0.9rem;
    color: #5a5c69;
}
.list-group-item:last-child { border-bottom: none !important; }

/* 7. Invite Button */
.invite-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 2000;
    font-size: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #4e73df;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(78, 115, 223, 0.5);
    transition: transform 0.2s;
    cursor: pointer;
}
.invite-btn:active { transform: scale(0.9); }

/* Utilities */
.text-blue { color: #4e73df !important; }
.text-gray-800 { color: #5a5c69 !important; }
.fw-heavy { font-weight: 800; }
.cursor-pointer { cursor: pointer; }
/* ========================================
   모바일 반응형 — 768px / 480px
======================================== */
@media (max-width: 768px) {
    .top-welcome-bar { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
    .navbar-brand { font-size: 1rem; }
    .nav-link { font-size: 0.85rem; padding: 0.4rem 0.6rem !important; }
    .container, .container-fluid { padding-left: 0.85rem; padding-right: 0.85rem; }
    .card { padding: 0.85rem 1rem; }
    .card-body { padding: 0.85rem; }
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.2rem; }
    h3, h4, h5 { font-size: 1rem; }
    .btn { padding: 0.45rem 0.75rem; font-size: 0.82rem; }
    .table { font-size: 0.78rem; }
    .table th, .table td { padding: 0.4rem 0.45rem; }
    .form-control, .form-select { font-size: 0.85rem; padding: 0.45rem 0.65rem; }
}
@media (max-width: 480px) {
    body { font-size: 0.85rem; }
    .top-welcome-bar { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
    .navbar-brand { font-size: 0.92rem; }
    .nav-link { font-size: 0.78rem; padding: 0.3rem 0.45rem !important; }
    .container, .container-fluid { padding-left: 0.6rem; padding-right: 0.6rem; }
    .card { padding: 0.65rem 0.8rem; border-radius: 7px; }
    .btn { padding: 0.4rem 0.6rem; font-size: 0.76rem; }
    .btn-sm { padding: 0.3rem 0.5rem; font-size: 0.72rem; }
    .table { font-size: 0.72rem; }
    .table th, .table td { padding: 0.35rem 0.4rem; }
    .form-control, .form-select { font-size: 0.8rem; padding: 0.4rem 0.55rem; }
    .modal-dialog { margin: 0.5rem; }
    .modal-content { padding: 0.5rem; }
    iframe { max-height: 600px; }
}
