/* ============================================
   EiTech Guard - 共通CSS
   ============================================ */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ベース */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.header .user-info {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.back-btn {
    color: white;
    text-decoration: none;
    font-size: 20px;
    margin-right: 15px;
}

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

/* カード */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.site-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.client-name {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.time-info {
    font-size: 14px;
    color: #00897b;
    margin-top: 8px;
}

/* 月ナビゲーション */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.month-nav a {
    color: #00695c;
    text-decoration: none;
    font-size: 20px;
    padding: 5px 12px;
}

.month-nav a:hover {
    background: #e0f2f1;
    border-radius: 5px;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    min-width: 120px;
    text-align: center;
}

/* 案件リスト */
.assignment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.assignment-item {
    display: block;
    background: white;
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.assignment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.assignment-item .site {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.assignment-item .client {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.assignment-item .time {
    font-size: 14px;
    color: #00897b;
    margin-top: 8px;
}

.assignment-item .status {
    font-size: 12px;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 8px;
}

/* ボタン共通 */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00695c 0%, #00897b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 105, 92, 0.4);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: #00897b;
    color: white;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

/* メッセージ */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.message.error {
    background: #ffebee;
    color: #c62828;
}

/* 報告済み */
.reported {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.reported-title {
    font-size: 12px;
    color: #2e7d32;
    margin-bottom: 5px;
}

.reported-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

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

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-inactive {
    background: #ffebee;
    color: #c62828;
}

.leader-badge {
    display: inline-block;
    background: #ff9800;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.status-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-badge.done {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.pending {
    background: #f5f5f5;
    color: #999;
}

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

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

.form-group select,
.form-group input[type="number"],
.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #00897b;
}

/* 空状態 */
.no-assignment,
.empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* テーブル共通 */
.table-wrapper {
    background: white;
    border-radius: 10px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 11px;
    white-space: nowrap;
}

th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f9f9f9;
}

/* 検索ボックス */
.search-box {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input,
.search-form select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 12px;
}

.count-info {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}
