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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.date-display {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.status-card {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.status-indicator {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.status-indicator.off-duty {
    background: #e3f2fd;
    color: #1976d2;
}

.status-indicator.on-duty {
    background: #e8f5e8;
    color: #2e7d32;
}

.action-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

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

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

.time-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid #667eea;
    position: relative;
}

.time-card h3 {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

.remaining-time {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.remaining-time.urgent {
    color: #e74c3c;
    font-weight: bold;
}

.remaining-time.complete {
    color: #27ae60;
    font-weight: bold;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #1976d2;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    margin-top: 5px;
}

.edit-btn:hover {
    background: #1976d2;
    color: white;
}

/* 모달 스타일 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.time-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.time-input-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-unit {
    font-weight: bold;
    color: #555;
    font-size: 1rem;
}

.time-input-group label {
    font-weight: bold;
    color: #555;
    min-width: 20px;
}

.time-input-group input {
    width: 60px;
    padding: 8px;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.time-input-group input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: #f5f5f5;
    color: #666;
}

.cancel-btn:hover {
    background: #e0e0e0;
}

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

.confirm-btn:hover {
    background: #5a6fd8;
}

.leave-options {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.leave-options h3 {
    margin-bottom: 15px;
    color: #555;
    text-align: center;
}

.leave-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.leave-btn {
    background: #e3f2fd;
    color: #1976d2;
    border: 2px solid #1976d2;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.leave-btn:hover {
    background: #1976d2;
    color: white;
}

.leave-btn.active {
    background: #1976d2;
    color: white;
}

/* 근무 요약 스타일 */
.work-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.work-summary h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

.summary-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.summary-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.summary-value {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

.summary-message {
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 이전 근무 기록 스타일 */
.history-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.history-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-align: center;
    opacity: 0.9;
}

/* 출근 전 이력 표시 스타일 */
.history-section-before-work {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e0e0e0;
}

.history-section-before-work h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.history-header .history-date {
    font-weight: bold;
    min-width: 80px;
    flex-shrink: 0;
}

.history-header .history-time {
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.history-header .history-duration {
    text-align: right;
    min-width: 80px;
    flex-shrink: 0;
}

.history-header .history-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.history-header .history-overtime {
    background: rgba(255, 193, 7, 0.3);
    color: #ff9800;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: bold;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.history-date {
    font-weight: bold;
    min-width: 80px;
    flex-shrink: 0;
}

.history-time {
    text-align: center;
    flex: 1;
    margin: 0 10px;
}

.history-duration {
    text-align: right;
    min-width: 80px;
    flex-shrink: 0;
}

.history-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.history-overtime {
    background: rgba(255, 193, 7, 0.3);
    color: #ff9800;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: bold;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.history-overtime-none {
    color: #999;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 8px;
    min-width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.no-history {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    padding: 20px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    main {
        padding: 20px;
    }
    
    .time-info {
        grid-template-columns: 1fr;
    }
    
    .leave-buttons {
        flex-direction: column;
    }
    
    .leave-btn {
        width: 100%;
    }
    
    .summary-content {
        grid-template-columns: 1fr;
    }
} 