/* ============================================
   Frontend Styles - 美日金达
   ============================================ */

* { box-sizing: border-box; }

body {
    background: #f8f9fa;
    padding-bottom: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

.card {
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    width: 100%;
    overflow: hidden;
}

.table-responsive { overflow-x: auto; }

table {
    min-width: 100%;
    white-space: nowrap;
}

/* Pagination */
.pagination-box {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap !important;
    gap: 4px;
    padding-bottom: 5px;
}

.pagination-box .btn {
    flex-shrink: 0;
    min-width: 36px;
}

/* Clock Button */
.clock-btn {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    font-size: 24px;
    background: #0d6efd;
    color: white;
    border: none;
    transition: .3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.clock-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.clock-btn:active { transform: scale(.98); }

.clock-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

/* Lunar text */
.lunar-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 4px;
    display: block;
    min-height: 1.2em;
}

/* Address cell */
.address-cell { text-align: left; }

.target-name {
    color: #198754;
    font-weight: 500;
}

/* Footer */
.footer {
    text-align: center;
    padding: 15px 0 5px 0;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 15px;
}

.footer a {
    color: #6c757d;
    text-decoration: none;
}

.footer a:hover { color: #0d6efd; }

/* Long-press styles */
tr.target-unmatched,
tr.target-matched {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

tr.target-unmatched:active {
    background: rgba(13, 110, 253, 0.08) !important;
}

tr.target-matched:active {
    background: rgba(25, 135, 84, 0.08) !important;
}

/* Toast positioning */
.toast-container {
    position: fixed;
    top: 80px;
    right: 16px;
    z-index: 9999;
}
