/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 認証画面 */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.auth-header h1 i {
    color: #667eea;
    margin-right: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

/* ボタンスタイル */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: #667eea;
    color: white;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #27ae60;
    color: white;
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #d68910;
}

.btn-info {
    background-color: #3498db;
    color: white;
}

.btn-info:hover {
    background-color: #2980b9;
}

.btn-outline {
    background-color: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background-color: #667eea;
    color: white;
}

/* メインアプリケーション */
.app-container {
    display: grid;
    grid-template-areas: 
        "navbar navbar"
        "sidebar main";
    grid-template-rows: 60px 1fr;
    grid-template-columns: 250px 1fr;
    height: 100vh;
}

/* ナビゲーションバー */
.navbar {
    grid-area: navbar;
    background-color: #2c3e50;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.navbar-brand i {
    margin-right: 10px;
    color: #3498db;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* サイドバー */
.sidebar {
    grid-area: sidebar;
    background-color: white;
    border-right: 1px solid #e1e5e9;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background-color: #f8f9fa;
    border-left-color: #667eea;
}

.menu-item.active {
    background-color: #e8f2ff;
    border-left-color: #667eea;
    color: #667eea;
}

.menu-item i {
    margin-right: 12px;
    width: 20px;
    font-size: 16px;
}

/* メインコンテンツ */
.main-content {
    grid-area: main;
    padding: 30px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
}

.page-header h2 i {
    margin-right: 12px;
    color: #667eea;
}

/* ダッシュボード */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.card-header h3 i {
    margin-right: 10px;
}

.card-content {
    padding: 20px;
}

/* 勤怠管理 */
.attendance-controls {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.attendance-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.current-time {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.attendance-summary {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.summary-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.summary-controls input {
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
}

/* 訓練プログラム */
.training-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.programs-list, .sessions-list {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.programs-list h3, .sessions-list h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

/* テーブルスタイル */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e1e5e9;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.table tr:hover {
    background-color: #f8f9fa;
}

/* カードリスト */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-card {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.list-card:hover {
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.list-card h4 {
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3498db;
}

.list-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.list-card p strong {
    color: #34495e;
    display: inline-block;
    min-width: 80px;
}

/* 進捗バーのスタイル改善 */
.progress-container {
    margin: 15px 0;
}

.progress-container p {
    margin-bottom: 8px;
    font-weight: 500;
}

.progress {
    background-color: #e9ecef;
    border-radius: 6px;
    height: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 5px;
}

.progress-bar {
    background: linear-gradient(45deg, #28a745, #34ce57);
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ステータスバッジ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-completed {
    background-color: #cce5ff;
    color: #004085;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* ユーザー選択機能のスタイル */
.staff-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.user-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-selector label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0;
}

.user-selector select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 200px;
}

.user-selector select:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.user-selector .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* ダッシュボードの日付・時刻表示 */
.dashboard-datetime {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.current-date {
    font-weight: bold;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.current-time-dashboard {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
}

/* 集計・レポートページ */
.reports-content {
    padding: 20px;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.report-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.report-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-card .card-header h3 {
    margin: 0;
    font-size: 18px;
}

.report-card .card-body {
    padding: 20px;
}

.report-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.report-controls label {
    font-weight: bold;
    color: #333;
}

.report-controls input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.report-table th,
.report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.report-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.report-table tbody tr:hover {
    background-color: #f8f9fa;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* 月次レポート */
.monthly-report {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
}

.monthly-report h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

/* 通知関連のスタイル */
.notifications-icon {
    position: relative;
    padding: 10px;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    margin-top: 15px;
}

.notifications-icon:hover {
    color: #333;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notifications-panel {
    position: fixed;
    top: 70px;
    right: 20px;
    width: 400px;
    max-height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    overflow: hidden;
}

.notifications-header {
    background: #667eea;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    font-size: 18px;
}

.notifications-actions {
    display: flex;
    gap: 10px;
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    border-left: 4px solid transparent;
}

.notification-item.unread {
    background: #f8f9fe;
    border-left-color: #667eea;
}

.notification-item.read {
    background: #fafafa;
    border-left-color: #ddd;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: bold;
    color: #333;
}

.notification-type {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
}

.notification-type.type-info { background: #3498db; }
.notification-type.type-warning { background: #f39c12; }
.notification-type.type-alert { background: #e74c3c; }
.notification-type.type-reminder { background: #9b59b6; }

.notification-message {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.mark-read-btn {
    padding: 4px 12px;
    font-size: 12px;
}

.no-notifications {
    text-align: center;
    color: #999;
    padding: 40px 20px;
}

/* スケジュール関連のスタイル */
.schedule-controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.schedule-navigation input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.week-schedule {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.day-column {
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 300px;
}

.day-column h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.schedule-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid #667eea;
    background: #f8f9fe;
}

.schedule-item.schedule-meeting { border-left-color: #3498db; background: #ebf3fd; }
.schedule-item.schedule-training { border-left-color: #2ecc71; background: #eafaf1; }
.schedule-item.schedule-counseling { border-left-color: #9b59b6; background: #f4ecf7; }
.schedule-item.schedule-interview { border-left-color: #e74c3c; background: #fdeaea; }
.schedule-item.schedule-other { border-left-color: #95a5a6; background: #f8f9fa; }

.schedule-time {
    font-weight: bold;
    color: #333;
    font-size: 12px;
}

.schedule-title {
    font-weight: 500;
    margin: 4px 0;
}

.schedule-location {
    font-size: 12px;
    color: #666;
}

.no-schedule {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}

/* 個別支援計画のスタイル */
.support-plan {
    border-left: 4px solid #9b59b6;
}

.plan-items {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.plan-items h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.plan-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-percentage {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

/* 就職活動記録のスタイル */
.job-search {
    border-left: 4px solid #e67e22;
}

.job-search .status-badge.status-applied { background: #3498db; }
.job-search .status-badge.status-interview_scheduled { background: #f39c12; }
.job-search .status-badge.status-interviewed { background: #9b59b6; }
.job-search .status-badge.status-offered { background: #2ecc71; }
.job-search .status-badge.status-rejected { background: #e74c3c; }
.job-search .status-badge.status-accepted { background: #27ae60; }

/* 実績記録表のスタイル */
.performance-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.performance-form h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.user-selection {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.user-selection label {
    font-weight: 600;
    margin-right: 10px;
}

.user-selection select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.performance-records-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.performance-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.performance-table th,
.performance-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.performance-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.performance-table tr:hover {
    background-color: #f5f5f5;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.filters input,
.filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* フォームグループのスタイル改善 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* ファイルアップロード関連のスタイル */
.upload-form {
    margin-bottom: 30px;
}

.form-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
}

.form-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-card h3 i {
    color: #667eea;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.file-info {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* ファイル入力のスタイル */
input[type="file"] {
    border: 2px dashed #e1e5e9;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

input[type="file"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* アップロード進捗 */
.upload-progress {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-info span:first-child {
    font-weight: 500;
    color: #333;
}

.progress-info span:last-child {
    font-weight: bold;
    color: #667eea;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(45deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* ドキュメントリスト */
.documents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
    transition: all 0.3s;
    position: relative;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.document-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.document-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s;
}

.document-card:hover .document-actions {
    opacity: 1;
}

.document-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.document-info {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.document-description {
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.document-category {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #555;
    text-transform: uppercase;
    font-weight: 500;
}

.document-category.category-manual { background: #e3f2fd; color: #1976d2; }
.document-category.category-form { background: #f3e5f5; color: #7b1fa2; }
.document-category.category-training_material { background: #e8f5e8; color: #388e3c; }
.document-category.category-announcement { background: #fff3e0; color: #f57c00; }
.document-category.category-other { background: #f5f5f5; color: #616161; }

.access-level-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.access-level-public { background: #e8f5e8; color: #2e7d32; }
.access-level-staff_only { background: #fff3e0; color: #ef6c00; }
.access-level-admin_only { background: #ffebee; color: #c62828; }

.file-icon {
    width: 48px;
    height: 48px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 24px;
    color: #667eea;
}

.file-size {
    color: #999;
    font-size: 11px;
}

/* アップロード成功メッセージ */
.upload-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-success i {
    color: #28a745;
}

/* エラーメッセージ */
.upload-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-error i {
    color: #dc3545;
}

/* 削除確認モーダル */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.delete-modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.delete-modal h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.delete-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* レスポンシブデザインの改善 */
@media (max-width: 768px) {
    .app-container {
        grid-template-areas: 
            "navbar"
            "main";
        grid-template-columns: 1fr;
        grid-template-rows: 60px 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .training-content {
        grid-template-columns: 1fr;
    }

    .attendance-buttons {
        flex-direction: column;
    }

    .summary-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .user-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-selector select {
        width: 100%;
        min-width: unset;
    }
    
    .report-cards {
        grid-template-columns: 1fr;
    }
    
    .statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-datetime {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .current-time-dashboard {
        font-size: 20px;
    }
    
    .notifications-panel {
        width: calc(100% - 40px);
        right: 20px;
    }
    
    .week-schedule {
        grid-template-columns: 1fr;
    }
    
    .schedule-navigation {
        flex-direction: column;
        align-items: stretch;
    }
    
    .schedule-navigation > * {
        margin-bottom: 10px;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 読み込み中のスピナー */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* メッセージ表示 */
.message {
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* フォームスタイル */
.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 20px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}
