/* Setting Page - 세련된 디자인 */

/* 전체 컨테이너 */
#appCapsule {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* 제목 영역 */
.patient-title h3 {
    color: #1562aa;
    padding: 10px 0;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.6rem;
}

/* 사용자 정보 영역 */
.user-info-wrap {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 25px;
    margin: 100px 0 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    flex-wrap: nowrap;
}

.user-info:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.user-info:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.info-column {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    margin-right: 15px;
    font-size: 14px;
    flex-shrink: 0;
}

.user-info:not(.info-column) {
    color: #1562aa;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 환자 목록 제목 */
.subtitle-wrap-left {
    margin: 30px 0 20px 0;
    padding-bottom: 15px;
}

.subtitle-wrap {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1562aa;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.subtitle-wrap::before {
    content: '👥';
    margin-right: 8px;
    font-size: 1.1rem;
}

/* 환자 목록 아이템 */
.input-group-row {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.form-check-inline {
    padding: 15px 20px;
    margin: 0 !important;
    width: 100% !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    flex-wrap: nowrap;
}

/* 라디오 버튼 */
.form-check-input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* 라벨 */
.form-check-label {
    color: #495057;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
    margin: 0;
    padding: 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 설정 버튼 */
.btn-sm.btn-outline-primary {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    transform: translateY(0);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-sm.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
    border-radius: 10px 10px 0 0;
    pointer-events: none;
}

.btn-sm.btn-outline-primary:hover {
    background: linear-gradient(145deg, #667eea 0%, #5a6fd8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 16px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-sm.btn-outline-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 2px 4px rgba(102, 126, 234, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* 메모 텍스트 */
.form-check-inline p {
    font-size: 12px;
    margin: 5px 0 0 32px !important;
    color: #1562aa !important;
    font-weight: 500;
    background: rgba(21, 98, 170, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #1562aa;
}

/* 모달 스타일 */
.modal.dialogbox .modal-content {
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.modal.dialogbox .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 20px 25px;
    border-radius: 16px 16px 0 0;
}

.modal.dialogbox .modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.modal.dialogbox .modal-body {
    padding: 25px;
    background: #ffffff;
}

.modal.dialogbox .input-group-row {
    margin-bottom: 10px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.modal.dialogbox .input-group-row:last-child {
    margin-bottom: 0;
}

.modal.dialogbox .input-default {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    width: 100% !important;
    margin: 0 !important;
}

.modal.dialogbox .input-default:focus {
    border-color: #667eea;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.15);
    outline: none;
}

.modal.dialogbox .form-check-label {
    color: #495057;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
}

.modal.dialogbox .modal-footer {
    background: #f8f9fa;
    border: none;
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
}

.modal.dialogbox .btn-inline {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.modal.dialogbox .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid;
    transition: all 0.3s ease;
    min-width: 80px;
}

.modal.dialogbox .btn-text-secondary {
    background: #ffffff;
    border-color: #6c757d;
    color: #6c757d;
}

.modal.dialogbox .btn-text-secondary:hover {
    background: #6c757d;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.modal.dialogbox .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.modal.dialogbox .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
        
    .user-info {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    
    .info-column {
        min-width: auto;
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .form-check-inline {
        padding: 12px 15px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .btn-sm.btn-outline-primary {
        align-self: center;
        margin-top: 0;
    }
    
    .modal.dialogbox .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal.dialogbox .btn-inline {
        flex-direction: row;
        gap: 0;
    }
    
    .modal.dialogbox .btn {
        width: auto;
        justify-content: center;
    }
} 