* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #333; background-color: #f8f9fa; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { background: white; border-bottom: 1px solid #e9ecef; padding: 1rem 0; margin-bottom: 2rem; }
.header h1 { font-size: 1.5rem; font-weight: 600; }
.header a:not(.btn):not(.btn-secondary):not(.btn-danger) { text-decoration: none; color: #333; }

/* 버튼 스타일 - 강화된 specificity */
a.btn { 
    display: inline-block; 
    padding: 8px 16px; 
    background: #007bff; 
    color: white !important; 
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
}
a.btn:hover { 
    background: #0056b3; 
    color: white !important;
}

a.btn-secondary { 
    display: inline-block; 
    padding: 8px 16px; 
    background: #3cb34cff; 
    color: white !important;
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
}

a.btn-logout { 
    display: inline-block; 
    padding: 8px 16px; 
    background: #dc3545;  /* 빨간색 */
    color: white !important;
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
}
a.btn-logout:hover { 
    background: #c82333;  /* 진한 빨간색 */
    color: white !important;
}

a.btn-secondary:hover { 
    background: #545b62; 
    color: white !important;
}

a.btn-danger { 
    display: inline-block; 
    padding: 8px 16px; 
    background: #dc3545; 
    color: white !important;
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
}
a.btn-danger:hover { 
    background: #c82333; 
    color: white !important;
}

/* 저장/취소 버튼 전용 스타일 */
.btn-save,
button.btn-save { 
    display: inline-block; 
    padding: 12px 24px !important; /* 더 큰 패딩 */
    background: #28a745 !important; /* 녹색 */
    color: white !important; 
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 16px !important; /* 더 큰 글씨 */
    font-weight: 600; /* 굵은 글씨 */
}
.btn-save:hover,
button.btn-save:hover { 
    background: #218838 !important; /* 진한 녹색 */
    color: white !important;
}

.btn-cancel,
a.btn-cancel { 
    display: inline-block; 
    padding: 8px 16px; 
    background: #dc3545 !important; /* 빨간색 */
    color: white !important;
    text-decoration: none; 
    border-radius: 4px; 
    border: none; 
    cursor: pointer; 
    font-size: 14px; 
}
.btn-cancel:hover,
a.btn-cancel:hover { 
    background: #c82333 !important; /* 진한 빨간색 */
    color: white !important;
}

.card { background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); margin-bottom: 1rem; overflow: hidden; }
.card-body { padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; }
.form-control { width: 100%; padding: 10px; border: 1px solid #ced4da; border-radius: 4px; font-size: 14px; }
.form-control:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 2px rgba(0,123,255,0.25); }
textarea.form-control { min-height: 300px; resize: vertical; font-family: inherit; }
.text-muted { color: #6c757d; font-size: 0.875rem; }
.mt-2 { margin-top: 0.5rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .mr-2 { margin-right: 0.5rem; } .ml-2 { margin-left: 0.5rem; }
.d-flex { display: flex; } .justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; } .align-center { align-items: center; } .gap-2 { gap: 0.5rem; } .gap-1 { gap: 0.25rem; } .flex-wrap { flex-wrap: wrap; }
.note-content { white-space: pre-wrap; line-height: 1.7; }
.attachment-list { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e9ecef; }
.attachment-item { display: inline-block; margin-right: 1rem; margin-bottom: 0.5rem; }
.tag { display: inline-block; background: #e9ecef; color: #495057; padding: 2px 8px; border-radius: 12px; font-size: 12px; margin-right: 4px; margin-bottom: 4px; }

/* 푸터 스타일 */
.footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.copyright {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.footer-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

/* 모바일 햄버거 메뉴 스타일 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
    transform-origin: center;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid #e9ecef;
    margin-top: 1rem;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mobile-menu-item {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e9ecef;
    font-size: 16px;
    transition: background-color 0.2s;
}

.mobile-menu-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.mobile-menu-item.logout {
    color: #dc3545;
    font-weight: 500;
}

.mobile-menu-item.logout:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.mobile-menu-item:last-child {
    border-bottom: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .header h1 img {
        height: 80px !important;
    }
    
    .container {
        padding: 15px;
    }
    
    .header {
        padding: 0.5rem 0;
    }
    
    /* 햄버거 메뉴 애니메이션 */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}