body{
	display: flex;
}

.flex-between{
	display: flex;
    justify-content: space-between;
    
}
button {
	background: transparent;
	border-radius: 5px;
    display: inline-block;
	border: none;
	outline: none;
	cursor: pointer;
}

#todayBtn {
	border: none;
	outline: none;
	color: rgb(50, 102, 144);
	background: transparent;
	cursor: pointer;
}

.grid-cols-7{
  display: flex;
}

.p-3{
  width: 120px;
  min-height: 30px;
  text-align: center;
  border: 1px solid #e5e7eb;
  border-bottom: 2px solid #e5e7eb;
  padding: 5px;
}

.p-4{
  text-align: center;
  border: 1px solid #e5e7eb;
}


/* カレンダー日付セルのスタイル */
.calendar-day {
    width: 120px;
    height: 120px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.calendar-day:hover {
    background-color: #f8fafc;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.calendar-day.other-month {
    background-color: #f9fafb;
    color: #9ca3af;
}

.calendar-day.today {
    background-color: #dbeafe;
    border-color: #3b82f6;
}

.calendar-day.today .day-number {
    color: #1d4ed8;
    font-weight: bold;
}

/* 日付番号 */
.day-number {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

/* シフト表示エリア */
.shift-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shift-item {
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.2;
    padding-left: .5em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 16px;
    display: flex;
}

/* 2人分のシフト表示用 */
.shift-person-1 {
    background: #AFEEEE;
}
.shift-person-2 {
    background: #F0E68C;
}

/* モーダルアニメーション */
#shiftModal, #editModal {
    animation: fadeIn 0.2s ease-out;
}

#shiftModal.closing, #editModal.closing {
    animation: fadeOut 0.2s ease-out;
}

#shiftModal > div, #editModal > div {
    animation: slideIn 0.2s ease-out;
}

#shiftModal.closing > div, #editModal.closing > div {
    animation: slideOut 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

/* シフト情報カード */
.shift-info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.shift-info-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shift-info-card .shift-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.shift-info-card .shift-details {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* 空のシフト表示 */
.empty-shift {
    text-align: center;
    color: #9ca3af;
    font-size: 12px;
    padding: 20px;
}

/* ローディング状態 */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.message {
	width: 100vw;
}

.info-message {
	background-color: #f0f8ff;
    border: 1px solid #cacaca;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* エラーメッセージ */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* 成功メッセージ */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.saturday {
    background: #87ceeb;
    color: #0000cd;
}

.sunday {
    background: #ffccd5;
    color: #dc143c;
}