/* Apple??????CSS - ??? */
:root {
  --apple-primary: #0a84ff;
  --apple-secondary: #6e6e73;
  --apple-dark: #1d1d1f;
  --apple-medium: #424245;
  --apple-light: #f2f3f7;
  --apple-white: #ffffff;
  --apple-border: #d2d2d7;
  --apple-success: #34c759;
  --apple-warning: #ff9f0a;
  --apple-error: #ff3b30;
  --apple-shadow: rgba(29, 29, 31, 0.08);
  --apple-radius: 12px;
  --apple-radius-sm: 8px;
  --apple-transition: all 0.25s ease;
  --apple-primary-soft: rgba(10, 132, 255, 0.12);
  --apple-review: #5e5ce6;
  --surface-elevated: rgba(255, 255, 255, 0.82);
  --font-sans: "IBM Plex Sans JP", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

/* ?????? */
body {
  font-family: var(--font-sans);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  color: var(--apple-dark);
  background-color: var(--apple-light);
  background-image:
    radial-gradient(900px 420px at 8% -8%, rgba(10, 132, 255, 0.10), transparent 55%),
    radial-gradient(700px 360px at 100% 0%, rgba(90, 98, 120, 0.08), transparent 50%),
    linear-gradient(180deg, #eef1f6 0%, #f5f6fa 42%, #eef0f5 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.header {
  background: var(--surface-elevated);
  padding: 0.7rem 1rem;
  box-shadow: 0 1px 0 rgba(210, 210, 215, 0.55);
  position: sticky;
  top: 0;
  z-index: 130;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(210, 210, 215, 0.65);
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-logo {
  height: 34px;
  vertical-align: middle;
  margin-right: 12px;
}


.header-content {
  display: flex;
  justify-content: center; /* ???? */
  align-items: center;
  width: 100%;
  position: relative; /* ?????????????????? */
}

.header-content h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--apple-dark);
  width: 100%;
  text-align: center;
}

.app-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.app-brand-name {
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.app-brand-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--apple-secondary);
  letter-spacing: 0.04em;
}


.main-content {
  padding: 1.25rem 1rem 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

/* ????????? */
.project-list {
  max-width: 1000px;
  margin: 0 auto;
}

.action-buttons {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ??????? */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--apple-radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--apple-transition);
  text-align: center;
  border: none;
  background: var(--apple-white);
  color: var(--apple-dark);
  box-shadow: 0 1px 3px var(--apple-shadow);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--apple-primary);
  color: var(--apple-white);
}

.btn-primary:hover {
  background-color: #005fc4;
}

.btn-danger {
  background-color: var(--apple-error);
  color: var(--apple-white);
}

.btn-danger:hover {
  background-color: #e63028;
}

.btn-info {
  background-color: var(--apple-medium);
  color: var(--apple-white);
}

.btn-info:hover {
  background-color: #3a3a3c;
}

/* ?????????? */
.filter-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* ???????????????? */
select.form-control {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--apple-dark);
  background-color: var(--apple-white);
  border: none;
  border-radius: 18px;
  padding: 8px 35px 8px 20px;
  margin-left: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  width: auto;
  min-width: 190px;
  max-width: 220px;
  cursor: pointer;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230071e3' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  text-align: center;
}

.filter-wrapper select.form-control {
  text-align: left;
  padding-left: 15px;
  padding-right: 35px;
}

select.form-control:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

select.form-control:focus {
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ???????? */
.action-buttons .btn {
  padding: 0.4rem 0.8rem; /* ???????? */
  vertical-align: middle;
  box-sizing: border-box;
}

/* ????????????? */
.action-buttons .btn {
  height: 35px;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
}
/* ????????? */
.project-card {
  border-radius: var(--apple-radius);
  margin-bottom: 0.9rem;
  padding: 1rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 210, 215, 0.7);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 8px 24px rgba(29, 29, 31, 0.04);
  transition: var(--apple-transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-card:hover {
  box-shadow: 0 2px 4px rgba(29, 29, 31, 0.05), 0 14px 28px rgba(29, 29, 31, 0.08);
  transform: translateY(-1px);
  border-color: rgba(10, 132, 255, 0.22);
  position: relative;
  z-index: 5;
}

.parent-project { border-left: 4px solid #b7b0a3; }

.child-project {
  margin-left: 1.35rem;
  border-left: 3px solid #c7c7cc;
  background-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.03);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.project-title {
  margin: 0;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--apple-dark);
  display: flex;
  align-items: center;
}

.toggle-history {
  margin-left: 0.5rem;
  cursor: pointer;
  color: var(--apple-secondary);
  transition: var(--apple-transition);
  font-size: 0.9rem;
}

.toggle-history:hover {
  color: var(--apple-primary);
}

.project-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.project-actions .btn {
  margin: 0.2rem;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
}

/* ???????? */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: 0.35rem;
  border: 1px solid transparent;
  background: #eef0f4;
  color: var(--apple-medium);
}

/* status colors: ???? / ??中 / ?????中 / 保??中 / ?? / 中止 */
.status-\672A\7740\624B {
  background: rgba(110, 110, 115, 0.12);
  color: #5c5c62;
  border-color: rgba(110, 110, 115, 0.18);
}
.status-\9032\884C\4E2D {
  background: var(--apple-primary-soft);
  color: #0071e3;
  border-color: rgba(10, 132, 255, 0.22);
}
.status-\30EC\30D3\30E5\30FC\4E2D {
  background: rgba(94, 92, 230, 0.12);
  color: #4b49c6;
  border-color: rgba(94, 92, 230, 0.22);
}
.status-\4FDD\7559\4E2D {
  background: rgba(255, 159, 10, 0.14);
  color: #c77700;
  border-color: rgba(255, 159, 10, 0.28);
}
.status-\5B8C\4E86 {
  background: rgba(52, 199, 89, 0.14);
  color: #1f8f3d;
  border-color: rgba(52, 199, 89, 0.28);
}
.status-\4E2D\6B62 {
  background: rgba(255, 59, 48, 0.12);
  color: #d70015;
  border-color: rgba(255, 59, 48, 0.22);
}

/* ???????? */
.project-history {
  margin-top: 0.5rem;
  padding-left: 0.6rem;
  border-left: 1px solid var(--apple-border);
  transition: var(--apple-transition);
}

.project-history.collapsed {
  display: none !important;
}

.history-item {
  margin-bottom: 0.4rem;
  padding: 0.4rem 0.6rem;
  background-color: var(--apple-light);
  border-radius: var(--apple-radius);
}

.history-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  color: var(--apple-secondary);
}

.author {
  font-weight: 500;
  color: var(--apple-dark);
  font-size: 0.75rem;
}

.date {
  font-size: 0.75rem;
}

.status-change {
  font-weight: 500;
  margin-bottom: 0.2rem;
  color: var(--apple-primary);
  font-size: 0.8rem;
}

.content {
  font-size: 0.85rem;
  color: var(--apple-dark);
  line-height: 1.3;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ?????? */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--apple-white);
  margin: 10% auto;
  padding: 1.2rem;
  border-radius: var(--apple-radius);
  width: 70%; /* ??????? */
  max-width: 400px; /* ????????? */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--apple-dark);
  font-size: 1.2rem;
}

/* ??????????? - ?? */
#projectName, #subProjectName, #projectAuthor, #subProjectAuthor, #progressAuthor, #statusAuthor, #editHistoryAuthor, #editProjectName {
  width: 60% !important;
  max-width: 300px !important;
}

/* ????????????????? - ?? */
textarea.form-control {
  width: 100% !important;
}


/* ?????? */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--apple-secondary);
}

/* ????????????? - ??100%??? */
.modal-content input[type="text"],
.modal-content textarea,
.modal-content select:not(.form-control) {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  border: 1px solid var(--apple-border);
  border-radius: var(--apple-radius);
  background-color: var(--apple-white);
  transition: var(--apple-transition);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

/* ??????? */
.modal-content input[type="text"]:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: var(--apple-primary);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

/* ??????? */
.modal-content textarea {
  min-height: 150px;
  resize: vertical;
}

/* ??????????? */
.form-group:last-child {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* ??????? */
.modal-content .btn {
  min-width: 100px;
}

/* ???????? */
@media (max-width: 768px) {
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .project-actions {
    margin-top: 0.7rem;
    justify-content: flex-start;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-buttons .btn,
  .action-buttons .form-control {
    margin: 0.4rem 0;
    width: 100%;
  }
  
  .child-project {
    margin-left: 0.8rem;
  }
  
  .modal-content {
    margin: 5% auto;
    padding: 1.5rem;
    width: 95%;
  }
}

/* ????????? */
.logout-link {
  color: var(--apple-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.logout-link:hover {
  text-decoration: underline;
}

.auth-message {
  color: var(--apple-error);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
}

#authModal h2 {
  color: var(--apple-dark);
  font-weight: 500;
  text-align: center;
}

#authModal p {
  text-align: center;
  color: var(--apple-secondary);
  margin-bottom: 1.5rem;
}

/* ?????????? */
.history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.btn-icon {
  background: none;
  border: none;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  color: var(--apple-secondary);
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--apple-light);
}

.edit-history:hover {
  color: var(--apple-primary);
}

.delete-history:hover {
  color: var(--apple-error);
}

.icon-text {
  font-weight: 500;
}

/* ???????????????? */
.date-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inline-actions {
  display: inline-flex;
  margin-left: 8px;
}

/* ???????????????? - ????????? */
.mini-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  line-height: 1;
  padding: 0;
  margin-left: 3px;
  cursor: pointer;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  /* ???????????? */
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

.edit-btn {
  color: var(--apple-primary); /* ??????????? */
}

.delete-btn {
  color: var(--apple-error); /* ??????????? */
}

.mini-btn:hover {
  transform: scale(1.1); /* ???????????? */
  background-color: rgba(0, 0, 0, 0.1);
}

/* ???????? */
.history-item .inline-actions {
  opacity: 0.9; /* ?????????? */
}

.history-item:hover .inline-actions {
  opacity: 1;
}

/* ????????????? */

/* ???????? */
.attachment-icon {
  margin-right: 5px;
  color: #999;
  cursor: pointer;
}

.attachment-icon.has-attachments {
  color: #4a86e8;
}

/* ???????? */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #ffffff;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 80%; /* ???70%??? */
  max-width: 900px; /* ???700px?????? */
  animation: modalFadeIn 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ??????????????????????? */
#attachment-modal .modal-header {
  padding: 10px;
  background-color: #ffffff;
  color: #333;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border-bottom: none;
}

#attachment-modal .modal-header h2 {
  display: none;
}

#attachment-modal .close {
  color: #999;
  font-size: 24px;
}

#attachment-modal .close:hover {
  color: #333;
}

/* ???????????????????????? */
#file-preview-modal .modal-header {
  padding: 15px 20px;
  background-color: #4a86e8;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

#file-preview-modal .close {
  color: white;
}

/* ?????????????????? */
#delete-confirm-modal .modal-header {
  display: none;
}

/* ??????????????????????? */
#delete-confirm-modal .modal-body {
  padding-top: 25px;
}

/* ????????????????????????? */
#delete-confirm-modal .close {
  display: none;
}

/* ??????????? */
.upload-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.file-input-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.file-input {
  display: none;
}

.file-input-label {
  color: #4a86e8;
  cursor: pointer;
  display: inline;
  font-weight: 500;
  transition: color 0.2s;
  background-color: #e8f0fe;
  padding: 6px 12px;
  border-radius: 4px;
}

.file-input-label:hover {
  color: #3a76d8;
  background-color: #d0e0fd;
}

#selected-file-name {
  margin-left: 10px;
  color: #666;
}

.upload-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.upload-button:hover {
  background-color: #45a049;
}

.upload-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* ??????? */
.progress-bar-container {
  margin-top: 15px;
  height: 8px;
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #4a86e8;
  transition: width 0.2s;
}

#upload-message {
  margin-top: 10px;
  font-size: 0.9em;
}

.upload-success {
  color: #4caf50;
}

.upload-error {
  color: #f44336;
}

/* ????????? */
.attachments-list-section {
  max-height: 400px;
  overflow-y: auto;
}

#attachments-table {
  width: 100%;
  border-collapse: collapse;
}

#attachments-table th,
#attachments-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

#attachments-table th {
  background-color: #f5f5f5;
}

#attachments-table tr:hover {
  background-color: #f9f9f9;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.download-btn, 
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
}

.download-btn {
  color: #4a86e8;
}

.download-btn:hover {
  background-color: rgba(74, 134, 232, 0.1);
}

.delete-btn {
  color: #f44336;
}

.delete-btn:hover {
  background-color: rgba(244, 67, 54, 0.1);
}

.file-name {
  display: flex;
  align-items: center;
}

.file-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.no-attachments {
  color: #888;
  text-align: center;
  padding: 20px;
}

/* ???????? */
.button-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.cancel-button {
  background-color: #ccc;
  color: #333;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.delete-button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
}

#delete-file-name {
  font-weight: bold;
  margin-top: 5px;
}

/* ????????????? */

/* ???????? */
.attachment-icon {
  margin-right: 5px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s ease;
}

.attachment-icon:hover {
  color: #666;
}

.attachment-icon.has-attachments {
  color: #4a86e8;
}

.attachment-icon.has-attachments:hover {
  color: #3a76d8;
}

/* ???????? */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 80%; /* ???70%??? */
  max-width: 900px; /* ???700px?????? */
  animation: modalFadeIn 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.delete-confirm-content {
  max-width: 450px;
}

.preview-content {
  max-width: 800px;
}

@keyframes modalFadeIn {
  from {
      opacity: 0;
      transform: translateY(-30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.modal-header {
  padding: 10px 15px;
  background-color: #4a86e8;
  color: white;
  display: flex;
  justify-content: flex-end; /* ?????? */
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* h2???????????????????????? */
.modal-header h2 {
  display: none;
}


.modal-header h2 {
  margin: 0;
  font-size: 1.4em;
  font-weight: 500;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover,
.close:focus {
  color: #f1f1f1;
}

.modal-body {
  padding: 20px;
}

/* ???????????? */
.drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  margin-bottom: 20px;
  background-color: #f9f9f9;
  transition: background-color 0.3s, border-color 0.3s;
}

.drop-area.highlight {
  background-color: #e8f0fe;
  border-color: #4a86e8;
}

.drop-area p {
  margin: 10px 0;
  color: #666;
}

/* ??????????? */
.upload-section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.file-input-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.file-input {
  display: none;
}

.file-input-label {
  color: #4a86e8;
  cursor: pointer;
  display: inline;
  font-weight: 500;
  transition: color 0.2s;
}

.file-input-label:hover {
  color: #3a76d8;
  text-decoration: underline;
}

.selected-file {
  margin-top: 12px;
  padding: 8px 12px;
  background-color: #e8f0fe;
  border-radius: 4px;
  max-width: 100%;
  word-break: break-all;
  display: inline-block;
}

.upload-button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: 500;
  margin-top: 10px;
}

.upload-button:hover {
  background-color: #45a049;
}

.upload-button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* ??????? */
.progress-bar-container {
  margin-top: 15px;
  height: 8px;
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background-color: #4a86e8;
  transition: width 0.2s;
}

#upload-message {
  margin-top: 15px;
  font-size: 0.9em;
}

.upload-success {
  color: #4caf50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-success:before {
  content: "?";
  display: inline-block;
  margin-right: 5px;
  font-weight: bold;
}

.upload-error {
  color: #f44336;
}

/* ????????? */
.attachments-list-section {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid #eee;
}

#attachments-table {
  width: 100%;
  border-collapse: collapse;
}

#attachments-table th,
#attachments-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

#attachments-table th {
  background-color: #f5f5f5;
  font-weight: 500;
  color: #666;
}

#attachments-table tr:last-child td {
  border-bottom: none;
}

#attachments-table tr:hover {
  background-color: #f9f9f9;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.download-btn, 
.delete-btn,
.preview-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 3px;
  transition: background-color 0.2s;
}

.download-btn {
  color: #4a86e8;
}

.download-btn:hover {
  background-color: rgba(74, 134, 232, 0.1);
}

.delete-btn {
  color: #f44336;
}

.delete-btn:hover {
  background-color: rgba(244, 67, 54, 0.1);
}

.file-name {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.file-name:hover {
  text-decoration: underline;
  color: #4a86e8;
}

.file-icon {
  margin-right: 8px;
  font-size: 1.2em;
}

.no-attachments {
  color: #888;
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 0;
}

/* ???????? */
.button-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.cancel-button {
  background-color: #eee;
  color: #333;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cancel-button:hover {
  background-color: #ddd;
}

.delete-button {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.delete-button:hover {
  background-color: #e53935;
}

#delete-file-name {
  font-weight: bold;
  margin-top: 5px;
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  word-break: break-all;
}

/* ????????????? */
#file-preview-container {
  text-align: center;
  padding: 20px;
  max-height: 500px;
  overflow: auto;
}

#file-preview-container img {
  max-width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#file-preview-container .text-preview {
  text-align: left;
  white-space: pre-wrap;
  background-color: #f5f5f5;
  padding: 15px;
  border-radius: 4px;
  border: 1px solid #eee;
  overflow: auto;
  font-family: monospace;
}

.preview-actions {
  margin-top: 20px;
  text-align: center;
}

.preview-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #4a86e8;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.preview-btn:hover {
  background-color: #3a76d8;
}

.file-error {
  color: #f44336;
  text-align: center;
  padding: 20px;
}

/* ??????????? */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  transition: all 0.2s ease;
}

.btn-icon i {
  font-size: 1rem;
}

.btn-icon.btn-primary {
  background-color: var(--apple-primary);
  color: var(--apple-white);
}

.btn-icon.btn-primary:hover {
  background-color: #005fc4;
  transform: translateY(-2px);
}

.btn-icon.btn-info {
  background-color: var(--apple-medium);
  color: var(--apple-white);
}

.btn-icon.btn-info:hover {
  background-color: #3a3a3c;
  transform: translateY(-2px);
}

.btn-icon.btn-danger {
  background-color: var(--apple-error);
  color: var(--apple-white);
}

.btn-icon.btn-danger:hover {
  background-color: #e63028;
  transform: translateY(-2px);
}

/* ?????????????? */
.btn-icon {
  position: relative;
}

.btn-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.btn-icon:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -25px;
}

/* ???????????? */
.project-actions {
  gap: 8px;
}

/* ????????? */
.action-icon {
  font-size: 1.05rem;
  margin: 0 0.28rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--apple-secondary);
  position: relative;
  opacity: 0.72;
}

.project-card:hover .action-icon,
.action-icon:focus {
  opacity: 1;
}

.project-actions .fa-trash-alt,
.project-actions .fa-edit {
  opacity: 0.28;
}

.project-card:hover .project-actions .fa-trash-alt,
.project-card:hover .project-actions .fa-edit {
  opacity: 0.85;
}

.action-icon:hover {
  transform: translateY(-1px);
}

.fa-comment:hover {
  color: var(--apple-primary);
}

.fa-book-open:hover {
  color: var(--apple-primary);
}

.delete-icon:hover {
  color: var(--apple-error);
}

/* ??????????? */
.action-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 1000;
}

.action-icon:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -35px;
}

/* ???????????????????????????? */
.project-title .action-icon,
.project-actions .action-icon {
  position: relative;
  z-index: 110;
}

.project-actions .action-icon:hover,
.project-title .action-icon:hover {
  z-index: 1000;
}

/* ??????????????????????????????? */
.project-actions .action-icon::after {
  bottom: auto;
  top: -32px;
}

.project-actions .action-icon:hover::after {
  bottom: auto;
  top: -36px;
}

.project-header {
  overflow: visible;
  position: relative;
  z-index: 20;
}

.project-title {
  overflow: visible;
}

.project-actions {
  overflow: visible;
  position: relative;
  z-index: 30;
}

/* ??????????????????? */
.status-dropdown {
  display: none;
  position: absolute;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important;
  overflow: hidden;
  width: 145px;
  padding: 5px 0;
}

.status-option {
  padding: 8px 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.8rem;
}

.status-option:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.status-option.status-\672A\7740\624B { color: #5c5c62; }
.status-option.status-\672A\7740\624B::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #8e8e93;
  vertical-align: middle;
}
.status-option.status-\9032\884C\4E2D { color: #0071e3; }
.status-option.status-\9032\884C\4E2D::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--apple-primary);
  vertical-align: middle;
}
.status-option.status-\30EC\30D3\30E5\30FC\4E2D { color: #4b49c6; }
.status-option.status-\30EC\30D3\30E5\30FC\4E2D::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--apple-review);
  vertical-align: middle;
}
.status-option.status-\4FDD\7559\4E2D { color: #c77700; }
.status-option.status-\4FDD\7559\4E2D::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--apple-warning);
  vertical-align: middle;
}
.status-option.status-\5B8C\4E86 { color: #1f8f3d; }
.status-option.status-\5B8C\4E86::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--apple-success);
  vertical-align: middle;
}
.status-option.status-\4E2D\6B62 { color: #d70015; }
.status-option.status-\4E2D\6B62::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--apple-error);
  vertical-align: middle;
}


/* ????????LINE????????? */
.project-history {
  margin-top: 0.85rem;
  padding: 0.65rem 0.55rem 0.35rem 0.85rem;
  border-left: none;
  background: linear-gradient(180deg, rgba(245, 246, 250, 0.95), rgba(238, 240, 245, 0.9));
  border-radius: var(--apple-radius-sm);
  border: 1px solid rgba(210, 210, 215, 0.55);
  position: relative;
  z-index: 1;
}

.project-history::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.35), rgba(210, 210, 215, 0.7));
  border-radius: 2px;
  pointer-events: none;
}

.history-item {
  margin-bottom: 0.85rem;
  padding: 0;
  background-color: transparent;
  position: relative;
  display: flex;
  align-items: flex-start;
  z-index: 1;
}

.history-item-extra {
  display: none !important;
}

.project-history.history-expanded .history-item-extra {
  display: flex !important;
}

.history-expand-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: calc(100% + 1.1rem);
  margin: 0.1rem -0.55rem -0.35rem -0.85rem;
  padding: 0.35rem 0.5rem 0.4rem;
  border: none;
  border-radius: 0 0 var(--apple-radius-sm) var(--apple-radius-sm);
  background: linear-gradient(180deg, transparent, rgba(29, 29, 31, 0.035));
  color: var(--apple-secondary);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.history-expand-hint:hover {
  background: linear-gradient(180deg, transparent, rgba(29, 29, 31, 0.06));
  color: #6e6e73;
}

.history-expand-chevron {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.history-expand-hint:hover .history-expand-chevron {
  opacity: 0.8;
}

.history-expand-count {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  opacity: 0.7;
  line-height: 1;
}

.project-history.history-expanded .history-expand-chevron {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.project-history.history-expanded .history-expand-count {
  display: none;
}

/* ?????????????- 2?????? */
.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7a7a80, #5c5c62);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-right: 10px;
  position: relative;
  cursor: default;
  box-shadow: 0 0 0 3px rgba(245, 246, 250, 0.95);
  z-index: 2;
}

/* ???????????? */
.author-avatar:hover::after {
  content: attr(data-author-name);
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  z-index: 10;
}



/* ???????????? */
.history-content-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ???????? - ???????? */
.history-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

/* ????????? */
.history-header .author {
  font-weight: 500;
  color: var(--apple-dark);
  font-size: 0.75rem;
}

/* ???????? */
.date-actions {
  display: flex;
  align-items: center;
  font-size: 0.7rem;
  color: var(--apple-secondary);
  white-space: nowrap;
}

.date {
  margin-right: 8px;
}

/* ???????? - ????? */
.bubble {
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 0.95rem;
  padding: 0.55rem 0.8rem;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.05);
  border: 1px solid rgba(210, 210, 215, 0.55);
  position: relative;
  display: inline-block;
  max-width: 90%;
  margin-left: 8px;
}

/* ?????????? */
.bubble:before {
  content: "";
  position: absolute;
  top: 10px;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-right: 8px solid rgba(255, 255, 255, 0.96);
  border-bottom: 7px solid transparent;
  filter: drop-shadow(-1px 0 0 rgba(210, 210, 215, 0.55));
}

/* ??????????????????? */
.bubble.status-bubble {
  background-color: rgba(10, 132, 255, 0.08);
  color: #0071e3;
  border-color: rgba(10, 132, 255, 0.18);
}

/* ??????????????? */
.bubble.status-bubble:before {
  border-right-color: #e7f2ff;
  filter: drop-shadow(-1px 0 0 rgba(10, 132, 255, 0.16));
}



/* ??????????? */
.bubble .content {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  color: var(--apple-dark);
  word-break: break-word;
}

/* ?????????????3?????????????? */
.bubble .content {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  color: #000000; /* ??????????? var(--apple-dark)? */
  font-weight: 500; /* ?????????400?500? */
  word-break: break-word;
}

.bubble .content.expanded {
  max-height: none;
}

.content-toggle {
  color: var(--apple-primary);
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 2px;
  text-align: right;
  user-select: none;
}

/* ????????????????????????????????????? */
.mini-btn, 
.mini-btn.edit-btn, 
.mini-btn.delete-btn,
i.mini-btn {
  background: none !important;
  border: none !important;
  font-size: 0.9rem !important; /* ??????? */
  width: auto !important;
  height: auto !important;
  background-color: transparent !important;
  margin-left: 0.4rem;
  transition: all 0.2s ease;
  color: #888888 !important; /* ?????? */
}

.edit-btn {
  color: var(--apple-primary); /* ??????????? */
}

.delete-btn {
  color: var(--apple-error); /* ??????????? */
}

/* ????????????????? */
.mini-btn:hover {
  transform: translateY(-2px);
}

/* ??????????? */
.mini-btn::after {
  content: attr(title);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 100;
}

.mini-btn:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: -25px;
}

/* ?????????????? */
.mini-btn i {
  font-size: 1.2rem;
}



/* ???????? */
@media (max-width: 576px) {
  .inline-history-row {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .date-actions {
    margin-top: 4px;
  }
}

/* ??????????????? */
.history-header-row .author {
  display: none; /* ????????? */
}

/* ?????????????????? */
.history-content-container {
  flex-grow: 1;
  display: flex;
  flex-direction: row; /* ??????????? */
  align-items: center; /* ???? */
  flex-wrap: wrap; /* ?????????? */
}

/* ??????????????? */
.history-header-row {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  margin-left: auto; /* ?????? */
  padding-left: 10px; /* ???????? */
}


/* ??????????????????????????????????? */
.history-item {
  display: flex;
  align-items: center; /* ??????? */
  flex-wrap: nowrap;
  margin-bottom: 0.8rem;
  padding: 0.5rem;
  background-color: transparent;
  position: relative;
}

/* history-content-container??????? */
.history-content-container {
  display: none;
}

/* ????????? */
.history-item > .author {
  display: none;
}

/* ??????????? - ??????????????? */
.bubble {
  flex-grow: 0; /* ????? */
  flex-shrink: 1;
  min-width: 50px;
  max-width: 70%; /* ??????? */
  margin: 0 8px;
  width: auto; /* ????? */
  display: inline-block;
}

/* ?????????????? */
.date-actions {
  flex-shrink: 0;
  margin-left: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

/* ?????????????? */
.bubble .content.expandable {
  max-height: 2.8em; /* 2????? */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* 1?????? */
}

.bubble .content.expanded {
  max-height: none;
  white-space: normal; /* ??????????? */
}

/* ???????? */
@media (max-width: 768px) {
  .history-item {
    flex-wrap: wrap;
  }
  
  .bubble {
    max-width: calc(100% - 50px); /* ?????????? */
    margin: 0 0 0 8px;
  }
  
  .date-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.3rem;
    margin-left: 48px; /* ????+????? */
  }
}

/* ????????????? */
.history-item-list {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: var(--apple-light);
  border-radius: var(--apple-radius);
  border-left: 3px solid var(--apple-primary);
}

.history-item-list .history-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.history-item-list .author {
  font-weight: 500;
  color: var(--apple-dark);
}

.history-item-list .date {
  color: var(--apple-secondary);
}

.history-item-list .status-change {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--apple-primary);
}

.history-item-list .content {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--apple-dark);
}

/* ???????????????? */
.parent-project .project-title {
  background: linear-gradient(to right, rgba(214, 207, 194, 0.2), transparent);
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin: -5px 0;
  position: relative;
  /* overflow: hidden; ??? */
}

.parent-project .project-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #d6cfc2; /* ?????????? */
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* ??????????????? - ??????????? */
.child-project .project-title {
  background: linear-gradient(to right, rgba(134, 134, 139, 0.08), transparent);
  padding: 6px 10px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin: -3px 0;
  position: relative;
  /* overflow: hidden; ??? */
}

.child-project .project-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--apple-secondary);
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

/* ??????????? */
.parent-project .project-name {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--apple-dark);
}

.child-project .project-name {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--apple-dark);
}

/* ?????????????????? */
.project-card:hover .project-title {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* ???????????????? */
.history-item-list .history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.history-item-list .history-actions {
  display: flex;
  align-items: center;
}

.history-item-list .inline-actions {
  display: flex;
  margin-left: 8px;
}

/* ?????????????? */
.history-item-list .mini-btn {
  color: var(--apple-secondary);
  font-size: 1rem;
  margin-left: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.history-item-list .edit-btn {
  color: var(--apple-primary);
}

.history-item-list .delete-btn {
  color: var(--apple-error);
}

.history-item-list .mini-btn:hover {
  transform: translateY(-2px);
}

/* ?????????????? */
.team-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 24px;
}

.team-member-tag {
  display: inline;
  color: var(--apple-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.team-member-tag:not(:last-child)::after {
  content: ",";
  margin-right: 4px;
}

.team-member-tag .delete-tag {
  margin-left: 2px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--apple-secondary);
}

.team-member-tag .delete-tag:hover {
  color: var(--apple-error);
}

/* ???????????????????? - ??? */
.project-name {
  position: relative;
  cursor: default;
}

/* ??????????????????????????? */
.team-members-tooltip {
  position: absolute;
  top: 120%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.25); /* ??????? */
  color: #333; /* ??????? */
  padding: 12px 18px;
  border-radius: 18px; /* ?????? */
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 200;
  white-space: nowrap;
  margin-top: 5px;
  pointer-events: none;
  max-width: 300px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  transform: translateY(-10px) scale(0.95);
  text-overflow: ellipsis;
  overflow: hidden;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px); /* ????? */
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ????????????????????? */
.team-members-tooltip::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 15px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.3);
}

/* ???????????????? */
.project-name:hover .team-members-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ??????????????? */
.team-member-name {
  display: inline-block;
  padding: 3px 10px;
  background-color: rgba(255, 255, 255, 0.5); /* ??????? */
  color: #333; /* ??? */
  border-radius: 12px; /* ?????? */
  margin: 2px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px); /* ?????????????? */
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ??????????????????????????? */
.form-control {
  text-align: left !important;
  padding-left: 10px !important;
}

/* ?????????????? + ?????? */
.team-member-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.team-member-input-row .form-control {
  flex: 1;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
  text-align: left !important;
  padding-left: 10px !important;
  text-indent: 0 !important;
  box-sizing: border-box !important;
}

.team-member-input-row .btn {
  flex-shrink: 0;
}

input#teamMemberInput, 
input#editTeamMemberInput,
input#subTeamMemberInput {
  text-align: left !important;
  padding-left: 10px !important;
  text-indent: 0 !important;
  box-sizing: border-box !important;
}


/* ?????????????????? */
#teamMemberInput::placeholder, #editTeamMemberInput::placeholder, #subTeamMemberInput::placeholder {
  text-align: left !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}



/* ???????????????? */
.team-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
  min-height: 24px;
}

.team-member-tag {
  display: inline;
  color: var(--apple-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.team-member-tag:not(:last-child)::after {
  content: ",";
  margin-right: 4px;
}

.team-member-tag .delete-tag {
  margin-left: 2px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--apple-secondary);
}

.team-member-tag .delete-tag:hover {
  color: var(--apple-error);
}

/* ????????? */
.search-wrapper {
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 300px; /* ??400px??200px??? */
  width: 100%;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 8px 35px; /* ???????????????????????? */
  border: none;
  border-radius: 24px;
  background-color: var(--apple-white);
  color: var(--apple-dark);
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px; /* ????? */
  top: 50%;
  transform: translateY(-50%);
  color: var(--apple-secondary);
  font-size: 0.9rem;
}

.clear-search {
  position: absolute;
  right: 12px; /* ????? */
  top: 50%;
  transform: translateY(-50%);
  color: var(--apple-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.clear-search:hover {
  color: var(--apple-error);
}

/* ???????????????? */
.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
}

.action-buttons > * {
  flex: 0 0 auto;
}

.search-wrapper {
  flex: 0 0 300px; /* 200px??300px??? */
}


/* ??????????????? */
.no-results-message {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background-color: var(--apple-light);
  border-radius: var(--apple-radius);
  color: var(--apple-secondary);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ?????????????? */
@media (max-width: 768px) {
  .action-buttons {
      flex-direction: column;
      align-items: stretch;
  }
  
  .search-wrapper {
      margin: 0.5rem 0;
      order: 1;
  }
  
  .filter-wrapper {
      margin: 0.5rem 0;
      order: 2;
  }
}

/* ???????????????????????? */
.search-input {
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.search-input:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

/* ????????? */
.search-wrapper {
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 200px;
  width: 100%;
}

.search-bar {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 8px 35px;
  padding-right: 60px; /* ??????????????? */
  border: none;
  border-radius: 24px;
  background-color: var(--apple-white);
  color: var(--apple-dark);
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--apple-secondary);
  font-size: 0.9rem;
}

.clear-search {
  position: absolute;
  right: 55px; /* 40px??55px??????????? */
  top: 50%;
  transform: translateY(-50%);
  color: var(--apple-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.clear-search:hover {
  color: var(--apple-error);
}

/* ???????????? */
.toggle-switch {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 20px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--apple-primary);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--apple-primary);
}

input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* ??????????????? */
.no-results-message {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background-color: var(--apple-light);
  border-radius: var(--apple-radius);
  color: var(--apple-secondary);
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ???????????????? */
.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
}

.action-buttons > * {
  flex: 0 0 auto;
}

.search-wrapper {
  flex: 0 0 200px;
}

/* ?????????????? */
@media (max-width: 768px) {
  .action-buttons {
      flex-direction: column;
      align-items: stretch;
  }
  
  .search-wrapper {
      margin: 0.5rem 0;
      order: 1;
  }
  
  .filter-wrapper {
      margin: 0.5rem 0;
      order: 2;
  }
}

/* ?????????? - ?????????? !important ??? */
.search-wrapper {
  max-width: 250px !important;
  flex: 0 0 250px !important;
}

/* ???????????????? */
.action-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: nowrap;
}

.action-buttons > * {
  flex: 0 0 auto;
}

/* ?????????????? */
.modal-content {
  width: 50% !important;
  max-width: 600px !important;
}

/* ????????????????????????? */
#attachment-modal .modal-content,
#file-preview-modal .modal-content {
  width: 60% !important;
  max-width: 700px !important;
}


/* ???????? - Claude???? */
.sidebar-toggle {
  position: fixed;
  left: 0;
  top: 80px;
  transform: translateY(0);
  background-color: #c9e0fa;
  color: #333;
  padding: 10px 15px 10px 10px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 98;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  border-left: none;
}

.sidebar-toggle:hover {
    background-color: #e8e8e8;
}

.sidebar-toggle i {
    margin-right: 8px;
    color: #666;
}

/* ????? - ????? */
.sidebar {
  position: fixed;
  left: -300px;
  top: 80px; 
  width: 300px;
  height: calc(100% - 80px);
  background-color: #f5f5f7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  transition: left 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid #e0e0e0;
  border-radius: 0 10px 10px 0; /* ????????? */
}

/* ????????????????? */
.sidebar-overlay {
  position: fixed;
  top: 80px; /* ????????????? */
  left: 0;
  width: 100%;
  height: calc(100% - 80px); /* ????? */
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 99;
  display: none;
}

.sidebar.active {
    left: 0;
}

.sidebar.pinned {
    left: 0;
    box-shadow: none;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #c9e0fa;
  color: #333;
  border-radius: 0 10px 0 0; /* ???????? */
}


.sidebar-header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* ?????????? - Claude???? */
.sidebar-pin {
  cursor: pointer;
  font-size: 1rem;
  color: #999;
  transition: all 0.2s ease;
  position: relative;
}

.sidebar-pin:hover {
  color: #333;
}

.sidebar-pin.active {
  color: #333;
  transform: rotate(45deg);
}

/* ?????????????? */
.sidebar-pin::after {
  display: none; /* ????????????? */
}


.sidebar-content {
    padding: 15px;
}

.project-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-nav-item {
    margin-bottom: 8px;
    padding: 10px 15px;
    background-color: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 0.95rem;
}

.project-nav-item:hover {
    background-color: #e8e8e8;
}

.project-nav-item.active {
    background-color: #e8e8e8;
    font-weight: 500;
}

/* ??????????? */
.sidebar-overlay {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100% - 60px);
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

/* ?????????????????? */
.sidebar.pinned + .sidebar-overlay {
    display: none !important;
}

/* ??????? */
.highlight-project {
  animation: highlight-simple 1s ease;
}

@keyframes highlight-simple {
  0% {
    background-color: rgba(0, 113, 227, 0.1);
  }
  50% {
    background-color: rgba(0, 113, 227, 0.15);
  }
  100% {
    background-color: transparent;
  }
}


/* ?????? */
@media (max-width: 768px) {
    .sidebar {
        width: 85%;
        left: -85%;
    }
    
    .sidebar-toggle {
        padding: 8px 12px 8px 8px;
    }
    
    .sidebar-toggle span {
        font-size: 0.9rem;
    }
}

/* ???????????????? - ????????? */
.mini-btn {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  line-height: 1;
  padding: 0;
  margin-left: 3px;
  cursor: pointer;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  /* ???????????? */
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.05);
}

/* ?????????? */
.department-badge {
  display: inline-block;
  padding: 2px 9px;
  margin-left: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  background-color: rgba(29, 29, 31, 0.05);
  color: #505057;
  border-radius: 999px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  letter-spacing: 0.02em;
}

/* ========== Visual polish (Apple?????) ========== */
.btn {
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.06);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, #2b93ff 0%, var(--apple-primary) 100%);
  box-shadow: 0 1px 2px rgba(10, 132, 255, 0.25), 0 6px 14px rgba(10, 132, 255, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1a86f5 0%, #0066d6 100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.header-content h1 {
  width: auto;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-nav-link,
.logout-link {
  position: static !important;
  top: auto !important;
  right: auto !important;
  transform: none !important;
  color: var(--apple-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: var(--apple-transition);
  background: transparent;
  white-space: nowrap;
}

.header-nav-link:hover,
.logout-link:hover {
  color: var(--apple-primary);
  background: var(--apple-primary-soft);
  text-decoration: none;
}

.modal-content {
  border-radius: 16px !important;
  border: 1px solid rgba(210, 210, 215, 0.7);
  box-shadow: 0 18px 48px rgba(29, 29, 31, 0.16);
}

.project-title {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.clickable-status {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.clickable-status:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(29, 29, 31, 0.08);
}

.status-caret {
  opacity: 0.65;
  font-size: 0.7em;
}

.attachment-icon {
  color: var(--apple-secondary);
  transition: color 0.2s ease;
}

.attachment-icon:hover {
  color: var(--apple-primary);
}

.attachment-icon.has-attachments,
.attachment-icon.has-attachments i {
  color: var(--apple-primary);
}

.attachment-icon.has-attachments:hover,
.attachment-icon.has-attachments:hover i {
  color: #0060df;
}

.sidebar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(210, 210, 215, 0.7);
  box-shadow: 8px 0 24px rgba(29, 29, 31, 0.06);
}

.sidebar-header {
  background: transparent;
  border-bottom: 1px solid rgba(210, 210, 215, 0.7);
}

.search-input,
select.form-control {
  border: 1px solid rgba(210, 210, 215, 0.85) !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
}

.admin-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(210, 210, 215, 0.7) !important;
  border-radius: var(--apple-radius) !important;
  box-shadow: 0 1px 2px rgba(29, 29, 31, 0.04), 0 8px 24px rgba(29, 29, 31, 0.04) !important;
  backdrop-filter: blur(8px);
}

@media (max-width: 700px) {
  .app-brand-sub {
    display: none;
  }

  .header-content h1 {
    justify-content: flex-start;
  }

  .header-nav-link,
  .logout-link {
    font-size: 0.72rem;
    padding: 0.25rem 0.45rem;
  }

  .app-brand-name {
    font-size: 1.05rem;
  }

  .project-history::before {
    left: 24px;
  }
}
/* ========== Sidebar polish (JS?????????) ========== */
.sidebar-toggle {
  background: rgba(255, 255, 255, 0.92);
  color: var(--apple-dark);
  border: 1px solid rgba(210, 210, 215, 0.8);
  border-left: none;
  box-shadow: 0 4px 14px rgba(29, 29, 31, 0.08);
  top: 76px;
  padding: 0.55rem 0.7rem;
  border-radius: 0 12px 12px 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-toggle.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
}

.sidebar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle i,
.sidebar-toggle-icon i {
  margin: 0;
  color: var(--apple-primary);
}

.sidebar {
  top: 64px;
  height: calc(100% - 64px);
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(210, 210, 215, 0.7);
  box-shadow: 8px 0 24px rgba(29, 29, 31, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-overlay {
  top: 64px;
  height: calc(100% - 64px);
}

.sidebar-header {
  background: transparent;
  border-bottom: 1px solid rgba(210, 210, 215, 0.7);
  color: var(--apple-dark);
}

.sidebar-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-header-title > i {
  color: var(--apple-primary);
}

.sidebar-header h2 {
  color: var(--apple-dark);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-pin {
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-pin:hover {
  background: var(--apple-primary-soft);
  color: var(--apple-primary);
}

.sidebar-pin.active {
  color: var(--apple-primary);
  background: var(--apple-primary-soft);
}

.project-nav-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 4px;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--apple-dark);
}

.project-nav-item:hover {
  background: rgba(10, 132, 255, 0.08);
}

.project-nav-item.active {
  background: rgba(10, 132, 255, 0.12);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--apple-primary);
}

.project-nav-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--apple-secondary);
  box-shadow: 0 0 0 3px rgba(110, 110, 115, 0.14);
}

.project-nav-status.status-\672A\7740\624B {
  background: #8e8e93;
  box-shadow: 0 0 0 3px rgba(142, 142, 147, 0.16);
}
.project-nav-status.status-\9032\884C\4E2D {
  background: var(--apple-primary);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}
.project-nav-status.status-\30EC\30D3\30E5\30FC\4E2D {
  background: var(--apple-review);
  box-shadow: 0 0 0 3px rgba(94, 92, 230, 0.16);
}
.project-nav-status.status-\4FDD\7559\4E2D {
  background: var(--apple-warning);
  box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.18);
}
.project-nav-status.status-\5B8C\4E86 {
  background: var(--apple-success);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18);
}
.project-nav-status.status-\4E2D\6B62 {
  background: var(--apple-error);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.16);
}

.project-nav-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-nav-arrow {
  font-size: 0.7rem;
  color: var(--apple-secondary);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  flex-shrink: 0;
}

.project-nav-item:hover .project-nav-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--apple-primary);
}