/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    /* 모바일 최적화 */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 모바일 우선 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

/* 네비게이션 */
.navbar {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.navbar h1 a {
    text-decoration: none;
    color: #2563eb;
    font-size: 24px;
    font-weight: bold;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
    background: #f3f4f6;
    color: #333;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.logout-btn {
    text-decoration: none;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* 홈페이지 */
.hero {
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #1f2937;
}

.hero p {
    font-size: 18px;
    color: #6b7280;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    margin-bottom: 20px;
}

/* 버튼 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #e5e7eb;
    color: #374151;
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* 페이지 헤더 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h2 {
    font-size: 28px;
    color: #1f2937;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-selector label {
    font-weight: 500;
    color: #374151;
}

.date-selector input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* 탭 버튼 */
.tab-buttons {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 카드 */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #1f2937;
}

/* 멤버 리스트 */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.member-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

/* 출석 상태 버튼 */
.status-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-status {
    padding: 6px 12px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #e5e7eb;
    color: #6b7280;
}

.btn-status:hover {
    background: #d1d5db;
}

.btn-status.active {
    color: white;
}

.btn-present.active {
    background: #10b981;
}

.btn-absent.active {
    background: #f59e0b;
}

.btn-unauthorized.active {
    background: #ef4444;
}

.btn-late.active {
    background: #3b82f6;
}

/* 달성률 버튼 */
.achievement-buttons {
    display: flex;
    gap: 8px;
}

.btn-achievement {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #e5e7eb;
    color: #6b7280;
}

.btn-achievement:hover {
    background: #d1d5db;
}

.btn-achievement.active {
    color: white;
}

.btn-achieved.active {
    background: #10b981;
}

.btn-not-achieved.active {
    background: #ef4444;
}

/* 주간 뷰 */
.weekly-view {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.weekly-member {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    background: #f9fafb;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.member-header h4 {
    font-size: 18px;
    color: #1f2937;
}

.weekly-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.achievement-rate {
    font-size: 18px;
    font-weight: bold;
    color: #2563eb;
}

.achievement-count {
    font-size: 14px;
    color: #6b7280;
}

.weekly-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: white;
    border: 1px solid #e5e7eb;
}

.day-name {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 5px;
}

.day-number {
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
}

.status-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 12px;
    font-weight: bold;
}

.status-icon.achieved {
    background: #10b981;
    color: white;
}

.status-icon.not-achieved {
    background: #ef4444;
    color: white;
}

.status-icon.no-data {
    background: #e5e7eb;
    color: #9ca3af;
}

/* 메시지 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: #10b981;
    color: white;
}

.message.error {
    background: #ef4444;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.no-data {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-content {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
    }
    
    .user-nav {
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .status-buttons, .achievement-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .weekly-calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .calendar-day {
        padding: 8px 4px;
    }
} 