body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
    color: #212529;
}

#uploadForm {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

#uploadForm h2 {
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.upload-section {
    text-align: center;
    margin: 20px 0;
}

#fileInput {
    display: block;
    margin: 0 auto 20px;
    max-width: 400px;
}

#uploadButton {
    background-color: #4e73df;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#uploadButton:hover {
    background-color: #2e59d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.medication-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.medication-card:hover {
    transform: translateY(-3px);
}

.medication-name {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.dur-warning {
    background: #fff8e6;
    border-left: 4px solid #ffd43b;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.dur-category {
    font-weight: 600;
    color: #e67700;
    margin-bottom: 8px;
}

.item-seq {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 10px;
}

#result {
    max-width: 800px;
    margin: 30px auto;
}

#result h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.custom-file-input {
    padding: 10px;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    width: 100%;
    margin-bottom: 20px;
}

.loading-status {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    width: 200px;
    margin-left: auto;
    margin-right: auto;
}

.status-text {
    color: #666;
    font-size: 1.5rem;
    display: block;
}

.dots:after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.medication-image {
    margin-right: 15px;
    max-width: 100px;
    height: auto;
}

.medication-class {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 4px 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    display: inline-block;
}

.medication-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 15px;
}

.medication-info {
    flex-grow: 1;
    padding-right: 15px;
}

/* jQuery UI 다이얼로그 스타일 */
.ui-dialog {
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    padding: 0 !important;
}

.ui-dialog .ui-dialog-titlebar {
    background: #f8f9fa !important;
    border: none !important;
    border-bottom: 1px solid #dee2e6 !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 15px 20px !important;
}

.ui-dialog .ui-dialog-content {
    padding: 20px !important;
    margin-bottom: 0 !important;
}

.ui-widget-overlay {
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.ui-dialog .ui-dialog-buttonpane {
    border-top: 1px solid #dee2e6 !important;
    background: #f8f9fa !important;
    margin: 0 !important;
    padding: 15px 20px !important;
}

.ui-dialog .ui-dialog-buttonpane button {
    margin: 0 0 0 10px !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    min-width: 80px !important;
}

.ui-dialog .ui-dialog-titlebar-close {
    border: none !important;
    background: transparent !important;
    margin: -10px 0 0 0 !important;
    padding: 0 !important;
    right: 20px !important;
}

.ui-dialog .ui-dialog-buttonpane button:first-child {
    background-color: #007bff !important;
    color: white !important;
    border: none !important;
}

.ui-dialog .ui-dialog-buttonpane button:last-child {
    background-color: #6c757d !important;
    color: white !important;
    border: none !important;
}

/* 인증 관련 스타일 */
.auth-section {
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.login-button {
    background-color: #4285f4;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #357abd;
}

.logout-button {
    background-color: #dc3545;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.logout-button:hover {
    background-color: #c82333;
} 