/* clockOutForm.css */

/* メインコンテナ */
.clock-out-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 戻るボタンコンテナ */
.back-button-container {
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.back-button:hover {
    background-color: #f5f5f5;
    color: #333;
    transform: translateX(-2px);
}

.back-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* 時間情報セクション */
.time-info-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
}

.time-info {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    grid-template-columns: 1fr;
    gap: 10px;
}

.time-box {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.time-label {
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #666666;
}

.time-value {
    font-size: 1.5em;
    font-weight: 500;
    color: #333333;
}

/* 残り時間のセクション */
.remaining-time-section {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 残り時間の表示スタイル */
.remaining-time-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remaining-time-display .summary-label {
    font-size: 1em;
    color: #666666;
}

.remaining-time-display .summary-value {
    font-size: 1.2em;
    font-weight: 600;
}

/* 残り時間の状態表示 */
.remaining-time {
    color: #2196f3;
    transition: color 0.3s ease;
}

.remaining-time.negative {
    color: #f44336;
}
/* 作業サマリー */
.work-summary{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 時間記録行 */
.time-record {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

/* ラベル */
.summary-label {
    color: #666666;
    font-size: 1em;
}

/* 値 */
.summary-value {
    color: #333333;
    font-weight: 500;
    font-size: 1.3em;
}

/* 残り時間表示 */
.remaining-time {
    color: #2196f3;
}

.remaining-time.negative {
    color: #f44336;
}

/* 作業記録セクション */
.work-record-section {
    margin-bottom: 30px;
}

.work-record-form {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.work-record-form:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 記録ヘッダー */
.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.record-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

.record-body {
    padding: 16px;
}
/* 削除ボタン */
.delete-record-button {
    background-color: transparent;
    color: #ff5722;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 30px;
}

.delete-record-button:hover {
    background-color: #fff5f2;
    transform: rotate(90deg);
}

/* 追加ボタン */
.add-record-button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.add-record-button:hover {
    background-color: #43a047;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}


/* 休憩時間セクション */
.break-time-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin: 15px 0;
}

/* 交通費セクション */
.transportation-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.fee-input-container {
    position: relative;
    width: 90% !important;
    margin-left: 5%;
}

.transportation-fee-input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: right;
}

.currency-label {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* 確定ボタン */
.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ff7043, #ff5722);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.submit-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5722, #f4511e);
    box-shadow: 0 4px 8px rgba(255, 87, 34, 0.2);
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

/* エラーメッセージ */
.error-message {
    color: #d32f2f;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px;
    background-color: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #d32f2f;
}

/* アニメーション */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.work-record-form {
    animation: slideIn 0.3s ease-out;
}

/* 作業メモセクション */
.memo-input-container {
    margin: 10px 0;
}

.work-memo-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.work-memo-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.work-memo-textarea::placeholder {
    color: #999;
    font-style: italic;
}

.memo-char-count {
    text-align: right;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding-right: 5px;
}

/* 文字数制限警告 */
.memo-char-count.warning {
    color: #ff4444 !important;
    font-weight: bold;
}