        /* ポップアップのスタイル */
        #popup {
          display: none;
          position: fixed;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          background-color: white;
          padding: 20px;
          border-radius: 10px;
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
          z-index: 1000;
      }
      #popup-overlay {
          display: none;
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-color: rgba(0, 0, 0, 0.5);
          z-index: 999;
      }

      .file-container {
        border: 1px solid #ccc;
        padding: 10px;
        margin-bottom: 8px;
        border-radius: 6px;
        background-color: #f9f9f9;
    }
    .file-container a {
        display: inline-block;
        margin-right: 10px;
    }
    .file-container button {
        margin-left: 5px;
    }

    .public-button.public {
        background-color: #4CAF50;
        color: white;
    }
    .public-button.private {
        background-color: #9E9E9E;
        color: white;
    }
    
/* ルール */
#rule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#rule-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 350px;
    text-align: left; /* 👈 文章は左寄せに */
}

#rule-modal p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#rule-modal button {
    display: block;
    margin: 0 auto; /* 👈 ボタンは中央寄せ */
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ファイル名ルール */
#filename-rule-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 350px;
    text-align: left;
}

#filename-rule-modal p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#filename-rule-modal button {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#filename-rule-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#file-list {
    min-height: 600px; /* 高さを確保（ページ内容が少ない時でも安定） */
  }
  
  .pagination-fixed {
    margin-top: 20px;
    height: 40px;         /* 固定の高さ */
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  /* ページネーションのボタン調整 */
#pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
  }
  
  /* ページボタンのデザイン */
  #pagination button {
    min-width: 44px; /* スマホの指タップ基準 */
    height: 36px;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    cursor: pointer;
  }
  
  /* 現在のページは太字・無効 */
  #pagination button:disabled {
    font-weight: bold;
    background: #e0e0e0;
    color: #555;
  }
  
  /* 小さい画面の調整 */
  @media (max-width: 600px) {
    #pagination {
      gap: 6px;
      padding: 8px 0;
    }
  
    #pagination button {
      font-size: 14px;
      min-width: 36px;
      height: 34px;
    }
  }
  
  /*開くボタン*/
  .open-button {
    margin-left: 8px;
    padding: 4px 8px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

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

/*トースト*/
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-success {
  background: #28a745;
}
.toast-error {
  background: #dc3545;
}
.toast-info {
  background: #007bff;
}
.toast-warning {
  background: #ffc107;
  color: #000;
}

/* ✅ 名前変更用の入力フィールドを大きくする */
.rename-input {
  width: 300px;
  max-width: 80%;
  font-size: 16px;
  padding: 4px 8px;
  margin-right: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/*表示したファイルのグループdiv*/
.file-item {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  background-color: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*勝手にマージンが付くらしい*/
#file-list {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
}

/*4つのボタンたち*/
.file-container {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  background-color: #f9f9f9;
}

.file-name {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 8px;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row button {
  padding: 3px 8px;     /* ⬅️ 内側の余白を小さく */
  font-size: 12px;      /* ⬅️ 文字を少し小さく */
  line-height: 1.2;     /* ⬅️ 高さも抑えめに */
}

