/* FCMK AgilOS パートナーポータル スタイルシート */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ログイン画面 */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

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

.help-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-block {
    display: block;
    width: 100%;
}

/* アラート */
.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c763d;
    border: 1px solid #d6e9c6;
}

/* フッター */
.login-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #999;
}

.copyright {
    margin-top: 10px;
}
/* 既存のスタイルに追加 */

/* レイアウト */
.dashboard-page {
    background: #f5f6fa;
    min-height: 100vh;
}

/* ヘッダー */
.header {
    background: white;
    border-bottom: 1px solid #e1e4e8;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.system-name {
    font-size: 20px;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.company-name {
    color: #666;
    font-size: 14px;
}

.user-name {
    font-weight: 500;
}

.logout-btn {
    color: #667eea;
    text-decoration: none;
    padding: 5px 15px;
    border: 1px solid #667eea;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #667eea;
    color: white;
}

/* コンテナ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* サイドバー */
.sidebar {
    width: 250px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.sidebar-nav a:hover {
    background: #f5f6fa;
}

.sidebar-nav .active a {
    background: #667eea;
    color: white;
}

.sidebar-nav .icon {
    margin-right: 10px;
    font-size: 18px;
}

/* メインコンテンツ */
.main-content {
    flex: 1;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
}

/* 統計カード */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card.accent {
    background: #667eea;
    color: white;
}

.stat-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.stat-card.accent .stat-label {
    color: rgba(255,255,255,0.8);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
}

/* パネル */
.panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.panel-header h3 {
    font-size: 18px;
    margin: 0;
}

.panel-body {
    padding: 20px;
}

/* テーブル */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

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

.data-table th {
    background: #f5f6fa;
    font-weight: 500;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background: #d4f4dd;
    color: #1e7e34;
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

/* ボタン追加スタイル */
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* お知らせリスト */
.notice-list {
    list-style: none;
}

.notice-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    gap: 15px;
}

.notice-list li:last-child {
    border-bottom: none;
}

.notice-date {
    color: #999;
    font-size: 13px;
    min-width: 80px;
}

.notice-title {
    flex: 1;
}

/* ユーティリティ */
.text-muted {
    color: #999;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px 0;
}