/* ------------------------------------------------------------------ */

.container {
	padding: 10px;
}
 
/* ------------------------------------------------------------------ */

.custom-header {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
    display: flex;
	height: 80px !important;	
    justify-content: center;
    align-items: center;
    height: 80px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
    z-index: 1000;
}
.custom-header .nav-link {
    color: #fff;
    font-size: 18px;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}
.custom-header .nav-link:hover {
    color: #d1c4e9; /* ホバー時に少し薄くする */
}
.custom-header h1 {
    font-size: 24px;
    margin: 0;
}

.custom-header .nav-link.active
{
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 10px;
    font-weight: bold;
    text-decoration: none;
    color: #fff; /* テキストは白を維持 */
    border: 2px solid #fff; 
}

/* ヘッダのナビゲーションリンク内の日本語と英語テキストを上下表示 */
.nav-link .menu-ja,
.nav-link .menu-en {
  display: block;
  text-align: center;
  line-height: 1.2;
}

/* 英語文言は少し小さめにする例 */
.nav-link .menu-en {
  font-size: 0.85em;
  color: #ccc;
}

/* ヘッダ全体のメニュー項目のパディングなど調整例 */
.nav-link {
  padding: 8px 12px;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */

#extpage-main {
	margin-top: 80px;
}

/* ------------------------------------------------------------------ */

.footer {
	position: fixed;
	bottom: 0px;
	left: 0px;
	width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    border-top: 3px solid #fff;
}

.footer p {
    margin: 0;
    padding: 0;
    font-weight: bold;
}

.footer .footer-nav {
    margin-left: 20px;
}

.footer .footer-nav a {
    color: #fff;
    font-size: 18px;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
    text-decoration: none;
}

.footer .footer-nav a:hover {
    color: #d1c4e9; /* ホバー時に少し薄くする */
}

.footer .footer-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 6px 10px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-left: auto;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: white;
    border-radius: 3px;
}

@media (max-width: 768px) {
    header .nav {
        display: none;
        position: absolute;
        top: 80px;
        right: 0;
        background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
        width: 100%;
        flex-direction: column;
        padding: 10px 0;
    }

    header .nav.show {
        display: flex;
    }

    header .hamburger {
        display: flex;
    }
}

/* パンくずリスト用のスタイル */
.breadcrumb-nav {
    margin-bottom: 15px;
}

/* 概要テキストを2行で省略する */
.summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* 表示行数 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .all-check {
    display: flex;
    justify-content: end;
}
/* テーブル内の編集ボタン */
#app-container #download-attachment-all-file {
    background-color: #2196F3; /* 青色: 編集 */
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#app-container #download-attachment-all-file:hover {
    background-color: #1976D2; /* ホバー時の濃い青色 */
}

#app-container #download-submit-all-file {
    background-color: #2196F3; /* 青色: 編集 */
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#app-container #download-submit-all-file:hover {
    background-color: #1976D2; /* ホバー時の濃い青色 */
}

/* 一括削除ボタン用スタイル */
#delete-submit-all-file,
#delete-attachment-all-file {
    background-color: #d32f2f; /* 赤系：削除を示唆 */
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 5px;
    transition: background-color 0.3s;
}

#delete-submit-all-file:hover,
#delete-attachment-all-file:hover {
    background-color: #b71c1c; /* ホバー時、より濃い赤 */
}

.file-checkbox-container {
    padding: 5px 10px;
}

.attachment-file-checkbox {
    transform: scale(1.5);
    width: auto !important;
    margin: 0px !important;
}
.submit-file-checkbox {
    transform: scale(1.5);
    width: auto !important;
    margin: 0px !important;
}

.attachment-icon-cherckbox {
    margin-left: auto !important;
}

.submit-icon-cherckbox {
    margin-left: auto !important;
}

.sort-button {
    cursor: pointer;
}
.sorted-asc {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
}

.sorted-asc::after {
    content: "\f35b";  /* 昇順を示すアイコン */
    font-family: "Font Awesome 5 Free";
}

.sorted-desc::after {
    content: "\f0ab";  /* 降順を示すアイコン */
    font-family: "Font Awesome 5 Free";
}

/* コンテキストメニュー用 */
.file-context-menu {
    position: absolute;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .file-context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .file-context-menu ul li {
    padding: 6px 12px;
    cursor: pointer;
  }
  .file-context-menu ul li:hover {
    background-color: #eee;
  }
  
/* ダウンロードオーバーレイ用スタイル */
#download-overlay {
    display: none; /* 初期は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    color: #fff;
    font-size: 18px;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#download-overlay .download-overlay-content {
    width: 100%;
    max-width: 360px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

#download-overlay .download-overlay-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    animation: download-spin 0.9s linear infinite;
}

#download-overlay .download-overlay-message {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

#download-overlay .download-overlay-filename {
    font-size: 14px;
    margin-bottom: 12px;
    word-break: break-word;
    opacity: 0.95;
}

#download-overlay .download-overlay-detail {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 12px;
    min-height: 1.2em;
}

#download-overlay .download-overlay-progress {
    display: none;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
}

#download-overlay .download-overlay-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4cc3ff, #80f2ff);
    transition: width 0.2s ease-out;
}

#download-overlay .download-overlay-stats {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    font-size: 12px;
    text-align: left;
    flex-wrap: wrap;
}

#download-overlay .download-overlay-stat {
    flex: 1 1 30%;
    min-width: 90px;
    color: rgba(255, 255, 255, 0.85);
}

#download-overlay .download-overlay-stat-label {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 2px;
}

#download-overlay .download-overlay-stat-value {
    font-weight: 600;
    letter-spacing: 0.03em;
}

@keyframes download-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.event-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-family: Arial, sans-serif;
  }
  
  .event-info-table th,
  .event-info-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
  }
  
  .event-info-table th {
    text-align: left;
    background-color: #f9f9f9;
    font-weight: bold;
    width: 150px;
  }
  
  .event-info-table tr:last-child th,
  .event-info-table tr:last-child td {
    border-bottom: none;
  }
  
  #copy-login-url {
    background: #ffffff22;
    border: 1px solid #fff;
    color: #fff;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: 5px;
    cursor: pointer;
  }
  #copy-login-url:hover {
    background: #ffffff44;
  }
  
/* ------------------------------------------------------------------ */
/* ヘッダーのユーザー情報表示 */
.header-user-info {
    display: flex;
    align-items: center;
    color: #fff;
  }
  .header-user-info i {
    font-size: 24px;
    margin-right: 8px;
  }
  .header-user-info .user-text {
    line-height: 1.2;
  }
  .header-user-info .user-text .user-name,
  .header-user-info .user-text .user-number {
    display: block;
  }
  @media (max-width: 768px) {
    .header-user-info {
      font-size: 14px;
    }
    .header-user-info i {
      font-size: 20px;
    }
  }
  /* ------------------------------------------------------------------ */
  
  /* 提出ファイル一覧タブ内の提出ボタンを右寄せ */
#submitted-files .submit-button-container {
    display: flex;
    justify-content: flex-end;
    margin: 1rem 0;
}