/**
 * DXCMS Attendance Skin — style.css v1.2.0
 */

/* ══ 공통 ══ */
.att-wrap { display:flex; flex-direction:column; gap:20px; }

/* ══ 헤더 ══ */
.att-header {
    display:flex; align-items:center; justify-content:space-between;
    flex-wrap:wrap; gap:12px;
    padding:22px 28px;
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:16px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.att-header-left { display:flex; flex-direction:column; gap:6px; }
.att-title {
    font-size:1.15rem; font-weight:800; color:var(--text-main,#1e293b);
    margin:0; display:flex; align-items:center; gap:8px;
}
.att-title i { color:#f59e0b; }
.att-stats {
    display:flex; align-items:center; gap:16px;
    font-size:.78rem; color:var(--text-muted,#64748b);
}
.att-stats i { margin-right:4px; }
.att-stats b { color:var(--text-main,#1e293b); font-weight:700; }

.att-btn-attend {
    display:inline-flex; align-items:center; gap:7px;
    padding:11px 24px;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff; border-radius:99px;
    font-size:.875rem; font-weight:700;
    text-decoration:none;
    box-shadow:0 4px 14px rgba(245,158,11,.3);
    transition:filter .15s, transform .12s;
    white-space:nowrap;
}
.att-btn-attend:hover { filter:brightness(1.08); transform:translateY(-1px); }

.att-done-badge {
    display:inline-flex; align-items:center; gap:7px;
    padding:11px 20px;
    background:rgba(16,185,129,.08);
    color:#059669; border:1px solid rgba(16,185,129,.2);
    border-radius:99px; font-size:.875rem; font-weight:700;
    white-space:nowrap;
}

/* ══ 개근왕 ══ */
.att-top-wrap {
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:14px; padding:18px 24px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.att-top-title {
    font-size:.8rem; font-weight:700; color:var(--text-muted,#64748b);
    margin-bottom:14px; display:flex; align-items:center; gap:6px;
}
.att-top-list {
    display:flex; flex-wrap:wrap; gap:10px;
}
.att-top-item {
    display:flex; align-items:center; gap:10px;
    padding:8px 14px 8px 10px;
    background:var(--bg,#f8fafc);
    border:1px solid var(--border,#e2e8f0);
    border-radius:99px;
    min-width:0;
}
.att-top-rank {
    width:22px; height:22px; border-radius:50%;
    background:#e2e8f0; color:#64748b;
    font-size:.65rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.att-rank-1 { background:#f59e0b; color:#fff; }
.att-rank-2 { background:#94a3b8; color:#fff; }
.att-rank-3 { background:#b45309; color:#fff; }

.att-top-av-img {
    width:32px; height:32px; border-radius:50%;
    object-fit:cover; flex-shrink:0;
    border:2px solid var(--border,#e2e8f0);
}
.att-top-av-txt {
    width:32px; height:32px; border-radius:50%;
    background:linear-gradient(135deg,#3b82f6,#6366f1);
    color:#fff; font-size:.75rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.att-top-info {
    display:flex; flex-direction:column; gap:1px;
    min-width:0;
}
.att-top-name {
    font-size:.82rem; font-weight:700;
    color:var(--text-main,#374151);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
    max-width:100px;
}
.att-top-cnt {
    font-size:.68rem; color:var(--p,#1a73e8); font-weight:700;
}

/* ══ 달력 ══ */
.att-cal-wrap {
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:16px; overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.att-cal-nav {
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 24px;
    border-bottom:1px solid var(--border,#e2e8f0);
    background:linear-gradient(135deg,#1e293b,#0f172a);
}
.att-cal-title { font-size:1rem; font-weight:700; color:#f1f5f9; }
.att-nav-btn {
    width:32px; height:32px; border-radius:50%;
    background:rgba(255,255,255,.1); color:rgba(255,255,255,.7);
    display:flex; align-items:center; justify-content:center;
    text-decoration:none; font-size:.8rem; transition:background .12s;
    flex-shrink:0;
}
.att-nav-btn:hover { background:rgba(255,255,255,.2); color:#fff; }

.att-cal-head {
    display:grid; grid-template-columns:repeat(7,1fr);
    background:#f8fafc;
    border-bottom:1px solid var(--border,#e2e8f0);
}
.att-dow {
    text-align:center; padding:10px 4px;
    font-size:.72rem; font-weight:700; color:var(--text-muted,#64748b);
}
.att-dow.att-sun { color:#ef4444; }
.att-dow.att-sat { color:#3b82f6; }

.att-cal-grid {
    display:grid; grid-template-columns:repeat(7,1fr);
}
.att-day {
    border-right:1px solid var(--border,#f1f5f9);
    border-bottom:1px solid var(--border,#f1f5f9);
    padding:8px 6px 6px;
    min-height:76px;
    display:flex; flex-direction:column; gap:4px;
}
.att-day:nth-child(7n) { border-right:none; }
.att-day-empty { background:#fafafa; }
.att-day-today { background:rgba(26,115,232,.04); }
.att-day-my-stamp { background:rgba(245,158,11,.04); }

.att-day-num {
    font-size:.75rem; font-weight:600;
    color:var(--text-main,#374151); line-height:1;
    width:22px; height:22px;
    display:flex; align-items:center; justify-content:center;
}
.att-day-sun .att-day-num { color:#ef4444; }
.att-day-sat .att-day-num { color:#3b82f6; }
.att-day-today .att-day-num {
    background:var(--p,#1a73e8); color:#fff;
    border-radius:50%; font-size:.7rem;
}

.att-day-stamps {
    display:flex; flex-wrap:wrap; gap:2px;
    margin-top:2px;
}
.att-stamp-img {
    width:20px; height:20px; border-radius:50%;
    object-fit:cover;
    border:1.5px solid #fff;
    box-shadow:0 1px 3px rgba(0,0,0,.1);
}
.att-stamp-av {
    width:20px; height:20px; border-radius:50%;
    background:linear-gradient(135deg,#64748b,#94a3b8);
    color:#fff; font-size:.55rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    border:1.5px solid #fff;
    box-shadow:0 1px 3px rgba(0,0,0,.1);
    flex-shrink:0;
}
.att-stamp-more {
    width:20px; height:20px; border-radius:50%;
    background:#e2e8f0; color:#64748b;
    font-size:.5rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
}
.att-day-cnt {
    font-size:.6rem; color:var(--p,#1a73e8); font-weight:700;
    margin-top:auto; text-align:right;
}

/* 개인 달력 도장 */
.att-my-stamp {
    font-size:1.2rem; color:#f59e0b;
    text-align:center; margin-top:auto;
    line-height:1;
}

/* ══ 오늘 출석 목록 ══ */
.att-today-wrap {
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:14px; overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.att-today-title {
    display:flex; align-items:center; gap:8px;
    padding:14px 20px;
    font-size:.875rem; font-weight:700; color:var(--text-main,#374151);
    border-bottom:1px solid var(--border,#e2e8f0);
    background:#f8fafc;
}
.att-today-cnt {
    font-size:.75rem; font-weight:700; color:var(--p,#1a73e8);
    background:rgba(26,115,232,.1); padding:2px 8px; border-radius:99px;
    margin-left:auto;
}
.att-today-list { display:flex; flex-direction:column; }
.att-today-item {
    display:flex; align-items:center; gap:12px;
    padding:12px 20px;
    border-bottom:1px solid #f1f5f9;
    transition:background .1s;
}
.att-today-item:last-child { border-bottom:none; }
.att-today-item:hover { background:#f8fafc; }
.att-today-av-img {
    width:38px; height:38px; border-radius:50%;
    object-fit:cover; flex-shrink:0;
    border:2px solid var(--border,#e2e8f0);
}
.att-today-av-txt {
    width:38px; height:38px; border-radius:50%;
    background:linear-gradient(135deg,#3b82f6,#6366f1);
    color:#fff; font-size:.82rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.att-today-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.att-today-name { font-size:.875rem; font-weight:700; color:var(--text-main,#374151); }
.att-today-msg  { font-size:.78rem; color:var(--text-muted,#64748b); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.att-today-stamp { font-size:1.3rem; color:#f59e0b; flex-shrink:0; }

/* ══ 출석 글쓰기 ══ */
.att-write-wrap {
    display:flex; align-items:flex-start; justify-content:center;
    padding:20px 0;
}
.att-write-card {
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:20px; padding:40px 36px;
    width:100%; max-width:480px;
    box-shadow:0 4px 24px rgba(0,0,0,.07);
    text-align:center;
}
.att-write-hero { margin-bottom:28px; }
.att-write-stamp-icon {
    width:72px; height:72px; border-radius:50%;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff; font-size:2rem;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 16px;
    box-shadow:0 8px 24px rgba(245,158,11,.3);
}
.att-write-title { font-size:1.25rem; font-weight:800; color:var(--text-main,#1e293b); margin:0 0 6px; }
.att-write-date  { font-size:.875rem; color:var(--text-muted,#64748b); margin:0 0 14px; }
.att-write-point-badge {
    display:inline-flex; align-items:center; gap:6px;
    padding:5px 14px; border-radius:99px;
    background:rgba(245,158,11,.1); color:#b45309;
    border:1px solid rgba(245,158,11,.2);
    font-size:.78rem; font-weight:700;
}
.att-write-field { text-align:left; margin-bottom:20px; }
.att-write-label {
    display:flex; align-items:center; gap:6px;
    font-size:.78rem; font-weight:700; color:var(--text-muted,#64748b);
    margin-bottom:8px;
}
.att-write-optional { font-weight:400; color:#94a3b8; }
.att-write-input {
    width:100%; padding:12px 16px;
    border:1.5px solid var(--border,#e2e8f0);
    border-radius:12px; font-size:.9rem; font-family:inherit;
    color:var(--text-main,#374151); background:var(--bg,#f8fafc);
    outline:none; transition:all .15s; box-sizing:border-box;
}
.att-write-input:focus {
    border-color:#f59e0b;
    box-shadow:0 0 0 3px rgba(245,158,11,.1);
    background:var(--bg-card,#fff);
}
.att-write-charcount {
    text-align:right; font-size:.7rem; color:var(--text-muted,#94a3b8); margin-top:4px;
}
.att-write-actions { display:flex; gap:10px; }
.att-btn-cancel {
    flex:1; padding:12px; border-radius:12px;
    border:1.5px solid var(--border,#e2e8f0);
    background:#fff; color:var(--text-muted,#64748b);
    font-size:.875rem; font-weight:700; text-decoration:none;
    display:flex; align-items:center; justify-content:center; gap:6px;
    transition:all .12s;
}
.att-btn-cancel:hover { background:#f1f5f9; }
.att-btn-submit {
    flex:2; padding:12px; border-radius:12px; border:none;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff; font-size:.9rem; font-weight:800; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:7px;
    font-family:inherit; transition:filter .15s;
    box-shadow:0 4px 14px rgba(245,158,11,.3);
}
.att-btn-submit:hover { filter:brightness(1.07); }
.att-btn-submit:disabled { opacity:.7; cursor:not-allowed; }

/* ══ view — 개인 달력 ══ */
.att-view-back { padding-bottom:4px; }
.att-back-link {
    display:inline-flex; align-items:center; gap:6px;
    font-size:.82rem; color:var(--text-muted,#64748b);
    text-decoration:none; transition:color .12s;
}
.att-back-link:hover { color:var(--p,#1a73e8); }

.att-profile-card {
    display:flex; align-items:center; gap:24px;
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:16px; padding:24px 28px;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    flex-wrap:wrap;
}
.att-profile-av-img {
    width:68px; height:68px; border-radius:50%;
    object-fit:cover; flex-shrink:0;
    border:3px solid var(--border,#e2e8f0);
}
.att-profile-av-txt {
    width:68px; height:68px; border-radius:50%;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff; font-size:1.6rem; font-weight:800;
    display:flex; align-items:center; justify-content:center;
    flex-shrink:0;
}
.att-profile-av-wrap { flex-shrink:0; }
.att-profile-info { flex:1; min-width:160px; }
.att-profile-name {
    font-size:1.1rem; font-weight:800; color:var(--text-main,#1e293b);
    margin-bottom:14px;
}
.att-profile-stats {
    display:flex; gap:0;
    border:1px solid var(--border,#e2e8f0); border-radius:12px;
    overflow:hidden; background:#f8fafc;
}
.att-stat-item {
    flex:1; display:flex; flex-direction:column;
    align-items:center; gap:3px; padding:12px 8px;
    border-right:1px solid var(--border,#e2e8f0);
}
.att-stat-item:last-child { border-right:none; }
.att-stat-num {
    font-size:1.3rem; font-weight:800;
    color:var(--text-main,#1e293b); line-height:1;
}
.att-streak-num { color:#f59e0b; }
.att-stat-label {
    font-size:.65rem; color:var(--text-muted,#64748b);
    font-weight:600; white-space:nowrap;
}

/* ══ 만근 ══ */
.att-perfect-badge {
    font-size:.65rem; font-weight:700;
    color:#b45309; background:rgba(245,158,11,.15);
    padding:1px 6px; border-radius:4px; margin-left:4px;
    border:1px solid rgba(245,158,11,.3);
    display:inline-block;
}
.att-perfect-banner {
    display:flex; align-items:center; gap:10px;
    margin-top:14px; padding:12px 16px;
    background:linear-gradient(135deg,rgba(245,158,11,.1),rgba(239,68,68,.06));
    border:1px solid rgba(245,158,11,.25);
    border-radius:12px; font-size:.82rem;
    color:#92400e; font-weight:600;
}
.att-perfect-banner i { color:#f59e0b; font-size:1.1rem; flex-shrink:0; }
.att-perfect-banner b { color:#b45309; }

/* ══ 출석 메시지 목록 ══ */
.att-msg-list-wrap {
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:14px; overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.att-msg-list { display:flex; flex-direction:column; }
.att-msg-item {
    display:flex; align-items:center; gap:10px;
    padding:11px 20px;
    border-bottom:1px solid #f1f5f9;
    font-size:.82rem;
}
.att-msg-item:last-child { border-bottom:none; }
.att-msg-date {
    color:var(--text-muted,#94a3b8); font-weight:600;
    flex-shrink:0; width:38px; font-size:.75rem;
}
.att-msg-stamp { color:#f59e0b; font-size:.8rem; flex-shrink:0; }
.att-msg-text { flex:1; color:var(--text-main,#374151); }

/* ══ 반응형 ══ */
@media (max-width:640px) {
    .att-header { padding:16px 18px; }
    .att-top-wrap { padding:14px 16px; }
    .att-top-item { padding:6px 10px 6px 8px; }
    .att-top-name { max-width:70px; }
    .att-day { min-height:52px; padding:5px 3px 4px; }
    .att-day-num { font-size:.68rem; width:18px; height:18px; }
    .att-stamp-img, .att-stamp-av { width:16px; height:16px; font-size:.45rem; }
    .att-profile-card { padding:18px; gap:16px; }
    .att-profile-av-img, .att-profile-av-txt { width:52px; height:52px; font-size:1.2rem; }
    .att-stat-num { font-size:1.1rem; }
    .att-write-card { padding:28px 18px; }
}

/* ══ 포인트 안내 모달 ══ */

/* 포인트 안내 버튼 (list + write 공통) */
.att-point-info-btn,
button.att-write-point-badge {
    display:inline-flex; align-items:center; gap:5px;
    padding:4px 12px; border-radius:99px;
    background:rgba(245,158,11,.1); color:#b45309;
    border:1px solid rgba(245,158,11,.25);
    font-size:.75rem; font-weight:700;
    cursor:pointer; font-family:inherit;
    transition:all .15s; white-space:nowrap;
}
.att-point-info-btn:hover,
button.att-write-point-badge:hover {
    background:rgba(245,158,11,.2);
    border-color:rgba(245,158,11,.4);
}

/* 모달 카드 */
.att-modal-card {
    background:var(--bg-card,#fff);
    border-radius:24px;
    padding:36px 32px 28px;
    width:100%; max-width:420px;
    box-shadow:0 24px 60px rgba(0,0,0,.18);
    position:relative;
    animation:att-modal-in .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes att-modal-in {
    from { opacity:0; transform:scale(.92) translateY(12px); }
    to   { opacity:1; transform:scale(1) translateY(0); }
}

.att-modal-close {
    position:absolute; top:16px; right:16px;
    width:30px; height:30px; border-radius:50%;
    background:#f1f5f9; border:none; cursor:pointer;
    color:#64748b; font-size:.8rem;
    display:flex; align-items:center; justify-content:center;
    transition:all .12s;
}
.att-modal-close:hover { background:#e2e8f0; color:#374151; }

.att-modal-icon {
    width:64px; height:64px; border-radius:50%;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff; font-size:1.6rem;
    display:flex; align-items:center; justify-content:center;
    margin:0 auto 16px;
    box-shadow:0 8px 20px rgba(245,158,11,.3);
}
.att-modal-title {
    font-size:1.2rem; font-weight:800; color:var(--text-main,#1e293b);
    text-align:center; margin:0 0 6px;
}
.att-modal-desc {
    font-size:.82rem; color:var(--text-muted,#64748b);
    text-align:center; margin:0 0 24px;
}

/* 포인트 항목 */
.att-modal-items {
    display:flex; flex-direction:column; gap:10px;
    margin-bottom:20px;
}
.att-modal-item {
    display:flex; align-items:center; gap:12px;
    padding:14px 16px;
    background:var(--bg,#f8fafc);
    border:1px solid var(--border,#e2e8f0);
    border-radius:14px;
}
.att-modal-item-icon {
    width:40px; height:40px; border-radius:12px;
    display:flex; align-items:center; justify-content:center;
    font-size:1rem; flex-shrink:0;
}
.att-modal-item-info {
    flex:1; min-width:0;
    display:flex; flex-direction:column; gap:3px;
}
.att-modal-item-label {
    font-size:.875rem; font-weight:700; color:var(--text-main,#374151);
}
.att-modal-item-desc {
    font-size:.72rem; color:var(--text-muted,#64748b); line-height:1.4;
}
.att-modal-item-point {
    font-size:1.1rem; font-weight:800; color:#f59e0b;
    flex-shrink:0; white-space:nowrap;
}

/* 유의사항 */
.att-modal-notice {
    display:flex; gap:10px; align-items:flex-start;
    padding:12px 14px;
    background:rgba(99,102,241,.06);
    border:1px solid rgba(99,102,241,.15);
    border-radius:12px; margin-bottom:20px;
    font-size:.75rem; color:#4f46e5;
}
.att-modal-notice i { margin-top:1px; flex-shrink:0; font-size:.85rem; }
.att-modal-notice ul {
    margin:0; padding:0 0 0 4px;
    list-style:none; display:flex; flex-direction:column; gap:4px;
}
.att-modal-notice ul li::before {
    content:'·'; margin-right:5px; font-weight:700;
}

/* 확인 버튼 */
.att-modal-confirm {
    width:100%; padding:13px;
    border-radius:12px; border:none;
    background:linear-gradient(135deg,#f59e0b,#ef4444);
    color:#fff; font-size:.9rem; font-weight:800;
    cursor:pointer; font-family:inherit;
    display:flex; align-items:center; justify-content:center; gap:7px;
    box-shadow:0 4px 14px rgba(245,158,11,.3);
    transition:filter .15s;
}
.att-modal-confirm:hover { filter:brightness(1.07); }

/* 반응형 */
@media (max-width:480px) {
    .att-modal-card { padding:28px 20px 22px; border-radius:20px; }
}

/* ══ 날짜 클릭 메시지 패널 ══ */
.att-msg-panel {
    background:var(--bg-card,#fff);
    border:1px solid var(--border,#e2e8f0);
    border-radius:14px; overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.04);
    animation:att-fadein .18s ease;
}
@keyframes att-fadein {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
}
.att-msg-panel-close {
    margin-left:auto; background:none; border:none;
    cursor:pointer; color:var(--text-muted,#94a3b8);
    font-size:.85rem; padding:2px 4px; border-radius:4px;
    transition:color .12s;
}
.att-msg-panel-close:hover { color:var(--text-main,#374151); }

/* 출석한 날 달력 셀 hover */
.att-day-my-stamp:hover {
    background:rgba(245,158,11,.1) !important;
    box-shadow:inset 0 0 0 1.5px rgba(245,158,11,.3);
}

/* ══ 달력 날짜 hover (모든 날 클릭 가능) ══ */
.att-day:not(.att-day-empty) {
    transition: background .12s;
}
.att-day:not(.att-day-empty):hover {
    background: rgba(26,115,232,.05) !important;
    box-shadow: inset 0 0 0 1.5px rgba(26,115,232,.2);
}
.att-day-my-stamp:hover {
    background: rgba(245,158,11,.1) !important;
    box-shadow: inset 0 0 0 1.5px rgba(245,158,11,.3) !important;
}
.att-day-has:hover {
    background: rgba(16,185,129,.06) !important;
    box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.25) !important;
}

/* ══ 날짜 모달 빈 상태 ══ */
.att-day-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    color: var(--text-muted, #94a3b8);
    font-size: .85rem;
    text-align: center;
}
.att-day-modal-empty i {
    font-size: 2rem;
    color: #cbd5e1;
}
