/* PLANBEAR 글래스모피즘 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FFD700;
    --secondary: #1A1A2E;
    --white: #FFFFFF;
    --glass-bg: rgba(26, 26, 46, 0.85);
    --glass-border: rgba(255, 215, 0, 0.3);
    --shadow: rgba(0, 0, 0, 0.3);
    --text-dark: #1A1A2E;
    --success: #00D9FF;
    --warning: #FF6B6B;
}

body {
    font-family: 'Segoe UI', 'Noto Sans KR', 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    min-height: 100vh;
    background: linear-gradient(135deg, #0F0F23 0%, #1A1A2E 50%, #16213E 100%);
    position: relative;
    overflow-x: hidden;
}

/* 헤더 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}

.header-logo {
    height: 40px;
    opacity: 0.9;
}

/* 컨테이너 */
.container {
    padding: 80px 20px 80px;
    max-width: 768px;
    margin: 0 auto;
    min-height: 100vh;
}

/* 글라스 카드 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
}

/* 버튼 */
.btn-large {
    width: 100%;
    padding: 24px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1A1A2E;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
    position: relative;
    overflow: hidden;
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

.btn-large:hover {
    background: linear-gradient(135deg, #FFA500, #FFD700);
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-checkout {
    background: linear-gradient(135deg, #00D9FF, #0099CC);
}

/* 폼 요소 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #FFFFFF;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: #FFFFFF;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FFD700;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* 하단 네비게이션 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: #FFD700;
    background: rgba(255, 255, 255, 0.1);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #FFFFFF;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.modal-content h3,
.modal-content p,
.modal-content label {
    color: #FFFFFF;
}

/* 토스트 */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 30px;
    color: #FFFFFF;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3000;
}

.toast.show {
    opacity: 1;
    bottom: 100px;
}

/* 로그아웃 버튼 */
.btn-logout {
    margin-top: 12px;
    padding: 6px 16px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.5);
}

/* 헤더 로그아웃 버튼 */
.btn-logout-header {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.5);
    padding: 6px 16px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout-header:hover {
    background: rgba(255, 215, 0, 0.3);
    border-color: #FFD700;
    transform: translateY(-1px);
}

/* 날짜별 그룹 스타일 */
.date-group {
    margin-bottom: 30px;
}

.date-group h4 {
    background: rgba(255, 215, 0, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 16px;
    color: #FFD700 !important;
}

.date-group span {
    color: #FFFFFF !important;
}

/* 체크박스 스타일 개선 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 6px;
    vertical-align: middle;
    accent-color: #FFD700;
}

.form-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    vertical-align: middle;
    accent-color: #FFD700;
}

/* 시간 입력 필드 */
input[type="time"],
input[type="date"] {
    font-size: 16px;
    color-scheme: dark;
    background-color: rgba(26, 26, 46, 0.9) !important;
    color: #FFFFFF !important;
}

/* 날짜/시간 입력 아이콘 색상 */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-clock-picker-indicator {
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-clock-picker-indicator:hover {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px #FFD700) !important;
}

/* Firefox 지원 */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-clock-picker-indicator {
    filter: brightness(0) invert(1) !important;
}

/* 금지기간 스타일 */
.restriction-notice {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    padding: 12px;
    border-radius: 8px;
    color: #FF6B6B;
}

/* 공지사항 박스 */
.notice-box {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

/* textarea 스타일 */
textarea.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: #FFFFFF;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

/* 텍스트영역 스타일 */
.work-reason-textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.6;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    background: rgba(26, 26, 46, 0.8);
    color: #FFFFFF;
    resize: none;
    transition: all 0.3s ease;
}

.work-reason-textarea:focus {
    min-height: 150px;
    outline: none;
    border-color: #FFD700;
    background: rgba(26, 26, 46, 0.95);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

/* 시간 표시 럭셔리 스타일 */
.current-time {
    color: #FFD700;
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.current-date {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

/* 사용자 이름과 상태 */
.user-name {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-status {
    color: #FFFFFF;
    font-size: 1.1rem;
}

/* 카드 내부 모든 텍스트 */
.glass-card p,
.glass-card span,
.glass-card div {
    color: #FFFFFF;
}

/* 실시간 현황 텍스트 */
.feed-list .feed-item {
    color: #FFFFFF;
}

.feed-list .feed-item span {
    color: #FFFFFF !important;
}

.feed-list .feed-item div[style*="color"] {
    color: #FFFFFF !important;
}

.feed-item {
    color: #FFFFFF;
}

.feed-item div {
    color: #FFFFFF;
}

/* 근무 사유 텍스트 */
.feed-item div[style*="font-size: 14px"] {
    color: rgba(255, 255, 255, 0.95) !important;
}

.feed-item div[style*="font-size: 12px"] {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* 테이블 텍스트 */
table {
    color: #FFFFFF !important;
}

table th,
table td {
    color: #FFFFFF !important;
}

/* 직원별 구분선 */
.feed-item.with-divider {
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.feed-item:last-child {
    border-bottom: none;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* 확인완료 뱃지 스타일 */
.feed-badge-locked {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3px 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feed-badge-locked:hover {
    background: rgba(255, 215, 0, 0.25);
    border-color: rgba(255, 215, 0, 0.5);
}

/* 차량비 뱃지는 기존 스타일 유지 */
.feed-badge:not(.feed-badge-locked) {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
}

/* 내 기록 통계 그리드 - 컴팩트 버전 */
.stats-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.stats-grid-compact .stat-card {
    padding: 0.75rem;
}

/* 내 기록 일자별 구분선 */
.my-record-item {
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    padding-bottom: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.my-record-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.my-record-item > div:first-child {
    flex: 1;
}

/* 스크롤 영역 조정 */
.records-scroll-area {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 8px;
}

/* 스크롤바 스타일 */
.records-scroll-area::-webkit-scrollbar,
.work-reason-textarea::-webkit-scrollbar {
    width: 6px;
}

.records-scroll-area::-webkit-scrollbar-track,
.work-reason-textarea::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.records-scroll-area::-webkit-scrollbar-thumb,
.work-reason-textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 3px;
}

.records-scroll-area::-webkit-scrollbar-thumb:hover,
.work-reason-textarea::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* 기록 액션 버튼 */
.record-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

/* 날짜/시간 그리드 정렬 */
.datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: center;
}

/* 모달 버튼 컨테이너 */
.modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-buttons .btn-large {
    flex: 1;
    padding: 12px 24px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 취소 버튼 스타일 */
.btn-cancel {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: #FFFFFF;
}

.btn-cancel:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
    transform: scale(1.02);
}

/* 애니메이션 */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes toastShow {
    0% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(20px);
    }
    100% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes toastHide {
    0% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(0);
    }
    100% { 
        opacity: 0; 
        transform: translateX(-50%) translateY(-20px);
    }
}

/* 반응형 */
@media (max-width: 768px) {
    .container {
        padding: 70px 16px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        padding: 20px;
        margin: 10px;
    }
    
    .datetime-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .datetime-grid {
        grid-template-columns: 1fr;
    }
}

/* 데스크톱에서는 가로 배치 */
@media (min-width: 769px) {
    .datetime-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}