/* ShiftForge - シフト管理システム CSS */

/* 基本設定 */
.shiftforge-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.shiftforge-header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shiftforge-header h1 {
    color: #2d3748;
    margin: 0 0 10px 0;
    font-size: 2.5em;
    font-weight: bold;
}

.shiftforge-header p {
    color: #4a5568;
    margin: 0;
    font-size: 1.1em;
}

.breadcrumb {
    margin-top: 15px;
    font-size: 0.9em;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ナビゲーションカード */
.shiftforge-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.nav-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.nav-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.nav-icon {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.nav-card h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.3em;
}

.nav-card p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95em;
    line-height: 1.5;
}

/* コンテンツセクション */
.content-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-section h2 {
    color: #2d3748;
    margin: 0 0 25px 0;
    font-size: 1.8em;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

.content-section h3 {
    color: #4a5568;
    margin: 20px 0 15px 0;
    font-size: 1.3em;
}

/* ボタン */
.btn-shiftforge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-shiftforge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-shiftforge:active {
    transform: translateY(0);
}

.btn-shiftforge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-shiftforge-secondary {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    box-shadow: 0 4px 15px rgba(113, 128, 150, 0.4);
}

.btn-shiftforge-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.4);
}

.btn-shiftforge-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}

.btn-shiftforge-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.4);
}

.btn-shiftforge-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    box-shadow: 0 4px 15px rgba(66, 153, 225, 0.4);
}

/* フォーム要素 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* カードレイアウト */
.shift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.shift-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.shift-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.shift-card h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* テーブル */
.shift-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.shift-table th,
.shift-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.shift-table th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.shift-table tr:hover {
    background-color: #f7fafc;
}

/* シフトスケジュール */
.schedule-container {
    overflow-x: auto;
    margin-top: 20px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 150px repeat(7, minmax(120px, 1fr));
    gap: 1px;
    background-color: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    min-width: 1000px;
}

.schedule-header {
    background-color: #4a5568;
    color: white;
    padding: 15px 10px;
    font-weight: 600;
    text-align: center;
    font-size: 0.9em;
}

.schedule-time-slot {
    background-color: #f7fafc;
    padding: 10px;
    font-weight: 600;
    color: #2d3748;
    text-align: center;
    border-right: 1px solid #e2e8f0;
}

.schedule-cell {
    background-color: white;
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.schedule-cell:hover {
    background-color: #f0fff4;
}

.schedule-cell.has-shift {
    background-color: #e6fffa;
}

.shift-assignment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    margin: 2px;
    cursor: move;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shift-assignment:hover {
    transform: scale(1.02);
}

/* スタッフリスト */
.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.staff-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.staff-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.staff-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.skill-tag {
    background-color: #edf2f7;
    color: #4a5568;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
}

.staff-availability {
    font-size: 0.9em;
    color: #718096;
}

/* 統計表示 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    color: #4a5568;
    font-size: 0.9em;
}

/* 法令チェック */
.compliance-check {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
}

.compliance-item.pass {
    background-color: #f0fff4;
    border-left: 4px solid #48bb78;
}

.compliance-item.fail {
    background-color: #fed7d7;
    border-left: 4px solid #f56565;
}

.compliance-item.warning {
    background-color: #fefcbf;
    border-left: 4px solid #ed8936;
}

.compliance-icon {
    font-size: 1.2em;
}

.compliance-message {
    flex: 1;
    font-weight: 500;
}

/* プログレスバー */
.progress-container {
    background-color: #f7fafc;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-bar {
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    height: 20px;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.3s ease;
}

/* 通知 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    max-width: 400px;
}

.notification.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.notification.error {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.notification.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.notification.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

/* テスト機能 */
.test-controls {
    background: #f7fafc;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

.test-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.test-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.test-group h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
}

.test-group p {
    margin: 0 0 15px 0;
    color: #4a5568;
    font-size: 0.95em;
}

/* フッター */
.footer-section {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-section p {
    margin: 5px 0;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .shiftforge-container {
        padding: 15px;
    }

    .shiftforge-nav {
        grid-template-columns: 1fr;
    }

    .shift-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 100px repeat(7, 80px);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ドラッグ＆ドロップ */
.drag-over {
    background-color: #e6fffa !important;
    border: 2px dashed #667eea;
}

.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
}

/* チャート */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #4a5568;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #2d3748;
}